@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

header {
    background-color: #4a90e2;
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 1.8em;
}

.progress-container {
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-top: 15px;
    position: relative; /* Para posicionar el texto */
    height: 25px; /* Darle altura para el texto */
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    background-color: #76c7c0;
    height: 100%; /* Ocupar toda la altura del contenedor */
    width: 0%;
    border-radius: 5px;
    transition: width 0.4s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.progress-text {
    position: relative; /* Para que esté por encima de la barra */
    color: #333;
    font-weight: bold;
    font-size: 0.9em;
    z-index: 1; /* Asegurar que el texto esté visible */
}

main {
    padding: 30px;
}

.module {
    display: none;
}

.module.active {
    display: block;
}

h2 {
    color: #4a90e2;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 0;
}

p, ul {
    line-height: 1.6;
    text-align: left;
}

.quiz-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.quiz-question {
    margin-bottom: 15px;
}

.quiz-question p {
    font-weight: bold;
    margin-bottom: 10px;
}

.options label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.quiz-feedback {
    margin-top: 10px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.quiz-feedback.correct {
    color: #2e7d32;
    background-color: #e8f5e9;
}

.quiz-feedback.incorrect {
    color: #c62828;
    background-color: #ffebee;
}

.navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #357abd;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
