body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'IM Fell English SC', serif;
    overflow-x: hidden;
    background: #000;
    scroll-behavior: smooth; /* Ensure smooth scroll in browsers that support it */
}

.hidden {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

#loadingContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1000;
    width: 100vw; /* 100% of the viewport width */
}

#progressBar {
    width: 80vw; /* 80% of the viewport width */
    height: 10px;
    background-color: #444;
    margin: 10px auto;
    border-radius: 5px;
    overflow: hidden;
}

#progress {
    width: 0%;
    height: 100%;
    background-color: red;
}

#progressPercent {
    font-size: 1.2rem;
    margin-top: 10px;
    display: block;
}

.scroll-container {
    overflow: hidden;
    position: relative;
}

#startButtonContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001; /* Ensure it appears above other elements */
}

#scrollButton {
    display: none; /* Hidden by default */
    padding: 10px 20px;
    font-size: 1.8rem;
    font-family: 'IM Fell English SC', serif !important; /* Ensure the correct font is applied */
    background-color: transparent; /* No background color */
    color: #fff; /* White text */
    border: 2px solid transparent; /* Remove the outline */
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease; /* Quicker transition for fade-out */
    opacity: 0;
    transform: translateY(20px); /* Start below the final position */
}

#scrollButton:hover {
    color: #ff0000; /* Fade text color to red on hover */
    outline: none; /* Remove any outline when focused */
}

#scrollButton.visible {
    display: inline-block;
    opacity: 1;
    transform: translateY(0); /* Move to the final position */
}

#startButtonContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001; /* Ensure it appears above other elements */
}


.section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
    font-size: 1rem;
    overflow: hidden;
}

.parallax-element {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
    opacity: 0.8;
}

.section-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    font-size: 1rem;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 3s ease;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease-out;
    pointer-events: none;
    visibility: hidden; /* Ensures it is hidden after fading */
    position: absolute;
    top: -100%; /* Move it off-screen */
    left: -100%;
}

@media (max-width: 768px) {
    .section-content {
        font-size: 1rem;
        padding: 0 20px;
    }
}
