html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code,  del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video{
  margin:0;
  padding:0;
  text-decoration:none;
  outline:none;
  border:none;
  font-size: 100%;
  list-style:none;
  font-family: "Bariol", Helvetica, Arial, sans-serif;
  color:#000;
  -webkit-text-size-adjust:none;
  -webkit-font-smoothing: antialiased;
  vertical-align: baseline;
}
*, *:before, *:after {
    box-sizing: border-box;
}
:focus { outline: 0;}
:link, :visited, :hover, :active{text-decoration:none}
table { border-collapse: separate;border-spacing: 0;}
th, td {text-align: left; font-weight: normal;}
img, iframe {border: none; text-decoration:none;}
ol, ul {list-style: none;}
input, textarea, select, button {font-size: 100%;font-family: inherit;}
select {margin: inherit;}
hr {margin: 0;padding: 0;border: 0;color: #000;background-color: #000;height: 1px}



html{
  position: relative;
  top:0px;
  left: 0px;
  width:100%;
  min-height:100%;
}

body{
  background: #fff; /* Old browsers */
}

#loading{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#fff url(../../images/loading.gif) no-repeat center;
  background-size: 150px;
  z-index: 1000000000;
}


.wrapper{
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0px 0px;
  padding-top: 5%;
}


header{
  position: absolute;
  top: 5px;
  left: 0px;
  background-image: url("../../images/barra_superior_laterales.png");
  background-repeat: repeat-x;
  background-size: contain;
  background-position: center 5%;
  width: 100%;
  height: 40px;
}
header:after{
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  width: 500px;
  height: 100%;
  background-image: url("../../images/barra_superior_anaya.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 90% center;
}
header:before{
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 500px;
  height: 100%;
  background-image: url("../../images/barra_superior_ajeduca.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 10% center;
}

h1{
  text-align: center;
  font-size: 20px;
  padding: 10px;
  margin: 20px 0px;
  font-size: 20px;
}




/*------------------------ AJEDUCA ------------------------*/
/*---------------------------------------------------------*/
.mostrarAjeduca, .mostrarAjeduca *{ box-sizing: border-box; }

.mostrarAjeduca{
  position: relative;
  float: left;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 5px;
  margin-top: 10px;
}


.mostrarAjeduca .pantallaInicio{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color:rgba(255,255,255,0.9);
  background-size: 150px;
  z-index: 10000;
}
.mostrarAjeduca .pantallaInicio div{
  position: absolute;
  width: 35%;
  height: 100px;
  padding-top: 15px;
  line-height: 35px;
  text-align: center;
  color: #fff;
  font-size: 25px;
  font-weight: bold;
  border-radius: 10px;
  border-bottom: 5px solid transparent;
}
.mostrarAjeduca .pantallaInicio div:hover{
  cursor: pointer;
  opacity: 0.9;
  -ms-transform: scale(1.1); /* IE 9 */
  -webkit-transform: scale(1.1); /* Safari */
  transform: scale(1.1);
}
.mostrarAjeduca .pantallaInicio div#btn_tablero{
  background-color: #d89038;
  border-color:#b46f1d;
  top: 40%;
  left: 12%;
}
.mostrarAjeduca .pantallaInicio div#btn_notablero{
  background-color: #e4aa2d;
  border-color:#c49025;
  top: 40%;
  right: 12%;
}


.footerAjedrez .btn{
  position: relative;
  min-width: 200px;
  padding: 0px 15px;
  padding-left: 50px;
  height: 45px;
  line-height: 45px;
  display: inline-block;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  margin-right: 10px;
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#00b0e6+50,5ec5ed+50 */
  background: #00b0e6; /* Old browsers */
  background: -moz-linear-gradient(top,  #00b0e6 50%, #5ec5ed 50%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top,  #00b0e6 50%,#5ec5ed 50%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom,  #00b0e6 50%,#5ec5ed 50%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b0e6', endColorstr='#5ec5ed',GradientType=0 ); /* IE6-9 */
}
.footerAjedrez .btn:after{
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 50px;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: center 7px;
}
.footerAjedrez .btn:not(.disabled):hover{
  background: #00B0E6 !important;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(94,196,237,1);
  -moz-box-shadow: 0px 0px 10px 0px rgba(94,196,237,1);
  box-shadow: 0px 0px 10px 0px rgba(94,196,237,1);
}
.footerAjedrez  .btn.disabled{
  cursor: default;
  opacity: 0.2;
  -webkit-filter: grayscale(50%);
  filter: grayscale(50%); 
}


#btn_limpiarTablero:after{
  background-image: url("../../images/icon_limpiar.png");
}
#btn_colocarEnTablerto:after{
  background-image: url("../../images/icon_colocar.png");
}
#btn_deshacerJugada:after{
  background-image: url("../../images/icon_deshacer.png");
}
#btn_rehacerJugada:after{
  background-image: url("../../images/icon_rehacer.png");
}





