/* public/css/style.css */

/* Disable default scrolling */
body, html {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Disable default scrollbar */
    user-select: none;
    background-color: black;
}

/* Container for all sections */
.sections-container {
    position: relative;
    width: 100%;
    /* Height will be set dynamically via JavaScript */
}

/* Each section */
.section {
    position: absolute;
    width: 100%;
    /* Removed fixed height to allow variable content height */
    /* height: 100vh; */
    top: 100%; /* Initial position, will be overridden by JavaScript */
    left: 0;
    transition: top 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0px 0;
    box-sizing: border-box;
}


.section::before,
.section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 6px; /* Width of the gradient border */
    height: 100%;
    z-index: 1; /* Adjust as needed to ensure borders appear correctly */
}

.section::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 1), transparent);
}

.section::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
}

/* Images inside sections, maintaining aspect ratio */
.section img {
    max-width: 100%; /* Adjust as needed */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the entire image is visible */
    display: block;
    border: none;
    position: relative;
    z-index: 0;

    /* Bottom gradient overlay, working fine */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%,rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%,rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
 
    
}


/* Center the play-all button absolutely in the viewport */
#play-all {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: #ca9b52;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
    cursor: pointer;
    z-index: 100;
    transition: top 0.8s cubic-bezier(0.4,0,0.2,1), left 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1), background 0.2s, box-shadow 0.2s, opacity 0.5s;
    padding: 0;
    opacity: 0.6;
    pointer-events: auto;
}

#play-all.to-bottom {
    top: auto;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

#play-all:hover {
    background: #e2dacc;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

#play-all .play-icon {
    width: 74px;
    height: 74px;
    display: block;
    margin: auto;
    fill: #fff;
}

#play-all.fade-out {
    opacity: 0;
    pointer-events: none;
}

#play-all.fade-in {
    opacity: 0.6;
    pointer-events: auto;
}

.section img {
    opacity: 0;
    transition: opacity 2.6s ease;
}

.section.active img {
    opacity: 1;
}

/* Overlay Text Styling */
.section-text {
    position: absolute;
    top: 90%; /* Vertically center */
    left: 50%; /* Horizontally center */
    transform: translate(-50%, -50%); /* Adjust centering */
    font-size: 2.5em; /* Large font size */
    color: rgba(206, 206, 206, 0.7); /* White text for contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Adds a shadow for readability */
    opacity: 0; /* Initially hidden */
    transition: opacity 2.6s ease; /* Smooth fade transition */
    pointer-events: none; /* Allows clicks to pass through to underlying elements */
    text-align: center; /* Center the text alignment */
    width: 100%; /* Ensures text wraps within the section */
}

/* Active State: Fades in the text */
.section.active .section-text {
    opacity: 1; /* Fully visible when active */
}

/* Existing Styles */
/* ... your existing CSS ... */

/* Loading Overlay Styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1); /* Semi-transparent black */
    z-index: 9999; /* Ensure it's above all other elements */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 2s ease; /* Fade-out transition */
}

.loading-text {
    margin-top: 26px;
    font-size: 1.5em;
    color: black;
    text-align: center;
}

/* Limit the width of the sections-container when the screen is wider than it is tall */
@media (min-aspect-ratio: 1/1) {
  .sections-container {
    max-width: 100vh;
    margin: 0 auto;
  }
}


