/*!
 * chessboard.js v0.3.0
 *
 * Copyright 2013 Chris Oakman
 * Released under the MIT license
 * https://github.com/oakmac/chessboardjs/blob/master/LICENSE
 *
 * Date: 10 Aug 2013
 */

/* clearfix */
.clearfix-7da63,.clear {
  clear: both;
}


#play_chess{
    width:750px;
    background:#f5f5f5;
    position:absolute;
    left:50%;
    top:30px;
    border-radius:20px;
  transform: translateX(-50%);
  -webkit-box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.2), inset 0px 0px 64px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.2), inset 0px 0px 64px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.2), inset 0px 0px 64px rgba(0, 0, 0, 0.2) ;
}
.menu{
    float:right;
    margin-right:20px;
    width:40%;
    height:100%;
}

.menu h3{
    width:100%;
    border-bottom:1px solid #ccc;
    color:#aaa;
    font-family:helvetica;
    font-weight:300;
    text-transform:uppercase;
    font-size:12px;
    line-height:34px;
}


.board{
   float:left; 
    width:50%;
}

/* board */
.board-b72b1 {
  border: 1px solid #404040;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  border-radius:3px;  
  
    background:#f5f5f5;
  -webkit-box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.2), inset 0px 0px 64px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.2), inset 0px 0px 64px rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.2), inset 0px 0px 64px rgba(0, 0, 0, 0.05) ;
  
  
}

/* square */
.square-55d63 {
  float: left;
  position: relative;

  /* disable any native browser highlighting */
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

/* white square */
.white-1e1d7 {
  background: rgba(0, 0, 0, 0.1);
/*  background: rgba(255, 255, 255, 0.8);*/
  -webkit-box-shadow: inset 0px 0px 64px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: inset 0px 0px 64px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 0px 64px rgba(0, 0, 0, 0.2);
     box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
/*border-width:1px;
border-color:#aaa;
border-style:solid;*/
}

/* black square */
.black-3c85d {
  background: rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: inset 0px 0px 64px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: inset 0px 0px 64px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 0px 64px rgba(0, 0, 0, 0.2);
/*  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #222), color-stop(1, #474747));
  background: -ms-linear-gradient(bottom, #222, #474747);
  background: -moz-linear-gradient(center bottom, #222 0%, #474747 100%);
  background: -o-linear-gradient(#222, #474747);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#474747', endColorstr='#aaa', GradientType=0);*/
   box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
/*border-width:1px;
border-color:#aaa;
border-style:solid;*/
}



/* highlighted square */
.highlight1-32417, .highlight2-9c5d2 {
  -webkit-box-shadow: inset 0 0 3px 3px paleturquoise;
  -moz-box-shadow: inset 0 0 3px 3px paleturquoise;
  box-shadow: inset 0 0 3px 3px paleturquoise;
}

/* notation */
.notation-322f9 {
  cursor: default;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight:300;
  text-transform: uppercase;
  position: absolute;
}
.alpha-d2270 {
  bottom: -25px;
  right: 20px;
}
.numeric-fc462 {
  top: 15px;
  left: -23px;
}


.center{
    margin:5px auto;
    text-align:center;
    display:block;
}
.color{
    width:15px;height:15px;
    border-radius:50%;
    box-shadow:2px 2px white;
    outline:0;
}


.control_button{
    background:white;
    border:1px solid #aaa;
    color:#474747;
    padding:7px 40px;
    text-transform: uppercase;
    border-radius:30px;
    outline:none;
    margin:5px 0 5px 10px;
}
.control_button:hover{
    background:black;
    cursor:pointer;
    color:white;
}

.board {
    width: 400px;
    margin: auto
}

.info {
    width: 400px;
            position:absolute;
    top:50%;
    left:50%;
  transform: translate(-50%, -50%);
  z-index:-1;
}

.move-history {
    max-height: 100px;
    overflow-y: scroll;
}






/* Difficuly */


.switch {
  position: relative;
  width: 15.5rem;
  padding: 0 1rem;
  font-family: helvetica;
  font-weight: 300;
  font-size: 13px;
  color: white;
}
.switch:before {
  content: '  ';
  position: absolute;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 3rem;
  background: #000;
  border-radius: 30px;
}
.switch__label {
  display: inline-block;
  width: 2.5rem;
  padding: 1rem 1rem 1rem .1rem;
  text-align: center;
  cursor: pointer;
  transition: color 200ms ease-out;
}
.switch__label:hover {
  color: white;
}
.switch__indicator {
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: -15px;
  left: 0;
  background: palegoldenrod;
  border-radius: 50%;
  transition: transform 600ms cubic-bezier(0.02, 0.94, 0.09, 0.97), background 300ms cubic-bezier(0.17, 0.67, 0.14, 1.03);
  transform: translate3d(1rem, 0, 0);
}
.switch input#one:checked ~ .switch__indicator {
  background: PaleVioletRed;
  transform: translate3d(1.5rem, 0, 0);
}
.switch input#two:checked ~ .switch__indicator {
  background: pink;
  transform: translate3d(5.5rem, 0, 0);
}
.switch input#three:checked ~ .switch__indicator {
  background: MediumTurquoise;
  transform: translate3d(9rem, 0, 0);
}
.switch input#four:checked ~ .switch__indicator {
  background: #94619c;
  transform: translate3d(13.3rem, 0, 0);
}
.switch input[type="radio"]:not(:checked), .switch input[type="radio"]:checked {
  display: none;
}







