:root {
    --font-main: 'Space Mono', monospace;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #000;
    color: var(--text-color);
    overflow-x: hidden;
}

#depth-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 100;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
}

#scroll-container {
    width: 100%;
}

.intro-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hint {
    margin-top: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.scroll-segment {
    height: 100vh;
    /* Each segment is full screen height */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10rem;
    font-weight: 700;
    opacity: 0.1;
    user-select: none;
    transition: background-color 0.5s;
}

/* Message Overlay */
#message-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    max-width: 80%;
}

#message-overlay.visible {
    opacity: 1;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

#message-text {
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    #depth-counter {
        font-size: 1rem;
        padding: 8px 15px;
    }
}