/* Shared UI styles for all pages */

/* Typography rhythm shared across all pages */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 {
    line-height: 1.08;
}

h2 {
    line-height: 1.1;
}

h3 {
    line-height: 1.16;
}

.parallax-section .content h2,
.parallax-section .content h3 {
    letter-spacing: -0.03em;
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background-color: #d70201;
    transition: right 0.3s ease-in-out;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
}

#mobile-menu.open {
    right: 0;
}

#mobile-menu ul {
    flex-direction: column;
    padding: 1rem;
}

#mobile-menu ul li {
    margin-bottom: 1rem;
    text-align: center;
}

#mobile-menu ul li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#mobile-menu ul li:last-child a {
    border-bottom: none;
}

#mobile-menu .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 70;
}

#back-button {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 55;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#back-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.ceyfe-online-button {
    position: fixed;
    top: 100px;
    right: 1rem;
    z-index: 40;
    background-color: #d70201;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.ceyfe-online-button:hover {
    transform: scale(1.05);
    background-color: #b80000;
}