.mostrarAjeduca > .sectionIzquierda{
  position: relative;
  float: left;
  top: 0px;
  left: 0px;
  width: 25%;
}
.mostrarAjeduca > .sectionCentro{
  text-align: center;
  position: relative;
  float: left;
  top: 0px;
  left: 0px;
  width: 50%;
  min-width: 512px;
  min-height: 100px;
}
.mostrarAjeduca > .sectionDerecha{
  position: relative;
  float: left;
  top: 0px;
  left: 0px;
  min-width: 11%;
  max-width: 25%;
  width: 100%;
}


.mostrarAjeduca ul.caja{
  position: relative;
  display: block;
  margin: auto;
  width: 70%;
  max-width: 300px;
  height: 100%;
  min-height: 400px;
  background-color: #a2daf4;
}
.mostrarAjeduca ul.caja > li{
  position: relative;
  float: left;
  width: 50%;
  min-width: 50px;
  height: 12.5%;
  min-height: 50px;
  padding: 3px;
}
.mostrarAjeduca ul.caja.blancas > li:nth-child(2n+1){  background-color: #5ec5ed; }
.mostrarAjeduca ul.caja.blancas > li:nth-child(2n){  background-color: #a2daf4; }
.mostrarAjeduca ul.caja.negras > li:nth-child(2n+1){  background-color: #a2daf4; }
.mostrarAjeduca ul.caja.negras > li:nth-child(2n){  background-color: #5ec5ed; }








.mostrarAjeduca div.ajedreztablero{
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}
.mostrarAjeduca div.ajedreztablero .tablero{
  display: inline-block;
  position: relative;
  width: 70%;
  max-width: 720px;
  min-width: 404px;
  height: 100%;
  min-height: 400px;
  background-color: #fff;
  border:2px solid #84d0f0;
}
.mostrarAjeduca div.ajedreztablero .tablero > .filas{
  display: block;
  position: relative;
  width: auto;
  height: 12.5%;
  min-height: 50px;
}
.mostrarAjeduca div.ajedreztablero .tablero > .filas > .cuadrados{
  display: block;
  position: relative;
  float: left;
  width: 12.5%;
  max-width: 90px;
  height: 100%;
  min-height: 50px;
  max-height: 90px;
  padding: 3px;
}

.mostrarAjeduca div.ajedreztablero .tablero > .filas:nth-child(2n-1) > .cuadrados:nth-child(2n){  background-color: #a2daf4; }
.mostrarAjeduca div.ajedreztablero .tablero > .filas:nth-child(2n) > .cuadrados:nth-child(2n-1){  background-color: #a2daf4; }



.ejes{ height: 50px;  }
.mostrarAjeduca div.ajedreztablero .ejeX{
  position: relative;
  left: 50%;
  display: block;
  width: 100%;
  height: 50px;
  text-align: center;
}
.mostrarAjeduca div.ajedreztablero .ejeX li{
  display: inline-block;
  width: 12.5%;
  max-width: 90px;
  height: 50px;
  line-height: 50px;
  font-size: 25px;
  color: #eb690b;
}

.mostrarAjeduca div.ajedreztablero .ejeY{
  display: inline-block;
  width: 5%;
  height: 100%;

}
.mostrarAjeduca div.ajedreztablero .ejeY li{
  float: left;
  width: 100%;
  height: 12.5%;
  max-block-size: 90px;
  line-height: 50px;
  font-size: 25px;
  color: #eb690b;
}


span.pieza{
  position: absolute !important;
  top: 0px;
  left: 0px;
  z-index: 10;
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
span.pieza.blancas#peon{ background-image: url("../../images/ficha_blanca_peon.png"); }
span.pieza.blancas#alfil{ background-image: url("../../images/ficha_blanca_alfil.png"); }
span.pieza.blancas#caballo{ background-image: url("../../images/ficha_blanca_caballo.png"); }
span.pieza.blancas#reina{ background-image: url("../../images/ficha_blanca_reina.png"); }
span.pieza.blancas#rey{ background-image: url("../../images/ficha_blanca_rey.png"); }
span.pieza.blancas#torre{ background-image: url("../../images/ficha_blanca_torre.png"); }

span.pieza.negras#peon{ background-image: url("../../images/ficha_negra_peon.png"); }
span.pieza.negras#alfil{ background-image: url("../../images/ficha_negra_alfil.png"); }
span.pieza.negras#caballo{ background-image: url("../../images/ficha_negra_caballo.png"); }
span.pieza.negras#reina{ background-image: url("../../images/ficha_negra_reina.png"); }
span.pieza.negras#rey{ background-image: url("../../images/ficha_negra_rey.png"); }
span.pieza.negras#torre{ background-image: url("../../images/ficha_negra_torre.png"); }









.mostrarAjeduca ul.caja > li:before{
  content: '';
  position: absolute;
  z-index: 2;
  top: 2.5%;
  left: 2.5%;
  width: 95%;
  height: 95%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.3;
  -webkit-filter: grayscale(50%); /* Safari 6.0 - 9.0 */
  filter: grayscale(50%);
}
.mostrarAjeduca ul.caja.blancas > li.hueco.peon:before{ background-image: url("../../images/ficha_blanca_peon.png"); }
.mostrarAjeduca ul.caja.blancas > li.hueco.alfil:before{ background-image: url("../../images/ficha_blanca_alfil.png"); }
.mostrarAjeduca ul.caja.blancas > li.hueco.caballo:before{ background-image: url("../../images/ficha_blanca_caballo.png"); }
.mostrarAjeduca ul.caja.blancas > li.hueco.reina:before{ background-image: url("../../images/ficha_blanca_reina.png"); }
.mostrarAjeduca ul.caja.blancas > li.hueco.rey:before{ background-image: url("../../images/ficha_blanca_rey.png"); }
.mostrarAjeduca ul.caja.blancas > li.hueco.torre:before{ background-image: url("../../images/ficha_blanca_torre.png"); }

.mostrarAjeduca ul.caja.negras > li.hueco.peon:before{ background-image: url("../../images/ficha_negra_peon.png"); }
.mostrarAjeduca ul.caja.negras > li.hueco.alfil:before{ background-image: url("../../images/ficha_negra_alfil.png"); }
.mostrarAjeduca ul.caja.negras > li.hueco.caballo:before{ background-image: url("../../images/ficha_negra_caballo.png"); }
.mostrarAjeduca ul.caja.negras > li.hueco.reina:before{ background-image: url("../../images/ficha_negra_reina.png"); }
.mostrarAjeduca ul.caja.negras > li.hueco.rey:before{ background-image: url("../../images/ficha_negra_rey.png"); }
.mostrarAjeduca ul.caja.negras > li.hueco.torre:before{ background-image: url("../../images/ficha_negra_torre.png"); }



.mostrarAjeduca .footerAjedrez{
  margin: 20px 0px;
  width: 100%;
  text-align: center;
}




.tablero .filas .cuadrados span.ui-placeholder, .caja .hueco span.ui-placeholder{
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  background-color: #87a1ac;
  width: 100%;
  height: 100%;
  display: block;
}



.lightbox{
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.8);
  
}
.lightbox .alert{
  width: 600px;
  height: 200px;
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-color: #f08558;
  border-radius: 10px;
  overflow: hidden;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
}
.lightbox .alert .icon{
  width: 100px;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: #E3000E;
  background-image: url("../../images/icon_alert.png");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: center;
}
.lightbox .alert .texto{
  width: 500px;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 100px;
}
.lightbox .alert .texto p{
  text-align: center;
  font-size: 20px;
  margin-top: 45px;
  padding: 0x 10px;
  font-weight: bold;
}

.lightbox .alert .texto div{
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  bottom: 25px;
  width: 150px;
  background-color: #D2D7D3;
  line-height: 50px;
  border-radius: 50px;
  border-bottom: 5px solid #6C8784;
  cursor: pointer;
}
.lightbox .alert .texto div:hover{
  opacity: 0.8;
}
.lightbox .alert .texto div:nth-of-type(1){ left: 50px; }
.lightbox .alert .texto div:nth-of-type(2){ right: 50px; }






@media screen and (min-width: 2100px) {
  h1{ font-size: 190%;}
}
@media screen and (max-width: 2100px) {
  h1{ font-size: 190%;}
}
@media screen and (max-width: 1500px) {
  h1{ font-size: 150%;}
}
@media screen and (max-width: 1300px) {
  h1{ font-size: 130%;}
}
@media screen and (max-width: 1150px) {
  h1{ font-size: 120%;}
}
  
  

@media screen and (max-width: 1200px) {
  .mostrarAjeduca{
    /*background-color: purple !important;*/
  }
  .mostrarAjeduca > .sectionIzquierda{
    width: 24.4%;
  }
  .mostrarAjeduca > .sectionDerecha{
    width: 24.4%;
  }
   
}
  
@media screen and (max-width: 1000px) {
  header{ height:20px; }
  
  h1{ font-size: 100%;}
  
  .mostrarAjeduca{
    /*background-color: red !important;*/
  }
  .mostrarAjeduca > .sectionIzquierda{
    width: 20%;
  }
  .mostrarAjeduca > .sectionCentro{
    width: 60%;
  }
  .mostrarAjeduca > .sectionDerecha{
    width: 20%;
  }
   
}

@media screen and (max-width: 850px) {
  .mostrarAjeduca{
    /*background-color: orange !important;*/
  }
  .mostrarAjeduca > .sectionIzquierda{
    width: 15%;
  }
  .mostrarAjeduca > .sectionCentro{
    width: 70%;
  }
  .mostrarAjeduca > .sectionDerecha{
    width: 15%;
  }
  .mostrarAjeduca ul.caja{
    width: 90%;
  }
   
}







/*------------------------ COLOR TEXTO SELECCIONADO ------------------------*/
::-moz-selection{
    background: #e0f4f1; /* color de fondo */
    color: #4ea094; /* color de texto */
}
::selection{
    background: #e0f4f1; /* color de fondo */
    color: #4ea094; /* color de texto */
}
::-webkit-selection {
    background: #e0f4f1; /* color de fondo */
    color: #4ea094; /* color de texto */
} 