:root {
    color-scheme: light only;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}
/* Canvas background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
canvas { width: 100%; height: 100%; display: block; }

/* Scroll sections */
/* ensure your container still snaps: */
#sections {
    /* make it exactly full‐viewport tall, so child sections can overflow */
    height: 100vh;
    overflow-y: auto;                /* enable scrolling */
    scroll-snap-type: y proximity;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;             /* allow native vertical panning */
}
section {
    min-height: 100vh;             /* allow sections to grow taller if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;            /* ← this is crucial for the arrows to stay inside each section */
}


.overlay {
    color: white;
    mix-blend-mode: difference;
    isolation: isolate;
    pointer-events: none;
    user-select: none;
    text-align: center;
    font-size: 3rem;
}


/* Video grid styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 80vw;
    margin: 0 auto;
}
.video-grid iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* Rotating SVG */
.rotating {
    width: clamp(400px, 50vmin, 1200px);
    height: auto;
    animation: spin 7.04s linear infinite;
    transform-origin: center;
    pointer-events: none;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Scroll indicators */
.scroll-indicator {
    position: absolute;
    font-size: 2rem;
    color: white;
    mix-blend-mode: difference;
    animation: fade 2s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}
.scroll-indicator.down {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 0) + 1.5rem);
    left: 50%;
    transform: translateX(-50%);
}
.scroll-indicator.up   { top: 2rem;    left: 50%; transform: translateX(-50%); }
@keyframes fade { 0%,100% {opacity:0;} 50% {opacity:1;} }

/* Hamburger menu */
#menuBtn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: #fff;
    border: 1px solid black;
    border-radius: 0.5em;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 200;
    display: flex;
    align-items: center;
}
#menuBtn svg {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    filter: invert(1);
}
#menuList {
    position: fixed;
    top: 3.5rem;
    left: 1rem;
    background: rgba(255,255,255,0.9);
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: none;
    z-index: 200;
}
#menuList.open { display: block; }
#menuList li {
    margin: 0.5rem 0;
    cursor: pointer;
    color: #333;
    font-size: 1rem;
}

.video-grid {
    display: grid;
    /* was: minmax(200px, 1fr) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    width: 90vw;      /* you can also expand container width */
    margin: 0 auto;
    filter: grayscale(100%);
}

/* Contact form */
/* Add or adapt these rules in your <style> */
.overlay form {
    background: rgba(255,255,255,0.9);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    color: #333;
    pointer-events: auto;
    margin: 0 auto;
}
.overlay .field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.overlay label {
    margin-bottom: 0.25rem;
    font-weight: bold;
}
.overlay input,
.overlay textarea {
    padding: 0.5rem;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 1rem;
}
.overlay button {
    padding: 0.75rem 1.5rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#form-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
/* for section 5, make .overlay fill the section and center its contents */
#section5 .overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    pointer-events: auto;  /* ensure the overlay itself is interactive */
}
#section2 .overlay {
    pointer-events: auto;
}
#section4 .overlay {
    pointer-events: auto;
}

/* live stream */
#live-container {
    width: 90vw;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto;
}
#live-container iframe,
#live-container svg.rotating {
    width: 100%;
    height: 100%;
    display: block;
}

/* SECTION 1: full-screen overlay, truly centered */
#section1 {
    display: flex;              /* ensure the section itself is a flex container */
    align-items: center;        /* center overlay vertically */
    justify-content: center;    /* center overlay horizontally */
    padding:0;
}
#section1 .overlay {
    width: 100%;                /* fill the section’s width */
    height: 100%;               /* fill the section’s height */
    display: flex;              /* make overlay a flex container */
    align-items: center;        /* center its contents vertically */
    justify-content: center;    /* center its contents horizontally */
    pointer-events: auto;       /* allow clicks on the live iframe or countdown */
}
#section3 .overlay {
    pointer-events: auto;
}

.social-icons > a > img {
    filter: brightness(0%) saturate(100%) invert(100%);
}

/* Default (light) styles here */
@media (prefers-color-scheme: dark) {
    /* Dark-mode overrides: background, text colors, images, etc. */
}