/**Generales**/

*{
font-family: 'Nunito', sans-serif;
 }
 header, body{
   width: 100%;
   margin: 0 auto;
   height: auto;
 }
 a{
   text-decoration: none;
   color: inherit;
 }
 .fijo{
   width: 100%;
   margin: 0;
   padding: 0;
   height: auto;
   background-color: #fff;
   position: fixed;
   z-index: 100;
   top: 0;
   left: 0;
   display: flex;
   justify-content: space-between;
   align-items: center;
 }
 h1{
   color: #572363;
   font-size: 15px;
   font-weight: bold;
   text-align: left;
   padding: 10px;
   margin: 0;
   display: block;
   background-color: transparent;
 }
 #hora, #hora2{
   margin-right: 10px;
 }
 .espejos{
   width: 90%;
   padding: 10px 0;
   margin: 70px auto 30px auto;
   max-width: 1400px;
   display: flex;
   justify-content: space-between;
   align-items: center;
 }
 .espejos img{
   width: 16%;
   height: auto;
 }
 body{
   background-image: url(img/fondo.jpg);
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   background-attachment: fixed;
   min-height: 100vh;
 }
 main{
   width: 80%;
   margin: 0 auto 40px auto;
   max-width: 1300px;
   background-color: rgba(255, 255, 255, 0.8);
   text-align: center;
   padding: 40px 5%;
   border-radius: 15px;
 }
 #intro{
   margin-top: 80px;
 }
 footer{
   background-color: #fff;
   width: 90%;
   text-align: center;
   padding: 15px 5%;
   color: #2e0738;
 }
 footer h2{
   font-weight: 400;
   font-size: 16px;
   margin-top: 0;
   margin-bottom: 5px;
 }
 footer input{
   display: inline;
   width: 150px;
   margin: 5px;
   padding: 5px;
 }
 footer input[type="text"]{
   color: #2e0738;
   border: 1px solid #2e0738;
   border-radius: 5px;
 }
 footer input[type="submit"], footer input[type="button"]{
   background-color: #572363;
   color: #fff;
   border-radius: 5px;
   border: 1px solid #572363;
   transition: background-color 0.2s ease-in-out;
   cursor: pointer;
 }
 footer input[type="submit"]:hover, footer input[type="button"]:hover{
   transition: background-color 0.2s ease-in-out;
   background-color: #2e0738;
   border: 1px solid #2e0738;
 }
 footer p{
   font-size: 16px;
   font-weight: normal;
   color: #2e0738;
   text-align: center;
   font-style: italic;
   margin: 0;
   margin-top: 5px;
 }
 p{
   width: 100%;
   font-size: 16px;
   line-height: 18px;
   text-align: justify;
   color: #2e0738;
   margin-bottom: 5px;
 }
 h2{
   font-size: 30px;
   font-weight: 600;
   color: #572363;
   text-align: center;
   margin-bottom: 40px;
 }
 #pistas ul{
   width: 100px;
   height: 100px;
   position: fixed;
   z-index: 500;
   bottom: 20px;
   left: 20px;
   margin: 0;
   padding: 0;
   list-style-type: none;
 }
 #pistas ul li img{
   width: 100px;
   height: 100px;
   bottom: 20px;
   left: 20px;
   position: fixed;
   z-index: 500;
   border-radius: 50px;
   cursor: pointer;
 }
 #pistas ul li img:hover{
   box-shadow: 0 0 15px rgba(220, 178, 234, 0.8);
 }
 #pistas ul li ul{
   display: block;
   position: fixed;
   z-index: 450;
   width: 100px;
   bottom: 70px;
   left: 20px;
   height: 20px;
   padding-top: 20px;
   border-top-left-radius: 50px;
   border-top-right-radius: 50px;
   box-shadow: 0 0 15px rgba(220, 178, 234, 0.8);
   background-color: #fff;
   transition: height 0.5s ease;
   overflow: hidden;
 }
 #pistas ul li:hover>ul{
  height: 140px;
  transition: height 0.5s ease;
 }
 #pistas ul li ul li{
   color: #8e0738;
   font-weight: bold;
   font-size: 15px;
   text-align: center;
   line-height: 20px;
   cursor: pointer;
 }
 #pistas ul li ul li:hover{
   color: #2e0738;
 }
 #pistas ul li ul li:last-child{
   margin-top: 5px;
 }
 #pistas1, #pistas2, #pistas3, #p-clave{
   display: none;
 }
 .pistas{
   position: fixed;
   z-index: 400;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background-color: rgba(90, 40, 127, 0.9);
 }
 .pistas-cont{
   width: 100%;
   height: 100vh;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   flex-direction: column;
   justify-content: center;
 }
 .pistas p{
   width: 90%;
   max-width: 800px;
   color: #fff;
   font-size: 20px;
   line-height: 23px;
   margin: 0 auto 30px auto;
   text-align: center;
 }
 .pistas h3{
   width: 200px;
   text-align: center;
   padding: 5px 0;
   background-color: #fff;
   color: #2e0738;
   font-size: 20px;
   line-height: 20px;
   margin: 0 auto;
   cursor: pointer;
   border-radius: 5px;
 }

 /*Introducción*/
