@import url('https://fonts.googleapis.com/css2?family=Caudex:wght@700&family=Source+Sans+Pro:wght@300;400;700&display=swap');

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

.hide{
  visibility: hidden;
  opacity: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  overflow: hidden;
  width:100vw;
  height:100vh;
 
}



/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

ul, li{
  margin-top:0;
  padding:0;
}

body{
    overflow: hidden;
    height:100vh;
    width:100vw;
    font-family: 'Source Sans Pro', sans-serif; 
    font-weight: 400;
}


.hidden{
  transform: translateX(-100vw);
  visibility: hidden;
  opacity: 0;
}

.preloader{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  margin:auto;
  width:100vw;
  height:100vh;
  background:#FFFFFF;
  transition:all 0.5s ease;
  z-index:99999999999999;
  display:flex;
  align-items: center;
  justify-content: center;
}


.portada{
    width: 100%;
    height: 100%;
    background-image:url('../img/bg-taller.jpg');
    background-size:cover;
    background-position: center;
}

.portada .botones{
  position: absolute;
  bottom:30px;
  right:30px;
  z-index: 99;
}

.portada .ayuda-btn{
  background:white; s
}

.creditos{
  background-color: #F9F4E1;
  height:15em;
  position: absolute;
  bottom:0;
  left:0;
  width:100%;
  display:flex;
  justify-content:space-between;
  padding:2%;
  z-index: 999;
  flex:1;
  transition:all 0.5s;
  display: none;
  overflow:auto;
}

.creditos > div{
  width:20%;
  position: relative;
  margin-right: 30px;
}

.creditos > div:nth-child(2){
  width:25%;
}

.creditos div.cerrar {
  width:auto;
}

.creditos .cerrar img{
  cursor: pointer;
  transform: scale(.7);
  position:fixed;
  bottom:0;
}

.creditos li{
  list-style: none;
}

.creditos.open{
  display: flex;
}

.pre{
    background-color: rgba(0, 0, 0, 0.6);
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color:white;
    font-size: 40px;
}

.pre p{
    max-width: 20em;
    text-align: center;
}

strong{
    font-weight: 600;
}

.pre strong{
    margin-top: 1.5em;
}

a.btn{
    border-radius: 50px;
    font-size: 30px;
    text-decoration: none;
    border: 3px solid white;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.5);
    padding:5px 15px;  
    color:black;
    /* z-index: 9; */
}

.pre a.btn{
    background-color: #95C7DD;
    margin-top: 1.2em;
    padding:5px 35px;
}

.pre a.btn:hover{
  background-color: #5DAFAF;
  transform: scale(1.2);
  transition: all 0.5s;
}

.pre{
   z-index: 99999;
   position: absolute;
   visibility: visible;
   opacity: 1;
   transform: translateY(00vh);
   transition: all 0.5s;
}

.pre.hidden{
  visibility: hidden;
  opacity: 0;
  transform: translateY(-100vh);
}


.pos{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color:white;
    font-size: 40px;
    position: absolute;
    z-index: 2;
    top:0;
    left:0;
}


.tooltip {
  /* position: fixed; */
  top: 0;
  width: 100%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  display:none!important;
  }

  .tooltip p {
    font-size: 16px;
    background: white;
    padding: 1em;
    border-radius: 5px;
    color: black;
    width: 300px;
    position: absolute;
    display: none;
    z-index: 9;
    }



.tooltip.open p{
  display:block;
}

.boton{
  cursor:pointer;
  position: fixed;
  cursor: pointer;
}

#paleta .boton{
  right:35%;
  bottom:36%;
}

#caballete .boton{
  left:60%;
  top:25%;
}

#bastidor .boton{
  top:25%;
  left:17%;
}

#lienzo .boton{
  top: 15%;
  left: 27%;
}

#pinceles  .boton{
  bottom: 45%;
  right: 20%;
}


#oleo .boton {
  bottom: 21%;
  right: 28%;
}

#acrilico {
  bottom: 20%;
  right: 18%;
}

#esmaltes{
  bottom: 25%;
  right: 22%;
}

 .pos h1{
  position: absolute;
  right:5%;
  top:8%;
  width:25%;
  color:black;
  font-size:83px;
  line-height: 1;
  font-family: 'Caudex', sans-serif;
}

.pos h1 span{
    font-size:47px;
} 

