@charset "uft-8";

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


@keyframes rotate{
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

img {
  max-width: 100%
}

li{
  list-style: none;
}

/* BODY */

body{
    background-color: #BDD1EE;
    font-family:'Montserrat', sans-serif;
    align-items: center;
    text-align: center;
    min-height: 100dvh;
    background-image: url(./fondo.png);
    background-repeat: no-repeat;
}

/* VIDEO */

.video_museo{
  margin: 2.5rem;
  align-items: center;
}

.video_museo iframe{
  border-radius: 1rem;
  max-width: 100%;
}


/* CONTAINER */

.container, .pregunta, .containermuseo, .containerconfiguracion, .containerpreguntas, .containerinicio{
    background-color: white;
    border-radius: 2rem;
    border-color: black;
    border-width: 0.2rem;
    border-style: solid;
    box-shadow: 0px 5px 0px 0 rgba(0,0,0,1);
    font-weight: bold;
    margin: 2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .containerpreguntas{
    padding: 1rem;
  }

  .containerpreguntas p {
    padding-bottom: 2rem;
  }

.pregunta{
  align-items: stretch;
}

.container a, .containerconfiguracion a, .containerpreguntas a, .containerinicio a{
  text-decoration: none;
  background-color: #5266DB;
  border-radius: 2rem;
  color: white;
  padding: 1rem;
}

.container p, .containermuseo p{
  font-size: medium;
  font-weight: 500;
  padding: 2rem;
  text-align: left;
}

.container img{
    margin-top: 5%;
    max-width: 80%;
    padding: 1rem;
} 

.container h4, h2, .containermuseo h4{
  color: #5266DB;
}

h2, h3{
    padding: 2rem;
}


/* PREGUNTAS */

.pregunta li{
    text-decoration: none;
    font-size: smaller;
    font-weight: 600;
    color: white;
    background-color: #5266DB;
    border-radius: 2rem;
    padding: 1rem;
    margin: 5%;
    margin-bottom: 1rem;
}

.pregunta a{
    text-decoration: none;
    color: white;
}

/*FOOTER*/

.piedepagina{
  background-color: #5266DB;
  color: white;
  font-size: x-small;
  padding: 0.5rem;
}

/*RESPUESTA INCORRECTA*/

.respuesta_incorrecta{
    background-color: rgb(212, 115, 115);
    border-radius: 2rem;
    border-color: black;
    border-width: 0.2rem;
    border-style: solid;
    max-width: 70%;
    min-width: 30%;
    box-shadow: 0px 5px 0px 0 rgba(0,0,0,1);
    font-weight: bold;
    margin: 15%;
}

.respuesta_incorrecta a{
    text-decoration: none;
    color: white;
    background-color: #5266DB;
    border-radius: 2rem;
    padding: 1rem;
    margin: 5%;
    margin-bottom: 1rem;
    display: grid;
}


/*RESPUESTA CORRECTA*/

.respuesta_correcta{
  background-color: rgb(115, 212, 147);
  border-radius: 2rem;
  border-color: black;
  border-width: 0.2rem;
  border-style: solid;
  max-width: 70%;
  min-width: 30%;
  box-shadow: 0px 5px 0px 0 rgba(0,0,0,1);
  font-weight: bold;
  margin: 15%;
}

.respuesta_correcta a{
  text-decoration: none;
  color: white;
  background-color: #5266DB;
  border-radius: 2rem;
  padding: 1rem;
  margin: 1rem;
  margin-bottom: 1rem;
  display: grid;
}


 /* BARRA DE TIEMPO */

.barratiempo{
    margin: 3rem;
}


/* FORMULARIO */

.form__link:hover,
.form__link:focus {
  text-decoration: underline;
}
  
.form__contenedor {
  margin-block-start: 3em;
  display: grid;
  gap: 2.5em;
}
  
.form__grupo {
  position: relative;
  --color: hsl(0 0% 35% / 50%);
}

/* RENGLONES USUARIO Y CONTRASEÑA */
.form__input {
  width: 100%;
  background: none;
  color: hsl(0 0% 50%);
  font-size: 1rem;
  padding: 0.5rem;
  border: solid 1px var(--color);
  border-radius: 2rem;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: 1s;
}

.form__input:focus {
  color: var(--color);
  font-weight: 700;
}

/* ANIMACIÓN USUARIO Y CONTRASEÑA */

.form__label {
  color: var(--color);
  position: absolute;
  top: 0;
  left: .5em;
  transform: translateY(.5em);
  transition:
    transform .5s,
    color .3s,
    padding .5s;
  background-color: hsl(0 0% 100%);
  padding: 0;
}

/* ANIMACIÓN COLOR  */

  :is(.form__input:not(:placeholder-shown),
      .form__input:focus) {
    --color: hsl(225 90% 60%);
  }
  
  :is(.form__input:not(:placeholder-shown),
      .form__input:focus) + .form__label {
    transform: translateY(-.6em) scale(.7);
    transform-origin: left top;
    padding: 4px;
    --color: hsl(225 90% 60%);
  }
  
  .form__label::before {
    content: "";
    position: absolute;
    inset: calc(50% - .5em) auto auto 0;
    border-radius: 50%;
    width: 1em;
    aspect-ratio: 1;
    transform: scale(0);
    transition: .5s;
  }
  
  .form__input:focus + .form__label::before {
    transform: scale(1.5);
    inset: calc(100% + .3em) auto auto -2.5em;
  }
   
  
  .form__submit {
    background-color: #5266DB;
    color: hsl(0 0% 100%);
    font-family: inherit;
    font-size: inherit;
    font-weight: bold;
    padding-block: .8em;
    border: none;
    border-radius: 2rem;
    outline: none;
    cursor: pointer;
    transition: .5s;
  }
  
  .form__submit:focus,
  .form__submit:hover {
    background-color: hsl(225 50% 40%);
  }


  /* REGISTRARSE */

  .titulo a{
    text-decoration: none;
    color: white;
    background-color: #5266DB;
    border-radius: 2rem;
    margin-top: 1rem;
    display: grid;
    text-align: center;
  }

  
/* MENÚ HAMBURGUESA PRUEBA CON LOGO*/ 


header{
  background-color: #5266DB;
  display: flex;
  justify-content: space-between;
}

  .logo{
    display: flex;
    max-width: 10rem;
    z-index: 800;
    } 

  .menuhambur a {
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    border-bottom: 2px solid #000000;
    max-width: 200px;
    background: #ffffff;
    text-shadow: 1px 1px #ffffff;
  }

/* MENU BOTÓN */

  #btn-menu{display: none;}

 
/*desaparecer la img del menú hamburguesa*/

header label{
    display: none; 
    height: 3rem; 
    padding: 1rem; 
}

/*convierto el cursor en mano*/
header label:hover{
    cursor: pointer; 
    background: rgba(0,0,0,0.3);
    align-items: center;
}

.menu a{
  background: #5266DB;
  border-radius: 2rem;
  margin: 0.5rem;
}

.menu li a{
  text-decoration: none;
  padding: 1rem 2rem;
  color: white;
  display: block;
}

.menu ul{
  display: flex;
  justify-content: center;
}

.menu img{
  margin: 2rem;
}


    /*hago visible la img del menú hamburguesa*/
    header label{
        display: block;
    }
 
    /*saco del flujo de cajas a menú para poder ubicarlo fuera del plano*/
    .menu{
        position: absolute;
        background: #5266DB;
        width: 60%;
        transition: all .3s;
        margin-left: -70%;
        top:5rem;
        z-index: 999;
        border: solid 4px #F9CA2C
    }
    .menu ul{
        flex-direction: column;
    }
    .menu li{
        border-top: 1px solid white;
    }

   /*uso el pseudo selector :checked para identificar cuando  la casilla de verificación está marcada.
    Y para que esto ejecute otro elemento necesito el combinador de hermanos (~)*/
    #btn-menu:checked ~ .menu{
        margin-left: 0;  
    }
  


/* RANKING PERSONAL*/
  .victoria h2{
    color: #000000;
    font-weight: bolder;
    font-size: 36px;
    font-weight: bolder;
    text-transform: uppercase;
    text-shadow: 3px 2px 0px white
  }

  .victoria h3{
    color: #ffffff;
    background-color: #FE593E;
    padding: 1rem;
    font-size: 20px;
  }

  .victoria h2,
  .victoria h3 {
    top: 15rem;
    z-index: 300;
    display: flex;
    position: relative;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .victoria {
    display: flex;
    flex-direction: column;
    margin-top: -10rem;
    position: relative;
    z-index: -1;
  }

.imagenestrella {
  background-image: inherit;
  align-self: center;
  margin: -100px 0px 0px;
  transform: rotate(0deg) translate(0, 0);
  transition: transform 10s linear;
  transform: rotate(360deg) translate(0, 0);
  animation: 2.5s rotate infinite;
  animation-timing-function: linear;
}

/*CONFIGURACIÓN BOTONES*/
.gradient-button {
  margin: 10px;
  text-align: center;
  text-transform: uppercase;
  color: #FFF;
  width: 200px;
  display: inline-block;
}

.gradient-button img{
  padding-top: 6px;
  padding-right: 10px;
}



/* EL MUSEO - GALERÍA */
.galeria {
  padding: 0 1em 2em 1em;
  width: min(75em, 100%);
  margin-inline: auto;
}

.slider {
  width: 100%;
  height: max(40vh, 400px);
  position: relative;
  overflow: hidden;

}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: all 0.5s;
}

.slide img {
  border-radius: .25em;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide figcaption {
  background-color: hsla(0, 0%, 100%, 0.664);
  border-radius: .5em;
  color: rgb(0, 0, 0);
  padding: 1em;
  text-transform: uppercase;
  font-weight: 700;
  position: absolute;
  inset: auto 1em 1em 1em;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .5em;
  padding: 2rem;
}

.slide p{
  font-size: small;
  font-weight: 500;
  padding: 1rem;
  text-align: left;
}

.slide figcaption span {
  display: block;
  font-size: .85em;
  color: #000000;
  text-transform: none;
}

.slide a {
  background-color: hsla(194, 52%, 72%, 0.75);
  color: hsla(0, 0%, 0%, 0.85);
  padding: .25em 1em;
  border-radius: 2em;
  text-decoration: none;
  justify-self: end;
  margin-block-start: 1em;
}

.slide a::after {
  content: " →";
}

.slide a:hover {
  background-color: hsl(209 100% 35% / 0.95);
  box-shadow: 0 .25em .25em hsl(0 0% 0% / 0.25);
  color: hsl(0 0% 90%);
}


/* BOTONES */

.btn {
    position: absolute;
    z-index: 10;
    top: 1em;
    width: 2.5em;
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color: hsl(210 29% 30% / 0.75);
    color: white;
    font-size: 1.1em;
    opacity: .75;
  }
  
  .btn:active,
  .btn:hover {
    opacity: .9;
    border: solid 1px white;
  }
  
  .btn-prev {
    left: calc(100% - 6.25em);
  }
  
  .btn-prox {
    right: 1em;
  }
  



/* RANKING GENERAL */
.corona img{
  max-width: 100%;
  max-height: 100%;
  align-items: center;
}

.top1 {
  background-color: #5266DB;
  border-radius: 2rem 2rem 0 0 ;
  padding: 1rem;
  display: flex;
  z-index: 1;
  justify-content: space-evenly;
}

.top3{
  background-color: #5266DB;
  border-radius: 0 0 2rem 2rem;
  padding: 1rem;
  display: flex;
  z-index: 1;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pj1, .pj2, .pj3{
  margin: auto;
}

.top3 h4, .top1 h3{
  color: #ffffff;
  padding: 1rem;
}

.pj2 img{
  border-image: #ffffff;
  border-image-width: 10px;
  border-image-slice: 100%;
  border-image-outset: 0px;
}

.top3 h6, .top1 h5{
  background-color: #000000;
  border-radius: 2rem;
  color: white;
  padding: 4%;
}

.top3 h5{
  padding: 1rem;
}

.rankingconteiner{ 
  background-color: white;
  border-radius: 2rem;
  border-color: black;
  border-width: 0.2rem;
  border-style: solid;
  box-shadow: 0px 5px 0px 0 rgba(0, 0, 0, 1);
  z-index: -1;
  margin: 2rem;
}

.jugadores li{
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: space-around;
  background-color: #5266DB;
  border-radius: 2rem;
  color: white;
  padding: 1rem;
  margin: 1rem;
}

/* FORO */
.contenedorforo {
  display: block;
  margin: 2rem;
  background-color: #FFF;
  border-radius: 2rem;
  border-color: black;
  border-width: 0.2rem;
  border-style: solid;
  box-shadow: 0px 5px 0px 0 rgba(0, 0, 0, 1);
  padding: 2rem;
  z-index: -1;
}

.contenedorforo  h4{
  color: #5266DB;
}

.textoforo {
  color: #5266DB;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-bottom: 2rem;
}

.comentarios_foro{
  background-color: #5266DB;
  border-radius: 2rem;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 2rem;
  padding: 2rem;
}

.comentario h5 {
  font-weight: 400;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0rem 1.5rem 1.5rem 1.5rem;
}

.comentario{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
  flex-direction: row;
  margin-top: 1rem;
  padding: 0.6rem;
}

/* a partir de 640px */
@media (min-width: 40em) {

  .container{
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
  }
  
  ul {
    margin: 0;
    padding: 0;
    columns: 2;
    margin: 10px;
  }

  ul:has(> :last-child:nth-child(odd))::before {
  display: block;

}
  .pregunta li{
    margin: 0;
    margin-bottom: 1rem;
  }

  .pregunta{
    display: inline-flex;
    padding: 1rem;
  }

  .respuesta_correcta, .respuesta_incorrecta{
    margin: 5rem auto;
    display: inline-flex;
    flex-direction: column;
    padding:  1rem 2rem;
  }

  .containerconfiguracion{
    display: inline-flex;
    padding: 3rem 5rem;
    flex-direction: row;
    align-items: flex-start;
  }

  .textoforo{
    display: block;
  }

  .contenedorforo, .comentarios_foro, .containerinicio{
    display: inline-flex; 
  }

  .botones{
    display: flex;
    padding: 1rem;
  }

  
}