body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;

    /* Inicio del código para el fondo animado */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    /* Fin del código para el fondo animado */
}

.container {
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

.oculto {
    display: none;
}

h1, h2 {
    color: #333;
}

.btn {
    display: block;
    width: 80%;
    max-width: 250px;
    margin: 15px auto;
    padding: 12px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

#opciones-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.opcion-btn {
    padding: 12px;
    font-size: 1em;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.opcion-btn:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
}

.feedback {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2em;
}

.correcta {
    color: green;
}

.incorrecta {
    color: red;
}/* ...código existente... */

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00; /* Color por defecto, se cambiará con JS */
    border-radius: 50%;
    opacity: 0;
    animation-name: confetti-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Animación del fondo del body */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}