:root {
    --transition-height: 20vh;
    --dark-grey: rgb(6, 6, 6);
    --light-white: rgb(243, 240, 233);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: "DM Mono", monospace;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 1em;
    line-height: 1.5;
    color: white;
}

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: black;
    margin: 0;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    width: 100%;
    z-index: -2;
}

#mainContent {
    overflow-y: scroll;
    width: 100%;
    height: 100vh;
    scrollbar-width: none;
}

#mainContent::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}

.fullscreen {
    height: 100vh;
    width: 100%;
    position: relative;
    pointer-events: none;
}

.transitionSec {
    position: relative;
    height: var(--transition-height);
    width: 100%;
}

.overlayFull {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    pointer-events: none;
}

#titleScreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.clickable {
    pointer-events: auto !important;
}

#titleWrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 15%;
    min-width: 30%;
    outline: 6px solid white;
    backdrop-filter: blur(2px);
    margin: 0 20px;
}

#titleMain {
    padding: 30px;
    text-align: center;
    font-size: 3em;
    font-weight: 600;
}

#starCanvas {
    width: 100%;
    height: inherit;
}

.arrowButton {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
    pointer-events: auto;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

#introTransition {
    background: var(--dark-grey);
    border-radius: 10em 10em 0 0;
}

#detailScreen {
    background: var(--dark-grey);
}

#detailOverlay {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#clubDetailsPane {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#detailsWrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 100px 0px 100px 0px;
    outline: 2px solid white;
    width: 80%;
    margin-left: 10%;
    backdrop-filter: blur(2px);
}

#details {
    font-size: 1.5em;
    padding: 40px;
}

#details > ul {
    line-height: 1.2;
}

#details > ul > li {
    padding: 5px;
}

#waveWrapper {
    width: 50%;
    height: auto;
    padding: 3%;
}

#waveCanvas {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    background: transparent;
}

#flowWrap {
    position: relative;
    width: 100%;
    height: 100vh;
}

#flowWrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        var(--dark-grey) 2%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 0;
}

#flowCanvas {
    background: transparent;
}

#secondTransition {
    border-radius: 10em 10em 0em 0em;
    background: var(--light-white);
}

#secondTransition::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-grey);
    pointer-events: none;
    z-index: -1;
}

#infoScreen {
    background: var(--light-white);
    color: black;
}

#infoPane {
    font-size: 1.2em;
    margin: 50px;
    max-width: 90%;
    width: 800px;
}

.sectionSep {
    height: 1px;
    background: #2e2e2e;
    margin: 40px 0;
    width: 90%;
}

#pageIndicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 100;
}

#pageIndicator.visible {
    opacity: 1;
    pointer-events: auto;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

#pageIndicator.light-theme .dot {
    border-color: black;
}

#pageIndicator.light-theme .dot.active {
    background: black;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet and smaller screens */
@media screen and (max-width: 1024px) {
    #titleMain {
        font-size: 2.5em;
        padding: 25px;
    }

    #details {
        font-size: 1.3em;
        padding: 30px;
    }

    #detailOverlay {
        flex-direction: column-reverse;
        padding: 20px 0;
    }

    #clubDetailsPane {
        width: 90%;
        order: 2;
    }

    #waveWrapper {
        width: 80%;
        order: 1;
        padding: 5%;
        margin-bottom: 20px;
    }

    #detailsWrap {
        width: 90%;
        margin: 20px auto;
    }

    #pageIndicator {
        right: 20px;
        gap: 15px;
    }
}

/* Mobile phones */
@media screen and (max-width: 768px) {
    html {
        font-size: 0.9em;
    }

    :root {
        --transition-height: 15vh;
    }

    #titleWrapper {
        min-width: 70%;
        outline-width: 4px;
        margin: 0 15px;
    }

    #titleMain {
        font-size: 2em;
        padding: 20px;
    }

    .arrowButton {
        bottom: 80px;
        font-size: 2.5rem;
    }

    #introTransition,
    #secondTransition {
        border-radius: 5em 5em 0 0;
    }

    #detailOverlay {
        flex-direction: column-reverse;
        padding: 10px 0;
    }

    #clubDetailsPane {
        width: 95%;
    }

    #detailsWrap {
        width: 85%;
        margin: 15px auto;
        outline-width: 2px;
    }

    #details {
        font-size: 1em;
        padding: 20px;
    }

    #details > ul > li {
        padding: 3px;
    }

    #waveWrapper {
        width: 90%;
        padding: 5%;
        margin-bottom: 15px;
    }

    #pageIndicator {
        right: 15px;
        gap: 12px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
}

/* Small mobile phones */
@media screen and (max-width: 480px) {
    html {
        font-size: 0.85em;
    }

    #titleWrapper {
        min-width: 80%;
        outline-width: 3px;
    }

    #titleMain {
        font-size: 1.6em;
        padding: 15px;
    }

    .arrowButton {
        bottom: 60px;
        font-size: 2rem;
    }

    #details {
        font-size: 0.95em;
        padding: 15px;
    }

    #detailsWrap {
        margin: 10px auto;
    }

    #waveWrapper {
        width: 95%;
    }

    #pageIndicator {
        right: 10px;
        gap: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #titleMain {
        font-size: 1.8em;
        padding: 15px;
    }

    .arrowButton {
        bottom: 40px;
        font-size: 2rem;
    }

    #detailsWrap {
        margin: 20px auto;
    }

    #details {
        font-size: 0.9em;
        padding: 15px;
    }

    #waveWrapper {
        width: 40%;
    }

    #clubDetailsPane {
        width: 55%;
    }

    #detailOverlay {
        flex-direction: row;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .arrowButton {
        padding: 10px;
    }

    .dot {
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .clickable {
        cursor: default;
    }
}