.pos a.btn{
  font-size:16px;
  font-weight: 400;
  background: white;
  border:3px solid;
  padding:1em 2em;
  width: 250px;
  text-align: center;
  visibility: hidden;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.5s;
  margin-bottom:20px;
}

.toggle-muebles, .print, .all{
opacity:1;
visibility: visible;
transform: translateY(0);
font-size:16px!important;
display:inline-block;
text-align: center;
background: white;
border:2px solid black!important;
padding:10px 20px;
border-radius:20px;
color:black;
text-decoration: none!important;
}

.all{
  padding:0;
  border:none!important;
  background:none;
  margin-bottom: 2em!important;
  text-decoration: underline!important;

}

.toggle-muebles a{
  text-decoration: none!important;
}

.toggle-muebles:hover, .print:hover{
  background:#DED1AB;
}

.pos a.btn.show{
 visibility: visible;
 opacity: 1;
 transform: translateY(0px);
}

#archivo-btn{
  border-color: #AC544C;
  color: #AC544C;
 
  transition: all 0.5; 
}

#taller-btn{

  color:#F7A73F;
  border-color:#F7A73F;
}

#taller-btn:hover{
  background-color:#F7A73F;
  color:white;
  border-color:white;
  transition: transform 0.5; 
}

#archivo-btn:hover{
  background-color: #AC544C;
  color:white;
  border-color:white;
  transition: transform 0.5; 
}

#muebles-btn{
  
     border-color:#6F73C4;
     color:#6F73C4;
}

#muebles-btn:hover{
  background-color:#6F73C4;
  color:white;
  border-color:white;
  transition: transform 0.5; 
}



.archivo, .muebles, .taller{
    background-color: rgba(255, 255, 255, 0.9);
    display:flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color:black;
    position:absolute;
    left:0;
    top:0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100vw);
    transition:all .7s;
    font-size:20px;
    padding:20px;
    z-index:99999;
    overflow-x: hidden;
}
.muebles .container{
  display:flex;
  align-items: center;
  justify-content: space-between;
  padding:20px;
}

.content header{
  padding:20px 0!important;
  justify-content: space-between;
}

.content header a{
  color:black;
  text-decoration: underline;
}

.thumbs{
  align-items: center;
}

.thumbs img{
  width:initial;
  max-width: 100%;
  cursor: pointer;
  border-radius:10px;
}

.thumbs img:hover{
  box-shadow: 3px 3px 3px rgba(0,0,0,0.6);
}

.images > div{
  cursor: pointer;
}


.muebles .content{
  width:50%;
  display:none;
}

.image-content{
  background: orange;
  position: absolute;
  right:0;
  top:0;
  height:100%;
  text-align: center;
  display:none;
  visibility: hidden;
  opacity:0;
  transition: opacity 0.5s;
}


.image-content.open{
  display:block;
  transform: translateX(0vw);
  visibility: visible;
  opacity: 1;
}


.image-container p {
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 1em;
  max-width: 40em;
  margin: 2em auto;
}

.image-container{
  margin: 5% 20%;
}

.image-container img{
background: white;
}

.thumbs{
  display:flex;
}


.hide{
  display:none;
}

.thumbs img{
  margin-right: 15px;
}

.muebles{
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  height:100%;
}


.muebles .images img{
  max-width: 420px;
  width:100%;
}

.muebles .images{
  display:flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 50%;
}

.muebles .images > div{
 flex-basis:50%;
}

.muebles .texto{
  width:45%;
}

.main-image{
  margin-bottom: 20px;
}

.main-image p{
  font-size:0.8em;
}

.taller{
  display:block;
}

.taller .back_btn{
  font-size:18px;
  color:black;
  background:white;
  border:2px solid black;
  border-radius:20px;
  padding:5px 20px 5px 20px;
  text-decoration: none;
  display:inline-block;
}

.taller .back_btn img{
  display:inline-block;
  margin.right:10px;
}

.elementos {
  display: flex;
  flex-wrap: wrap;
}
.element {
  flex-basis: 33%;
  display: flex;
  align-items: center;
  padding:20px 50px;
  }

  .taller{
    font-size:14px;
    background-color:#F9F4E1;
  }

  .element > div {
    /* border: 1px solid; */
    flex-basis: 80%;
    }

  .element img{
    margin-right:20px;
    width:120px;
  }

