/* style.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Asegura que el body ocupe al menos toda la altura de la ventana */
 
  
}

.container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 90%; /* Aumenta el ancho predeterminado */
    max-width: 700px;
    margin: 20px auto; /* Centra horizontalmente */
}

header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5em;
    font-size: 2em;
}

header p {
    font-size: 1em;
    font-weight: 300;
}

main {
    padding: 20px;
}

#juego {
    padding: 15px;
}

#frase {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: #34495e;
}

input[type="text"] {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
}

button {
    background-color: #3498db;
    color: #fff;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-top: 0.5em;
}

button:hover {
    background-color: #2980b9;
}

#opciones-multiples {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 1em;
}

#opciones-multiples button.opcion {
    background-color: #ecf0f1;
    color: #34495e;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: left;
    width: 100%;
}

#opciones-multiples button.opcion:hover {
    background-color: #3498db;
    color: #fff;
}

#feedback {
    margin-top: 1em;
    font-weight: bold;
    font-size: 1em;
}

#imagen-etapa {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5em;
}

#imagen-etapa img {
    max-width: 100%; /* La imagen ocupa todo el ancho disponible */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1em;
    font-size: 0.8em;
    
}


/* Estilos para la notificación de nivel */
#notificacion-nivel {
    display: none;
    text-align: center;
    padding: 2em;
    background-color: #2ecc71; /* Verde para la notificación */
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 1.5em;
}

#mensaje-nivel {
    font-size: 1.2em;
    margin-bottom: 1em;
}

#empezar-nivel {
    background-color: #fff;
    color: #2ecc71;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#empezar-nivel:hover {
    background-color: #27ae60; /* Verde más oscuro */
    color: #fff;
}

/* Diseño responsivo */
@media (max-width: 600px) {
    .container {
        width: 95%;
        margin: 10px auto; /* Mantiene centrado */
    }

    header {
        padding: 15px;
    }

    header h1 {
        font-size: 1.75em;
    }

    header p {
        font-size: 0.9em;
    }

    main {
        padding: 15px;
    }

    #juego {
        padding: 10px;
    }

    #frase {
        font-size: 1em;
    }

    input[type="text"],
    button,
    #opciones-multiples button.opcion {
        font-size: 0.9em;
        padding: 0.6em 1.2em;
    }

    #imagen-etapa img {
        max-width: 100%;
    }

    #notificacion-nivel {
        padding: 1.5em;
    }

    #mensaje-nivel {
        font-size: 1.1em;
    }
}