/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url('assets/colombia-fondo.jpg'); /* Fondo temático */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    position: relative;
}

header .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Pantalla de instrucciones */
.pantalla-instrucciones {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.instrucciones-contenido {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.instrucciones-contenido h2 {
    color: #0073e6;
}

.instrucciones-contenido ul {
    list-style: none;
    padding: 0;
}

.instrucciones-contenido li {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Contenedor del juego */
.juego-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    background-color: rgba(249, 249, 249, 0.9); /* Fondo semitransparente */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.juego-container h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.contador-preguntas {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.temporizador {
    font-size: 1.2rem;
    color: #ff0000;
    margin-bottom: 20px;
}

.pregunta {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pregunta p {
    font-size: 1.5rem;
    color: #333;
}

.opciones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.opcion {
    background-color: #0073e6;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.opcion:hover {
    background-color: #005bb5;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.opcion:active {
    transform: scale(0.95); /* Efecto de "presionado" */
}

.opcion[data-correcta="true"]:hover {
    background-color: #28a745; /* Verde para la respuesta correcta */
}

.feedback {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Barra de Progreso */
.barra-progreso {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    height: 20px;
    margin-bottom: 20px;
}

.progreso {
    width: 0%;
    height: 100%;
    background-color: #0073e6;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Datos Curiosos */
.datos-curiosos {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #555;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
}

/* Pantalla de Resultados */
.pantalla-resultados {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
    color: #fff;
}

.pantalla-resultados h2 {
    font-size: 2.5rem;
    color: #fff;
}

.pantalla-resultados p {
    font-size: 1.5rem;
    margin: 10px 0;
}

/* Tarjetas */
.tarjetas {
    display: flex;
    justify-content: center;
    padding: 20px;
    max-width: 76.5%;
    margin: 0 auto;
    gap: 20px;
}

.tarjeta {
    width: 25%;
    height: 300px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.tarjeta:hover {
    transform: scale(1.05);
}

.tarjeta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarjeta-texto {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.65);
    color: #fff;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Estilos para los botones */
.boton-jugar, .boton-pausa, .boton-sonido, .boton-empezar, .boton-reiniciar {
    background-color: #0073e6;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 20px;
}

.boton-jugar:hover, .boton-pausa:hover, .boton-sonido:hover, .boton-empezar:hover, .boton-reiniciar:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

.boton-jugar i, .boton-pausa i, .boton-sonido i {
    margin-right: 10px;
}

/* Accesibilidad */
.opcion:focus, .boton-jugar:focus, .boton-pausa:focus, .boton-sonido:focus, .boton-empezar:focus, .boton-reiniciar:focus {
    outline: 3px solid #ffeb3b; /* Amarillo para accesibilidad */
    outline-offset: 2px;
}

/* Modo de alto contraste (nuevo) */
body.alto-contraste {
    background: #000;
    color: #fff;
}

body.alto-contraste .juego-container {
    background-color: #000;
    color: #fff;
}

body.alto-contraste .opcion, body.alto-contraste .boton-jugar, body.alto-contraste .boton-pausa, body.alto-contraste .boton-sonido, body.alto-contraste .boton-empezar, body.alto-contraste .boton-reiniciar {
    background-color: #ffeb3b;
    color: #000;
}

/* Responsividad */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        position: static;
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    .tarjetas {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta {
        width: 80%;
        margin-bottom: 20px;
    }

    .opciones {
        grid-template-columns: 1fr;
    }

    .juego-container h1 {
        font-size: 2rem;
    }

    .pregunta p {
        font-size: 1.2rem;
    }

    .opcion {
        font-size: 1rem;
    }
}