.disclaimer{
  font-size:12px;
  margin-top:auto;
}

.archivo.show, .muebles.show, .taller.show{
  visibility: visible;
  opacity: 1;
  transform: translateY(0px);
}

.archivo header, .muebles header{
  display:flex;
  width:100%;
  justify-content: space-between;
  align-items: center;
  padding:20px;
}

.muebles header{
    align-items: flex-start;
}

.archivo header h2, .muebles header h2{
  border-bottom:1px solid black;
  font-family: 'Caudex', sans-serif;
}

.ayuda {
  background-color: #F9F4E1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  height: 100%;
  color: black;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100vw);
  transition: all .4s;
  font-size: 20px;
  padding: 20px;
  z-index: 99999;
}

.ayuda-btn{
  font-weight:bold;
  margin-left:20px;
}

.ayuda.show{
  transform: translateX(0);
}

.game-container{
  display:flex;
  max-width: 1500px;
  margin:0 auto;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.game{
  width:50%;
}

.game-header{
  width: 100%;
  justify-content: space-between;
}

.archivo .texto{
  width:50%;
  padding-left: 5%;
  padding-right: 2%;
}

.archivo .texto p{
  margin-bottom: 1em;
}

.archivo .texto > div:first-child{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-header{
  width:100%;
  font-size:16px;
  display: flex;
  align-items: center;
  padding: 0 10px 10px;
}

.refresh{
  cursor: pointer;
  margin-right: 20px;
}

.refresh img{
  width:70%;
}

.squares {
  
  display: flex;
  flex-wrap: wrap;
}

.square{
  width:22%;
  height: 100px;
  background-size:cover;
  border-radius:10px;
  margin:1%;  
  background-color: #AC544C;
  cursor:pointer;
  transition: all 0.5s;
}

.square:hover{
  opacity: 0.9;
}

.square.open{
  background-position:center;
}

.square.border{
  border: 3px solid #AC544C;
  background-color: transparent;
}


.square:nth-child(1).open{
  background-image: url(../imagenes/2/sq1.jpg);
}


.square:nth-child(2).open{
  background-image: url(../imagenes/3/sq1.jpg);
}

.square:nth-child(3).open{
  background-image: url(../imagenes/4/sq1.jpg);
}

.square:nth-child(4).open{
  background-image: url(../imagenes/7/sq1.jpg);
}

.square:nth-child(5).open{
  background-image: url(../imagenes/4/sq2.jpg);
}

.square:nth-child(6).open{
  background-image: url(../imagenes/5/sq1.jpg);
}

.square:nth-child(7).open{
  background-image: url(../imagenes/1/sq1.jpg);
}

.square:nth-child(8).open{
  background-image: url(../imagenes/6/sq1.jpg);
}

.square:nth-child(9).open{
  background-image: url(../imagenes/6/sq2.jpg);
}

.square:nth-child(10).open{
  background-image: url(../imagenes/7/sq2.jpg);
}

.square:nth-child(11).open{
  background-image: url(../imagenes/2/sq2.jpg);
}

.square:nth-child(12).open{
  background-image: url(../imagenes/8/sq1.jpg);
}

.square:nth-child(13).open{
  background-image: url(../imagenes/3/sq2.jpg);
}

.square:nth-child(14).open{
  background-image: url(../imagenes/5/sq2.jpg);
}

.square:nth-child(15).open{
  background-image: url(../imagenes/8/sq2.jpg);
}

.square:nth-child(16).open{
  background-image: url(../imagenes/1/sq2.jpg);
}



.match{
  position: absolute;
  width:50vw;
  background-color: white;
  padding:10% 5%;
  top:0;
  right: 0;
  height:100%;
  transform: translateX(100vw);
  transition: all 0.5s;
  overflow: auto;
}

.match strong{
display:block;
}

.match._1{
  background-color: #BAD6E4;
}

.match._2{
  background-color: #E9CC7C;
}

.match._3{
  background-color: #C6D895;
}

.match._4{
  background-color: #2B8EAC;
}

.match._5{
  background-color: #C36963;
}
.match._6{
  background-color: #34B99F;
}

.match._7{
  background-color: #EF8066;
}

.match._8{
  background-color: #A3DDA6;
}

.match img{
  margin-top:20px;
}

.match.open{
  transform:translateX(0);
}

.close {
  top: 0;
  right: 0;
  position: fixed;
  margin: 20px;
  cursor: pointer;
}

#back_btn{
 margin-right: 30px;
}

.botones{
  display:flex;
  align-items: center;
  justify-content: space-between;
  z-index: 0;
}

.botones a{
  font-size:15px;
  border-color:black;
}

.botones a:hover{
  background:#DED1AB;
}

.errormsg, .success{
  position: absolute;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-100vw);
  background-color: white;
  border-radius: 10px;
  padding:15px;
  color:black;
  left: calc( 50% - 75px);
  top: 40%;
  line-height: 1.3;
}

