/* Estilos generales del fondo */
body {
    font-family: 'Orbitron', sans-serif; /* Usamos Orbitron para un estilo futurista */
    margin: 0;
    background: linear-gradient(135deg, #1f2a44, #4b3b74); /* Colores oscuros como el espacio */
    color: #ffffff;
    text-align: center;
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding: 20px;
    animation: backgroundChange 60s infinite alternate;
}

/* Animación de cambio de fondo suave */
@keyframes backgroundChange {
    0% {
        background: linear-gradient(135deg, #1f2a44, #4b3b74);
    }
    25% {
        background: linear-gradient(135deg, #4b3b74, #7a4e9d); /* Nebulosa morada */
    }
    50% {
        background: linear-gradient(135deg, #1c1c2c, #2e1b47); /* Espacio profundo */
    }
    75% {
        background: linear-gradient(135deg, #2e1b47, #7a4e9d); /* Galaxia morada */
    }
    100% {
        background: linear-gradient(135deg, #1f2a44, #4b3b74); /* Regreso a la temática inicial */
    }
}

/* Animación para las estrellas */
@keyframes starEffect {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Contenedor para las estrellas */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Asegura que las estrellas queden detrás del contenido */
}

/* Estrellas individuales */
.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #f3f4f6; /* Blanco brillante para simular estrellas */
    border-radius: 50%;
    animation: starEffect 2s infinite ease-in-out;
}

/* Contenedor de la imagen y texto */
.image-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.image {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-image 1s ease-in-out;
}

.question {
    font-size: 24px;
    margin-top: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    white-space: pre-wrap;
    margin-bottom: 30px;
}

/* Opciones y botones */
.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin-bottom: 40px;
}

button {
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: #6a7fdb; /* Azul espacio */
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Hover en los botones */
button:hover {
    background-color: #5c6bc0; /* Azul galáctico más oscuro */
    color: #f8a3c7; /* Rosa galáctico */
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid #6a7fdb;
}

/* Botones deshabilitados */
button:disabled {
    background-color: #4a4a69; /* Gris oscuro */
    color: #999;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 2px solid #4a4a69;
}

/* Media Queries para dispositivos móviles y tabletas */
@media (max-width: 1024px) {
    /* Ajustar tamaños de la imagen y el texto para pantallas más pequeñas */
    .image {
        width: 180px;
        height: 180px;
    }

    .question {
        font-size: 20px;
        margin-top: 15px;
    }

    button {
        font-size: 16px;
        padding: 10px 20px;
    }

    .options {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    /* Ajustar más para tabletas */
    .image {
        width: 160px;
        height: 160px;
    }

    .question {
        font-size: 18px;
        margin-top: 10px;
    }

    button {
        font-size: 14px;
        padding: 8px 18px;
    }

    .options {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* Ajustes para pantallas de teléfonos móviles */
    .image {
        width: 120px;
        height: 120px;
    }

    .question {
        font-size: 16px;
        margin-top: 8px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
        width: 100%;
    }

    .options {
        gap: 8px;
    }

    body {
        padding: 10px; /* Menos padding en dispositivos móviles */
    }
}