#intro h3{
  display: block;
  text-align: center;
  font-weight: bold;
  margin: 70px auto 30px auto;
  font-size: 20px;
}
#intro h4{
  display: inline;
  margin: 10px;
  padding: 5px 10px;
  font-size: 16px;
  color: #fff;
  background-color: #572363;
  border-radius: 5px;
  transition: background-color 0.2s ease-in-out;
}
#intro h4:hover{
  transition: background-color 0.2s ease-in-out;
  background-color: #2e0738;
}
#intro img{
  width: 100%;
  height: auto;
  max-width: 800px;
}
 /*Fase 1*/
.video-responsive{
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    padding-top: 30px;
    position: relative;
    margin: 40px 0;
    }
.video-responsive iframe, .video-responsive object, .video-responsive embed {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    }
  video{
    width: 100%;
    height: auto;
    margin: 40px 0;
  }
    .duo-ruletas-ind{
      width: 100%;
      margin: -20% auto 25% auto;
      display:flex;
      justify-content: space-between;
      align-items: center;
      height: 600px;
    }
    .ruletas{
      width: 100%;
      margin: 20px auto;
      height: 600px;
      max-width: 600px;
      position: relative;
    }
    .ruletas-ind{
      width: 48%;
      height: auto;
      position: relative;
    }
    .ruleta{
      width: 100%;
      height: auto;
      position: absolute;
      z-index: 1;
    }
    #ruleta1, #indruleta1{
      display: block;
    }
    #ruleta2, #ruleta3, #ruleta4, #ruleta5, #ruleta6, #ruleta7, #ruleta8{
      display: none;
    }
    #indruleta2, #indruleta3, #indruleta4, #indruleta5, #indruleta6, #indruleta7, #indruleta8{
      display: none;
    }
    .flecha-izq, .flecha-dec{
      width: 14%;
      height: auto;
      position: absolute;
      z-index: 2;
      top: 3%;
      cursor: pointer;
    }
    .flecha-izq{
      left: 5%;
    }
    .flecha-dec{
      right: 5%;
    }
    #flecha-izq-1, #flecha-dec-1, #indflecha-izq-1, #indflecha-dec-1{
      display: block;
    }
    #flecha-izq-2, #flecha-izq-3, #flecha-izq-4, #flecha-izq-5, #flecha-izq-6, #flecha-izq-7, #flecha-izq-8{
      display: none;
    }
    #indflecha-izq-2, #indflecha-izq-3, #indflecha-izq-4, #indflecha-izq-5, #indflecha-izq-6, #indflecha-izq-7, #indflecha-izq-8{
      display: none;
    }
    #flecha-dec-2, #flecha-dec-3, #flecha-dec-4, #flecha-dec-5, #flecha-dec-6, #flecha-dec-7, #flecha-dec-8{
      display: none;
    }
    #flecha-izq-1, #flecha-dec-8{
      cursor: default;
    }
    #indflecha-dec-2, #indflecha-dec-3, #indflecha-dec-4, #indflecha-dec-5, #indflecha-dec-6, #indflecha-dec-7, #indflecha-dec-8{
      display: none;
    }
    #indflecha-izq-1, #indflecha-dec-8{
      cursor: default;
    }
  /*Fase 2*/
  .carta-yayos{
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 20px auto;
  }
  .ticket{
    width: 100%;
    height: auto;
    max-width: 450px;
    margin: 20px auto;
  }
  .carta-ticket{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .carta-yayos-ind{
    width: 58%;
    height: auto;
    margin: 20px auto;
  }
  .ticket-ind{
    width: 38%;
    height: auto;
    margin: 20px auto;
  }
  .catalogo{
    width: 100%;
    margin: 0 auto;
    max-width: 1000px;
    height: auto;
    position: relative;
  }
  .fondo-cat{
    width: 100%;
    height: auto;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  }
  .img-cat{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    margin-left: -50%;
  }
  .img-cat img{
    position: absolute;
    height: auto;
    z-index: 10;
    cursor: pointer;
  }
  #carrito{
    width: 20.31%;
    margin-left: 54.77%;
    margin-top: 10.23%;
  }
  #coche{
    width: 19.06%;
    margin-left: 32.27%;
    margin-top: 68.86%;
  }
  #cinturon{
    width: 22.34%;
    margin-left: 5.16%;
    margin-top: 48.91%;
  }
  #casita{
    width: 21.79%;
    margin-left: 52.5%;
    margin-top: 65.86%;
  }
  #construccion{
    width: 28.59%;
    margin-left: 3.67%;
    margin-top: 71.25%;
  }
  #explorador{
    width: 18.83%;
    margin-left: 6.88%;
    margin-top: 17.3%;
  }
  #quimica{
    width: 21.64%;
    margin-left: 29.69%;
    margin-top: 40.16%;
  }
  #tocador{
    width: 21.41%;
    margin-left: 74.29%;
    margin-top: 80.39%;
  }
  #plancha{
    width: 20.70%;
    margin-left: 76.41%;
    margin-top: 13.91%;
  }
  #sherif{
    width: 20.78%;
    margin-left: 27.89%;
    margin-top: 17.11%;
  }
  #princesa{
    width: 17.97%;
    margin-left: 77.73%;
    margin-top: 42.03%;
  }
  #juego-te{
    width: 21.25%;
    margin-left: 52.5%;
    margin-top: 46.02%;
  }
  #fase2 h3{
    width: 100%;
    text-align: center;
    font-weight: bold;
    margin: 30px auto;
    font-size: 20px;
  }

    /*Fase 3*/

  .diario{
    width: 100%;
    max-width: 1280px;
    height: auto;
    margin: 30px auto;
    position: relative;
    background-color: #fff;
    border-radius: 5px;
  }
  .fondo-diario{
    width: 100%;
    height: auto;
  }
  .notas-diario{
    position: absolute;
    z-index:10;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
  }
