/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #1E1E1E;
    color: #FFD700;
    overflow-x: hidden;
}

/* Estilos del encabezado */
header {
    background-color: #333;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

header img {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

header img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #FFD700;
}

/* Animaciones y transiciones */
main {
    padding: 20px;
    animation: fadeIn 1s ease-in-out;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Tarjetas de preguntas con efecto 3D */
.tarjeta {
    background-color: #2E2E2E;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    transform: perspective(1000px);
    transition: transform 0.3s;
}

.tarjeta:hover {
    transform: perspective(1000px) rotateY(3deg);
}

/* Estilos de botones 3D */
button {
    margin: 10px;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    color: #1E1E1E;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #FFD700;
}

.btn-primary:hover {
    background-color: #FF4500;
}

.btn-secondary {
    background-color: #FF4500;
    color: white;
}

.btn-secondary:hover {
    background-color: #FFD700;
    color: #1E1E1E;
}

.btn-3d {
    background-color: #FFD700;
    color: #1E1E1E;
    font-size: 20px;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 6px #FF4500;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn-3d:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px #FF4500;
}

/* Barra de progreso */
.barra-progreso {
    width: 100%;
    background-color: #ddd;
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.progreso {
    width: 0%;
    height: 20px;
    background-color: #4caf50;
    border-radius: 5px;
    transition: width 0.4s ease;
}

/* Feedback visual de respuestas */
.feedback {
    display: none;
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
}

.feedback.correcto {
    color: #4CAF50;
    animation: correctAnimation 1s ease;
}

.feedback.incorrecto {
    color: #F44336;
    animation: incorrectAnimation 1s ease;
}

@keyframes correctAnimation {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes incorrectAnimation {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}