*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}


html{
    font-size: 62.5%;
}
#Tiempojuego{
    display: flex;
    justify-content: center;
    align-items: center;
}
 
body{
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    background-color: #f4f4f8;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;

}

.encabezado{
    background-color: #ebb9c9;
    color: #fff;
    width: 100%;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    
   
}
#nombreUsuario{
    margin-right: 10px; 
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-size: 250%;
    margin-top: 2%;

}
#Cambiarusuario{
    background-color: #d168ae;
    color: rgb(7, 7, 7);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    width: 100px;
    height: 50px;
    margin-top: 1rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    border: 1px solid #6e123d;
    box-shadow: 0 2px #999;
}
#Cambiarusuario:hover {
    background-color: #df83c3;
}

#botonjugar{
    border-radius: 15px;
    background-color: #d168ae;
    height: 30px;
    width: 125px;
    border: 1px solid #6e123d;
    box-shadow: 0 2px #999;
    cursor: pointer;
    margin-bottom: 1rem;
    margin-top: 1rem;

}
#botonjugar:hover {
    background-color: #df83c3; 
  } 
.Botones{
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
    display: inline-grid;
    grid-gap: 10px;
    grid-template-columns: auto auto;
    margin-bottom: 20px;
    margin-top: 20px;
}
.Boton:active,
.Boton.active {
    filter: brightness(200%);
}

#rojo{
    background-color: #f44336;
    color: #f44336;
   /* padding: 0.5rem 0.5rem;
    margin: 0.5rem;*/
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    border-radius: 15px;
    height: 200px;
    width: 200px;
    box-shadow: 0 2px #999;
}
#rojo:hover {
    background-color: #ec2112;
}
#verde{
    background-color: #4caf50;
    color: #4caf50;
   /* padding: 0.5rem 0.5rem;
    margin: 0.5rem;*/
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    border-radius: 15px;
    height: 200px;
    width: 200px;
    box-shadow: 0 2px #999;
}
#verde:hover {
    background-color: #48f04e;
}
#azul{
    background-color: #2196f3;
    color: #2196f3;
    /*padding: 0.5rem 0.5rem;
    margin: 0.5rem;*/
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    border-radius: 15px;
    height: 200px;
    width: 200px;
    box-shadow: 0 2px #999;
}
#azul:hover {
    background-color: #4ea6f3;
}
#amarillo{
    background-color: #ffeb3b;
    color: #ffeb3b;
   /* padding: 0.5rem 0.5rem;
    margin: 0.5rem;*/
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    border-radius: 15px;
    height: 200px;
    width: 200px;
    box-shadow: 0 2px #999;
}
#amarillo:hover {
    background-color: #fcf966;
}
.Botonesadicionales {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#instrucciones, #score, #reiniciarJuego {
    background-color: #f36eb0;
    color: #131212;
    border: 1px solid #131212;
    border-radius: 15px;
    height: 50px;
    width: 150px;
    box-shadow: 0 2px #999;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#instrucciones:hover, #score:hover, #reiniciarJuego:hover {
    background-color: #f0ccde;
}

@media (max-width: 768px) {
    #instrucciones, #score, #reiniciarJuego {
        width: 120px;
        height: 40px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    #instrucciones, #score, #reiniciarJuego {
        width: 100px;
        height: 35px;
        font-size: 1.2rem;
    }
}
.modal{
    position: absolute;
    width: 600px;
    height: 260px;
    margin: auto;

}
.modal-content {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
    flex-direction: column;  /* Alinea los elementos en columna */
}
.modal-content h2{
    background-color:#ebb9c9;
    color: #0c0c0c;
    width: 100%;
    border-radius: 15px;
    margin-top: 5px;
}
.modal-content p{
    text-align: justify;
    color: #0a0a0a;
    margin-inline: 15px;
}
.modal-content button{
    background-color: #d67795;
    color: #080808;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    width: 90px;
    margin-top: 10px;
}


