/* Estilo general y fondo */
body {
    background-color: #0d0221;
    color: #f0f0f0;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden;
    padding: 20px;
}

/* === AÑADIDO === */
/* Mejora la consistencia del modelo de caja en todos los navegadores */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Contenedores principales */
#invitation-container, #accepted-message, #final-message {
    background: rgba(26, 2, 65, 0.6);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #a626d6;
    box-shadow: 0 0 25px #a626d6;
    max-width: 600px;
    width: 90%;
}

/* Efecto de texto Neón */
.neon-text {
    color: #fff;
    text-shadow:
        0 0 7px #2de2e6,
        0 0 10px #2de2e6,
        0 0 21px #2de2e6,
        0 0 42px #f706a8,
        0 0 82px #f706a8,
        0 0 92px #f706a8;
}

/* Botones */
button {
    background-color: #f706a8;
    border: 2px solid #2de2e6;
    color: #fff;
    padding: 15px 30px;
    margin: 10px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px #f706a8;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #2de2e6, 0 0 50px #f706a8;
}

/* Clases para ocultar/mostrar elementos */
.hidden {
    display: none !important;
}

/* Overlay de ADVERTENCIA INICIAL */
#initial-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.destruct-box {
    font-size: 2em;
    background: rgba(26, 2, 65, 0.8);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 30px #ff0000;
    max-width: 700px;
    width: 90%;
}

.warning-text {
    color: #ff0000;
    font-weight: bold;
    animation: blink 1s infinite;
    font-size: 1.5em;
}

#initial-countdown {
    font-size: 4em;
    margin-top: 20px;
}

/* Estilos para el campo de nombre */
.name-input-container {
    margin: 25px 0;
}
.name-input-container label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}
#guest-name {
    background-color: rgba(13, 2, 33, 0.8);
    border: 2px solid #a626d6;
    color: #f0f0f0;
    padding: 12px;
    border-radius: 5px;
    width: 80%;
    font-size: 1em;
    text-align: center;
}
#guest-name:focus {
    outline: none;
    box-shadow: 0 0 15px #2de2e6;
}

/* Estilos para el mensaje final */
#final-message {
    border: 2px solid #2de2e6; /* Borde de neón cyan */
    box-shadow: 0 0 25px #2de2e6;
}
.animated-icon {
    font-size: 4em;
    animation: pulse 2s infinite;
    text-shadow: 0 0 15px #fff;
}
.final-text {
   font-weight: bold;
   font-size: 1.3em;
   color: #f706a8; /* Neón magenta */
   margin-bottom: 20px;
}
.bible-quote {
   margin-top: 20px;
   font-style: italic;
   font-size: 1.1em;
   line-height: 1.6;
}
#final-guest-name {
    color: #2de2e6; /* Color cian neón */
    font-weight: bold;
}

/* Animaciones */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === MEJORADO === */
/* Diseño Responsivo para celulares */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        padding: 10px;
    }

    h1.neon-text {
        font-size: 1.8em;
    }

    .destruct-box {
        font-size: 1.2em;
        padding: 20px;
    }

    #initial-countdown {
        font-size: 3em;
    }
    
    .warning-text {
        font-size: 1.2em;
    }

    #invitation-container, #accepted-message, #final-message {
        padding: 20px;
        width: 100%;
    }

    .button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    button {
        width: 80%;
        padding: 12px 20px;
    }
    
    #guest-name {
        width: 90%;
    }
}

/* Estilos para el botón de inicio y el reproductor oculto */
#music-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0221;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#music-prompt-overlay .destruct-box {
    border-color: #2de2e6;
    box-shadow: 0 0 30px #2de2e6;
}

#start-button {
    font-size: 1.2em;
    padding: 20px 40px;
}

#youtube-player {
    position: absolute;
    top: -9999px;
    left: -9999px;
}