button{
  top: 0;
  left: 0;
  position: absolute;
  z-index: 15;
  border: none;
  background-color: transparent;
}
button img{
  width: 100%;
  height: auto;
}
.j1-pregunta1{
  width: 14.06%;
  margin-left: 0%;
  margin-top: 41.17%;
}
.j1-pregunta2{
  width: 26.02%;
  margin-left: 71.17%;
  margin-top: 21.64%;
}
.j1-pregunta3{
  width: 17.58%;
  margin-left: 3.52%;
  margin-top: 65%;
}
.j1-pregunta4{
  width: 17.58%;
  margin-left: 82.42%;
  margin-top: 44.14%;
}
.j2-pregunta1{
  width: 17.58%;
  margin-left: 0%;
  margin-top: 45.86%;
}
.j2-pregunta2{
  width: 26.02%;
  margin-left: 71.33%;
  margin-top: 29.77%;
}
.j2-pregunta3{
  width: 17.58%;
  margin-left: 0%;
  margin-top: 60.55%;
}
.j2-pregunta4{
  width: 17.58%;
  margin-left: 78.44%;
  margin-top: 42.66%;
}
#verificar{
  width: 16.64%;
  margin-left: 71.17%;
  margin-top: 54.06%;
}
#gif-error, #gif-acierto-j1, #gif-acierto-j2{
  display: none;
  height: auto;
  top: 0;
  left: 0;
  margin-top: 53.75%;
  position: absolute;
  z-index: 20;
}