.errormsg.open, .success.open{
  transform: translateX(0vw);
  visibility: visible;
  opacity: 1;
}

.errormsg .close, .success .close{
  position: relative;
  margin-bottom: 0;
  margin-top: 10px!important;
}

.errormsg p, .success p{
  display: block;
  text-align: center;
  /* max-width: 15em; */
 
}

.onlymobile{
  display:none;
}


/* Portrait */
@media only screen 
  and (max-device-width: 768px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
    .element{
      flex-basis:100%;
    }

    body{
      background-image: url('../img/turn.svg');
      background-position: center center;
      background-repeat: no-repeat;
      background-color: #F9F4E1;
      
    }

    .pre, .pos, .portada, .archivo, .match, .taller, .ayuda, .muebles{
     display:none; 
    }

    .toggle-muebles{
      margin-bottom:50px;
    }

    .image-content{
      width:50%;
    }
}

@media(max-width:1200px){
  .pos h1{
    width: 25%;
  }
  
  .element{
    flex-basis:100%;
  }

  .muebles .container{
    flex-direction: column;
  }

  .muebles .images, .muebles .texto, .muebles .content{
    width:100%;
  }

  .creditos{
    flex-wrap: wrap;
    overflow: auto;
    height:auto;
    max-height: 100%;
    
  }

  

  /* .creditos .cerrar img{
    position: fixed;
    top: 2%;
    right: 2%;
  } */

  .creditos > div{
    width:46%;
    margin-bottom: 1em;
  }
  .creditos > div:first-child{
    width: 100%;
    margin-bottom: 40px;
  }

  .creditos > div:nth-child(2){
    width:46%;
  }
}


@media only screen 
  and (max-device-width: 960px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {



    .pos a.btn{
      padding:10px 20px;
      transform: translateY(-50px) scale(.8);
      margin-bottom: 0;
    }
    
    .pos a.btn.show {
      transform: translateY(0px) scale(.8);
      }
    

    .creditos{
      height:auto;
      max-height:100%;
    }

    .image-content{
      height:auto;
      width:100%;
      padding-bottom: 20px;
    }


    .toggle-muebles{
      margin-top:20px;
    }

    .thumbs {
      display: flex;
      width: 50%;
      float: left;
  }

  .main-image{
    width: 50%;
    float: right;
 
}


    .thumbs img {
      margin-right: 0;
      width: 70px;
      margin: 2%;
  }

    .archivo header, .muebles header{
      padding:0;
    }

    .onlymobile{
      display:initial;
      position: relative;
      margin:0;
      position:absolute;
      top:0;
      right:0;
      transform:scale(.7);
    }
    
    .muebles .texto{
      display:block;
      padding-top: 25px;
    }

    .muebles .images > div {
      flex-basis: 33%;
      }

      .muebles .texto{
        position: absolute;
        background: white;
        padding: 30px;
        width: 50%;
        margin: 0 auto;
        top: 30%;
        font-size:14px;
      }

    .element{
      flex-basis:100%;
    }

  .pos h1 {
    right: 10px;
    top: 30px;
    width: 25%;
  }

  .archivo{
    font-size:13px;
    padding:5px;
  }
    
 .pre{
   font-size: 20px;
 }  

 .pre p{
  max-width: 20em;
  text-align: center;
}

 a.btn{
   font-size:13px;
 }

 .archivo header{
   padding:5px;
 }

 .game-container{
   height:auto; 
 }

 .close{
  transform: scale(.7);
  margin-top: 0!important;
}

.match, .ayuda{
  width:100%;
}


.game-header{
  padding:0;
  font-size:13px;
  padding-left:5px;
}

.refresh {
  margin-right: 10px;
  transform: scale(.8);
}

.disclaimer{
  font-size:10px;
}


 
}