/* Switch on off hint */

.switch-wrapper input {
  position: absolute;
  left: -9999px;
}
.switch-wrapper input + label {
  width: 80px;
  height: 30px;
  background: #f5f5f5;
  display: inline-block;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.switch-wrapper input + label::after {
  position: absolute;
  content: 'Off';
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  width: 100%;
  top: 100%;
  text-align: center;
    left: 80px;
    margin-top: -20px;
  color: #303030;
  -webkit-transition: all 0.2s;
  -mox-transition: all 0.2s;
  -ms-transition: all 0.2s;
  transition: all 0.2s;
}
.switch-wrapper input + label span {
  position: absolute;
  height: 22px;
  top: 4px;
  left: 4px;
  border-radius: 22px;
  width: 22px;
  background: #dedede;
  -webkit-transition: all 0.3s;
  -mox-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  -ms-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}
.switch-wrapper input + label span em {
  height: 10px;
  width: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -5px;
  margin-left: -5px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
  transform: rotate(-135deg);
  -webkit-transition: all 0.3s;
  -mox-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
}
.switch-wrapper input + label span em::after {
  height: 100%;
  width: 2px;
  background: #ffffff;
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -1px;
  top: 0;
}
.switch-wrapper input + label span em::before {
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  top: 50%;
  margin-top: -1px;
  content: '';
  position: absolute;
  -webkit-transition: all 0.3s;
  -mox-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  -ms-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}
.switch-wrapper input:checked + label::after {
  color: #81c784;
  content: 'on';
}
/*.switch-wrapper input:checked + label + .overlay {
  background: #81c784;
}*/
.switch-wrapper input:checked + label span {
  background: #81c784;
  left: calc(100% - 26px);
}
.switch-wrapper input:checked + label span em {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  margin-left: -4px;
}
.switch-wrapper input:checked + label span em::before {
  left: 0;
  width: 50%;
  height: 2px;
  background: #ffffff;
  top: 100%;
  margin-top: -2px;
  content: '';
  position: absolute;
}
/*.switch-wrapper .overlay {
  position: fixed;
  height: 100%;
  width: 100%;
  background: #ffffff;
  top: 0;
  left: 0;
  z-index: 1;
  -webkit-transition: all 0.3s;
  -mox-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
  opacity: 0.6;
}*/