#gif-acierto-j2{
  margin-top: 53.95%;
}
#gif-error{
  width: 57.96%;
  margin-left: 42.04%;
}
#gif-acierto-j1{
  width: 57.81%;
  margin-left: 42.19%;
}
#gif-acierto-j2{
  width: 52.5%;
  margin-left: 47.5%;
}
/*Fase 4*/
#fase4 img{
  width: 100%;
  height: auto;
}
#tabla-carteles{
  width: 100%;
  max-width: 511px;
  margin: 0 auto;
}
.pestanas{
  width: 100%;
  border-bottom: 1px solid #2e0738;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-top: 30px;
}
.pestanas h2{
  width: 50%;
  height: 18px;
  font-size: 18px;
  color: #fff;
  line-height: 18px;
  padding: 10px 0;
  margin: 0;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background-color: #c6c6c6;
  color: #2e0738;
  cursor: pointer;
}
.pestanas h2:hover{
  background-color: #572363;
  color: #fff;
}
#pestana1-activa{
  background-color: #2e0738;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}
#pestana2-activa{
  background-color: #2e0738;
  color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  display: none;
}
#carteles1{
  display: block;
}
#carteles2{
  display: none;
}
/*Fase 5*/
.canciones{
  width: 100%;
  height: auto;
  position: relative;
}
#fondo-telefono{
  width: 100%;
  height: auto;
}
#pista1, #pista2, #pista3, #pista4{
  position: absolute;
  left: 0;
  top: 0;
  width: 14.84%;
  margin-left: 36.48%;
  cursor: pointer;
}
#pista1{
  margin-top: 38.05%;
}
#pista2{
  margin-top: 46.33%;
}
#pista3{
  margin-top: 54.61%;
}
#pista4{
  margin-top: 62.89%;
}
#letras{
  margin: 0 auto;
  width: 100%;
  height: auto;
}
/*Fase 6*/
.fichas{
  width: 100%;
  margin: 0 auto;
  height: auto;
  position: relative;
}
#corcho{
  width: 100%;
  height: auto;
}
.sospechosos{
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}
.sospechosos img{
  position: absolute;
  height: auto;
  left: 0;
  top: 0;
  z-index: 10;
  cursor: pointer;
}
#ficha1:hover, #ficha2:hover, #ficha3:hover, #ficha4:hover, #ficha5:hover, #ficha6:hover, #ficha7:hover{
  transform: scale(1.1);
  z-index: 15;
}
.sospechosos p{
  display: none;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  position: absolute;
  top: 10%;
  right: 30px;
  z-index: 50;
  cursor: pointer;
}
#ficha1{
  width: 22.73%;
  margin-left: 0;
  margin-top: 52.81%;
}
#ficha2{
  width: 20.23%;
  margin-left: 39.84%;
  margin-top: 12.73%;
}
#ficha3{
  width: 21.17%;
  margin-left: 60.16%;
  margin-top: 34.14%;
}
#ficha4{
  width: 19.29%;
  margin-left: 2.03%;
  margin-top: 27.03%;
}
#ficha5{
  width: 19.29%;
  margin-left: 78.13%;
  margin-top: 56.25%;
}
#ficha6{
  width: 23.36%;
  margin-left: 40.78%;
  margin-top: 51.64%;
}
#ficha7{
  width: 19.29%;
  margin-left: 22.73%;
  margin-top: 38.83%;
}
#ficha1-on, #ficha1-on-on, #ficha2-on, #ficha2-on-on, #ficha3-on, #ficha3-on-on, #ficha4-on, #ficha4-on-on, #ficha5-on, #ficha5-on-on, #ficha6-on, #ficha6-on-on, #ficha7-on, #ficha7-on-on{
  display: none;
  width: 100%;
  margin: 0 auto;
  position: absolute;
  top: 0%;
  left: 0%;
}

