html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #3a3a5f);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
}

html {
    font-size: 16px;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    body {
        padding: 10px;
    }
}

/* 🖼️ Background Slideshow */
.bg-slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: background-image 1.5s ease-in-out;
    animation: zoomBg 20s ease-in-out infinite alternate;
}

/* Dark overlay for readability */
.bg-slideshow::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    top: 0;
    left: 0;
}

@keyframes zoomBg {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* 🌫️ Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particles span {
    position: absolute;
    display: block;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 10s linear infinite;
}

/* 🧊 Card with Glow & Entrance */
.card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: clamp(15px, 5vw, 30px);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2);
    animation: fadeInCard 1s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: clamp(1.5em, 5vw, 2.5em);
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
    margin: 0 0 15px 0;
}

h2 {
    color: #ccc;
}

/* Message */
.message {
    font-size: clamp(0.9em, 2vw, 1.1em);
    line-height: 1.6;
}

/* Button */
button {
    padding: clamp(10px, 2.5vw, 12px) clamp(15px, 4vw, 20px);
    font-size: clamp(0.9em, 2vw, 1em);
    border: none;
    border-radius: 12px;
    background: #00d4ff;
    color: #000;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    max-width: 100%;
}

button:hover {
    background: #00aacc;
}

@media (max-width: 480px) {
    button {
        width: 100%;
    }
}

iframe {
    width: 100%;
    height: auto;
    border: none;
    min-height: 80px;
    aspect-ratio: 1 / 1;
    max-height: 400px;
}

@media (max-width: 480px) {
    iframe {
        min-height: 70px;
        max-height: 300px;
    }
}

.hidden-player {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.show-player {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.hidden-player button {
    width: 100%;
    margin-top: 15px;
}

/* Mobile */
@media (max-width: 600px) {
    body {
        align-items: center;
        justify-content: center;
    }

    .card {
        margin-top: 10px;
    }

    #displayMessage {
        font-size: clamp(0.9em, 4vw, 1.1em);
    }
}

@media (max-width: 360px) {
    .card {
        padding: 12px;
    }
    
    h1 {
        margin: 0 0 10px 0;
    }
}

@keyframes float {
    from {
        transform: translateY(100vh);
        opacity: 0;
    }
    to {
        transform: translateY(-10vh);
        opacity: 1;
    }
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#displayMessage {
    margin-top: 15px;
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: all 0.5s ease;
}

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

.final-message {
    font-size: clamp(0.85em, 2vw, 1.1em) !important;
    line-height: 1.8 !important;
    margin-top: 20px !important;
    font-weight: normal !important;
}

.card h1 {
    font-size: 2em;
    color: #00d4ff;
}