/* ========== GLOBAL DARK THEME ========== */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, #1a1a1a, #0d0d0d);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


/* ========== CONTAINER ========== */

.container {
    text-align: center;
    padding: 30px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 0, 150, 0.2);
    animation: fadeIn 0.8s ease forwards;
}

.container h2 {
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 0, 200, 0.5);
}


/* ========== IMAGE ========== */

#joke {
    width: 500px;
    max-width: 100%;
    border-radius: 15px;
    opacity: 100;
    transition: opacity 0.6s ease;
}

#joke.loaded {
    opacity: 1;
}


/* ========== BUTTON ========== */

#btn {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    color: white;
    transition: all 0.3s ease;
}

#btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px #ff00cc, 0 0 40px #3333ff;
}


/* ========== AGE OVERLAY GLASSMORPHISM ========== */

#age-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 0, 200, 0.4);
    animation: fadeIn 0.6s ease forwards;
}

.age-box h2 {
    margin-bottom: 10px;
}

.age-box p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.age-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.age-buttons button {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

#enter-btn {
    background: #00ffcc;
    color: #000;
}

#enter-btn:hover {
    box-shadow: 0 0 20px #00ffcc;
}

#exit-btn {
    background: #ff0066;
    color: #fff;
}

#exit-btn:hover {
    box-shadow: 0 0 20px #ff0066;
}


/* ========== ANIMATIONS ========== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


}

/* ================= MOBILE STYLES ================= */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
        font-family: 'Poppins', sans-serif;
    }
    
    .container {
        padding: 20px;
        text-align: center;
    }
    
    .container h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    #joke {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        opacity: 100;
    }
    
    #btn {
        margin-top: 20px;
        width: 100%;
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }
    /* Age Overlay */
    
    #age-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        z-index: 9999;
    }
    
    .age-box {
        width: 100%;
        max-width: 350px;
        background: #111;
        padding: 25px;
        border-radius: 15px;
        text-align: center;
    }
    
    .age-box h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .age-box p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .age-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .age-buttons button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        border-radius: 8px;
    }
}