#ficha1-on, #ficha2-on, #ficha3-on, #ficha4-on, #ficha5-on, #ficha6-on, #ficha7-on{
  z-index: 30;
}
#ficha1-on-on, #ficha2-on-on, #ficha3-on-on, #ficha4-on-on, #ficha5-on-on, #ficha6-on-on, #ficha7-on-on{
  z-index: 40;
}
/*Emergentes*/
#emergente23, #emergente34, #emergente45, #emergente56, #emergente67{
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(90, 40, 127 ,0.9);
  position: fixed;
  z-index: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
@keyframes animacion1 {
    100%{
    opacity: 1;
   }
}
#cristal-on, #cristal1{
  opacity: 0;
  animation: animacion1 4s 1;
  animation-delay: 0s;
  position: absolute;
  width: 100%;
  height: auto;
}
@keyframes animacion2 {
    1%{
    opacity: 1;
    transition: opacity linear;
   }
   19%{
      opacity: 1;
   }
   80%{
     opacity: 0;
     transition: opacity linear;
   }
}
#cristal-off, #cristal1-on{
  opacity: 0;
  animation: animacion2 6s 1;
  animation-delay: 4s;
  position: absolute;
  width: 100%;
  height: auto;
}
#cristal2-on, #cristal2-off{
  opacity: 0;
  position: absolute;
  width: 100%;
  height: auto;
}
.cristal2-on{
  animation: animacion1 0.3s 1;
}
.cristal2-off{
  opacity: 1;
  animation: animacion2 6s 1;
  animation-delay: 0.2s;
}
#inter{
  opacity: 0;
  width: 100%;
  height: auto;
  margin: 0 auto;
  animation: animacion1 3s 1 forwards;
  animation-delay: 7s;
}
.p-boton{
  opacity: 0;
  animation: animacion1 3s 1 forwards;
  animation-delay: 7s;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
#p-boton-final{
  display: none;
  opacity: 0;
}
.p-boton-final2{
  animation: animacion1 3s 1 forwards;
  animation-delay: 3s;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.p-boton-final{
  animation: animacion1 3s 1 forwards;
  animation-delay: 3s;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.p-boton p, #inter p{
  width: 90%;
  max-width: 800px;
  color: #fff;
  font-size: 20px;
  line-height: 23px;
  margin: 0 auto 30px auto;
}

.p-boton h3, #inter h3, #p-boton-final h3{
  width: 200px;
  text-align: center;
  padding: 5px 0;
  background-color: #fff;
  color: #2e0738;
  font-size: 20px;
  line-height: 20px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 5px;
}
#invisible{
  display: none;
  margin-bottom: 30px;
}
/*Final*/
#final{
  margin-top: 70px;
}

@media all and (max-width: 1000px){
.duo-ruletas-ind{
  margin: -30% auto 10% auto;
}
}
@media all and (max-width: 700px){
  .espejos{
    flex-wrap: wrap;
  }
.espejos img {
   display: block;
    width: 33%;
    flex-shrink: 0;
}
.duo-ruletas-ind{
  display: block;
  margin: 0% auto 100% auto;
}
.ruletas-ind{
  width: 100%;
  height: 90%;
}
.carta-ticket{
  display: block;
}
.carta-yayos-ind, .ticket-ind{
  width: 100%;
}
.ticket-ind{
  max-width: 480px;
}
}

@media all and (max-width: 600px){
footer{
  padding-bottom: 115px;
}
.ruletas{
  height: 500px;
}
}

@media all and (max-width: 550px){
  .duo-ruletas-ind{
    margin: 0 auto 70% auto;
  }
  .ruletas-ind{
    height: 80%;
  }
  .ruletas{
    height: 400px;
  }
}
@media all and (max-width: 450px){
  .duo-ruletas-ind{
    margin: 0 auto 30% auto;
  }
  .ruletas-ind{
    height: 60%;
  }
  .fijo{
    display: block;
  }
  #hora{
    text-align: right;
  }
  .pestanas h2{
    font-size: 14px;
  }
  .ruletas{
    height: 300px;
  }
}
