body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Strictly prevent scrolling */
    background-color: #000000;
    /* AMOLED Black */
    font-family: 'Bangers', cursive;
    color: white;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    /* Prevent pinch zoom and pan */
    position: fixed;
    /* Lock body in place */
}

#rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Marquee Styles */
.marquee-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 235, 59, 0.9);
    color: #000;
    padding: 15px 0;
    padding-bottom: env(safe-area-inset-bottom, 15px);
    /* iPhone X+ support */
    overflow: hidden;
    white-space: nowrap;
    z-index: 9999;
    /* Ensure it's on top of everything */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    height: auto;
}

.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for modern mobile browsers */
    text-align: center;
    padding-bottom: 90px;
    /* Increased space for the larger banner */
    box-sizing: border-box;
}


.center-stage {
    perspective: 1000px;
}

#main-nah {
    width: 300px;
    cursor: pointer;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    animation: idlePulse 2s infinite ease-in-out;
}

/* Intro Animation: Comes from back (scale 0) to front */
.intro-anim {
    animation: zoomIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes zoomIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes idlePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.click-anim {
    animation: clickShake 0.2s ease-in-out !important;
}

@keyframes clickShake {
    0% {
        transform: scale(1.1) rotate(0deg);
    }

    25% {
        transform: scale(1.2) rotate(-5deg);
    }

    50% {
        transform: scale(1.2) rotate(5deg);
    }

    75% {
        transform: scale(1.2) rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.counter-box {
    margin-top: 20px;
    font-size: 2rem;
    /* Increased size */
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

/* Rain Elements */
.nah-rain {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
}

/* Floating Text */
.floating-text {
    position: absolute;
    font-size: 2rem;
    color: #ff0055;
    text-shadow: 2px 2px 0 #fff;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    white-space: nowrap;
    z-index: 20;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Marquee Styles */
.marquee-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 235, 59, 0.9);
    /* Yellow background */
    color: #000;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
}

.marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #main-nah {
        width: 70vw;
        /* Slightly smaller to fit screens */
        max-width: 250px;
    }

    .floating-text {
        font-size: 1.2rem;
    }

    .counter-box {
        font-size: 1.5rem;
        /* Increased for mobile */
        margin-top: 10px;
    }

    #dedication {
        font-size: 1.5rem;
        /* Smaller title on mobile if needed, though removed from HTML, keeping for safety */
    }

    .marquee-bottom {
        font-size: 1.3rem;
        /* Increased for mobile */
        padding: 12px 0;
        padding-bottom: env(safe-area-inset-bottom, 12px);
    }
}