/* body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: black;
} */

/* FULLSCREEN CLOUD SYSTEM -------------------------------------- */

#cloud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* two images side-by-side */
    height: 100vh;
    display: flex;
    overflow: hidden;
    z-index: -1;
}

#clouds,
#clouds-duplicate {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mirror the duplicate for seamless looping */
/* #clouds-duplicate {
    transform: scaleX(-1);
} */

/* CONTROLS ------------------------------------------------------ */

/* Cloud selector in the top-left */
#cloud-selector.top-left {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

/* Move input to bottom center */
#yellInput {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 700px;
    height: 30px;
    font-size: 26px;
    border-radius: 18px;
    padding: 12px 18px;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.85);
    /* text-transform: uppercase; */
}

/* TEXT LAUNCH --------------------------------------------------- */

.yell-text {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    font-size: 70px;
    color: white;
    text-shadow: 5px 5px 12px black;
    white-space: nowrap;
    z-index: 20;
    animation: rise 2.0s linear forwards;
    pointer-events: none;
}

/* SUBTLE SHAKING */
.shake {
    animation: shakeEffect 0.4s ease;
}

@keyframes shakeEffect {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-5px, 2px);
    }

    40% {
        transform: translate(5px, -3px);
    }

    60% {
        transform: translate(-4px, 3px);
    }

    80% {
        transform: translate(3px, -2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes rise {
    0% {
        top: 85%;
        opacity: 1;
        transform: translateX(-50%) scale(1.6);
    }

    100% {
        top: 25%;
        opacity: 0;
        transform: translateX(-50%) scale(0.2);
    }
}

/* ---------------------- */
/* MOBILE OPTIMIZATION    */
/* ---------------------- */

@media (max-width: 600px) {

    #ad-banner {
        width: 90%;
        height: 80px;
        font-size: 14px;
    }

    #controls {
        flex-direction: column;
        bottom: 80px;
        width: 90%;
    }

    select,
    #yellInput {
        width: 100%;
        font-size: 20px;
        padding: 14px;
    }

    .yell-text {
        font-size: 50px;
        animation-duration: 2s;
    }

    footer {
        font-size: 14px;
        padding: 10px 0;
    }

    .page {
        padding: 20px;
        font-size: 18px;
    }
}

/* iPhone landscape fix */
@media (max-height: 500px) {
    #controls {
        bottom: 10px;
    }

    #ad-banner {
        top: 5px;
    }
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    font-size: 16px;
}

#cookie-banner p {
    margin: 0;
    padding-right: 10px;
}

#cookie-banner a {
    color: #9ecbff;
}

#cookie-banner button {
    padding: 10px 16px;
    background: #4CAF50;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    color: white;
}

#cookie-banner button:hover {
    background: #43a047;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}