*{
    font-family: Helvetica, sans-serif;    
}

body{
    background-color: #FFFBEF;
    margin: 0px;
    font-size: 17px;
}

#countdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20rem;
    color: white;
    z-index: 1000;
    background-color: #46428E;
}


#principal{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timer {
    font-size: 60px;
    color: #46428E;
    margin-bottom: 20px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #18B482;
    /* Fondo blanco para mayor visibilidad */
    padding: 10px;
    border: 2px solid #0d6449;
    border-radius: 5px;
    z-index: 1000;
    width: 100%;
    text-align: center;
    /* Asegura que el timer esté sobre otros elementos */

}
#header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #ffea76;
    width: 100%;
}

#header #logotipo{
    width: 300px;
    margin-left: 5%;
}

#header #menu{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 600px;
    align-content: space-aroudnd;
    justify-content: center;
}

#menu ul{
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-content: center;

    width: 100%;
    height: 100%;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu ul li{
    padding-right: 10px;
    padding-left: 10px;
    font-size: 20px;
    background-color: #46428E;
    text-transform: uppercase;
    transition: all 300ms;
}

#menu ul li:last-child{
    margin-right: 8%;
}

#menu ul li:hover {
    background-color: #1CB283;
    font-size: 25px;
}

#menu ul li a{
    display: block;
    text-decoration: none;
    line-height: 88px;
    padding: 0px 5px 0px 5px;
    color: white;
    cursor: pointer; 
    transition: all 300ms;
}

#menu ul li a:hover{
    text-decoration: underline white;
}

#iniciar-prueba{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    text-align: center;
    margin: 42px 0px -56px 0px;
    
}

#lectura-container{
    display: flex;
    flex-direction: column;
    width: 90%;
    align-items: center;
    margin-top: 20px;
}

#lectura-container *{
    display: flex;
    flex-direction: column;
    margin: 0px;
    text-align: justify;
}

#lectura-container article{
    display: flex;
    justify-content: center;
    border: 2px solid #46428E;
    margin-bottom: 10px;
    background-color: #ffea76;
}

#lectura-container article h1{
    font-size: 30px;
    background-color: #46428E;
    text-align: center;
    padding: 10px;
    color: white;
    font-weight: bold;
}

#lectura-container article h2{
    padding-top: 10px;
    font-size: 25px;
    text-align: center;

}

#lectura-container article p{
    font-size: 20px;
    margin: 10px 20px 10px 20px;
    
}

#lectura-container button{
    width: 20%;
    margin-bottom: 10px;
    align-items: center;
}

#preguntas{
    margin-top: 20px;
    width: 90%;
}

#preguntas article form{
    display: flex;
    flex-direction: column;
}

#preguntas article form > *{
    border: 2px solid #272550;
    margin: 3px;
    margin-bottom: 10px;
}


#preguntas .pregunta:hover{
    display: block;
    box-shadow:
    0 0 5px #46428E,
    0 0 10px #46428E,
    0 0 15px #46428E;
    
}


#preguntas article form > button{    
    align-self: center;
}

#preguntas article form > div p{
    background-color: #46428E;
    margin: 0;
    padding: 10px;
    color: white;
    font-weight: bold;
}

#preguntas article form > div .respuestas{
    display: flex;
    flex-direction: column;
    background-color: #ffea76;
}

#preguntas article form > div .respuestas label{
    display: block;
    padding: 10px;
    transition: all 300ms;
}


#preguntas article form > div .respuestas label:hover{
    background-color: #F2BC5A;
}


#preguntas article form > button{
    align-items: center;
    width: 20%;
    border: none;
}

#resultados{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 90%;
    height: 650px;
}

#resultados article{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#resultados article:last-child{
    display: flex;
    flex-direction: column;
}

#resultados article:last-child label{
    background-color: #46428E;
    color: white;
    margin-top: 30px;
    margin-bottom: 4px;
    text-align: center;
    padding: 5px;
}

#resultados article p{
    display: flex;
    flex-direction: column;
    border: 10px solid #46428E;
    background-color: #46428E;
    width: 250px;
    margin: 10px;
    text-align: center;
    justify-content: center;
    height: 200px;
}

#resultados #tiempo,
#resultados #ppm,
#resultados #comprension{
    color: white;
    font-size: 25px;
    padding: 5px 0px 15px 0px;
    font-weight: bold;
}


#resultados #span-tiempo,
#resultados #span-ppm,
#resultados #span-comprension{
    background-color: #ffea76;
    align-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 60px;
    height: 120px;
    
}

#enviaResultados{
    margin-top: 40px;
}
#stopButton{
    justify-content: center;
}

#referencias-velocidades-lectura{
    display: flex;
    flex-direction: column;
    width: 50%;
}

#referencias-velocidades-lectura table tr th{
    background-color: #46428E;
    color: white;
    font-weight: bold;
    padding: 15px;
}

#referencias-velocidades-lectura table tr{
    background-color: #18B482;
}

#referencias-velocidades-lectura table tr td{
    padding: 10px;
}

#referencias-velocidades-lectura p{
    padding: 15px;
}

.btn{
    background-color: #1CB283;
    border: none;
    border-radius: 999px;
    padding: 15px;
    font-size: 30px;
    color: white;
    width: 300px !important;
    height: 75px;
    cursor: pointer;
    transition: all 500ms;
}

.btn:hover{
    background-color: #46428E;
    /* font-size: 40px; */
    padding: 12px;
}


.hidden{
    display: none !important;
}


.vh80{
    height: 80vh;
}

.center{
    text-align: center;
}

.resultado-test{
    background-color: #ffea76 !important;
}

.form-control{
    height: 40px;
    border: 1px solid #46428E;
    border-radius: 4px;
    background-color: #FFEA76;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 20px;
    color: #46428E;
    font-weight: bold;
    text-align: center;
}
/* Media querys */
@media (max-width: 877px) {
    #header{
        flex-direction: column;
        align-items: center;
    }

    #header #logotipo {
     
        margin-left: 0px;
    }

    #header #menu{
        width: 100%;
    }

    #menu ul{
        justify-content: space-around;
        
        padding: 0px;
        margin: 0px;
    }


    #menu ul li:last-child{
        margin-right: 0px;
    }

    #menu ul li{
        text-align: center;
        width: 200px;
    }

    #resultados{
        height: 1100px;
    }


    #resultados article {
        flex-direction: column;
        margin-left: 13px;
        width: 100%;
        align-items: center;
    }
    
    #resultados article p{
        width: 90%;
        margin: 0px 0px 10px 0px; 
    }

    #resultados #span-tiempo{
        font-size: 60px;
    }
}

@media (max-width: 675px) {

    #header #menu{
        width: 100%;
    }

    #menu ul{
        justify-content: space-between;
        padding: 0px;
        margin: 0px;
    }


    #menu ul li{
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    #header #menu ul li{
        display: flex;
        flex-direction: row;
        width: 27%;
        font-size: 20px;
        height: 50px;
        justify-content: center;
    }

    #header #menu ul li:nth-child(2){
        font-size: 12px;
    }

    #header #menu ul li a{
        justify-content: center;
        line-height: 50px;
    }
    
    #iniciar-prueba{
        margin: 20px 0px 20px 0px;
    }

    

    #referencias-velocidades-lectura{
        display: flex;
        flex-direction: column;
        width: 90%;
    }

    
}


