/*!
 * chessboard.js $version$
 *
 * Copyright 2013 Chris Oakman
 * Released under the MIT license
 * https://github.com/oakmac/chessboardjs/blob/master/LICENSE
 *
 * Date: $date$
 */

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

/* board */
.board-b72b1 {
  border: 2px solid #404040;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}

/* 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-color: #f0d9b5;
  color: #b58863;
}

/* black square */
.black-3c85d {
  background-color: #b58863;
  color: #f0d9b5;
}

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

/* notation */
.notation-322f9 {
  cursor: default;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  position: absolute;
}

.alpha-d2270 {
  bottom: 1px;
  right: 3px;
}

.numeric-fc462 {
  top: 2px;
  left: 2px;
}

#chess__board-overlay {
  position: absolute;
  top: 0;
  right: 1rem;
  bottom: 0;
  left: 1rem;
  box-sizing: border-box;
  -webkit-transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1), border 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -moz-transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1), border 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -ms-transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1), border 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -o-transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1), border 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1), border 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  margin: 0;
  background-color: rgba(255, 255, 255, 0.7);
  border: 2px solid #efefef;
  text-align: center;
}

#chess__start-prompt {
  -webkit-transition: opacity 300ms;
  -moz-transition: opacity 300ms;
  -ms-transition: opacity 300ms;
  -o-transition: opacity 300ms;
  transition: opacity 300ms;
  position: absolute;
  top: 48%;
  left: 0;
  box-sizing: border-box;
  -webkit-transition: top 300ms cubic-bezier(0.075, 0.82, 0.165, 1), margin-top 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -moz-transition: top 300ms cubic-bezier(0.075, 0.82, 0.165, 1), margin-top 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -ms-transition: top 300ms cubic-bezier(0.075, 0.82, 0.165, 1), margin-top 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -o-transition: top 300ms cubic-bezier(0.075, 0.82, 0.165, 1), margin-top 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  transition: top 300ms cubic-bezier(0.075, 0.82, 0.165, 1), margin-top 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  visibility: hidden;
  width: 100%;
  height: 150px;
  margin-top: -75px;
  opacity: 0;
  font-size: 2rem;
  text-align: center;
}

#chess__init-prompt {
  position: absolute;
  top: 48%;
  left: 0;
  visibility: hidden;
  width: 100%;
  height: 30px;
  margin-top: -15px;
  opacity: 0;
  font-size: 2rem;
  text-align: center;
}

#chess__start-stop-button {
  border-radius: 50%;
  background-clip: padding-box;
  position: relative;
  display: inline-block;
  width: 5.4rem;
  height: 5.4rem;
  background-color: #0078d7;
  cursor: pointer;
}

#chess__start-stop-button:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-width: 6px 0 6px 10px;
  border-style: solid;
  border-color: transparent transparent transparent white;
  content: '';
  margin-top: -6px;
  margin-left: -3px;
}

#chess__start-stop-button:hover {
  border: 3px solid #004881;
}

#chess__time {
  position: relative;
  top: 0.75rem;
  display: inline;
  margin-left: 1rem;
}

#chess__options-button {
  position: relative;
  display: inline-block;
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  background-color: transparent;
  color: #0078d7;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  cursor: pointer;
}

#chess__options-button span:last-child {
  display: none;
}

#chess__options-button:hover {
  color: #004881;
}

#chess__options-button:before {
  content: '';
  position: relative;
  top: 0.3rem;
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.5rem;
  background-image: url(images/icons/gear.png?_ts=1477685978110);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

#chess__options-hide-button {
  position: absolute;
  top: 2rem;
  right: 2rem;
  content: '';
  display: inline-block;
  width: 2.8rem;
  height: 2.8rem;
  background-image: url(images/icons/close.png?_ts=1477685978110);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  text-indent: -9999px;
}

#chess__options {
  -webkit-transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -moz-transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -ms-transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  -o-transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  position: relative;
  top: 100px;
  visibility: hidden;
  width: 96%;
  max-width: 520px;
  margin: 0 auto 0 auto;
  padding: 3rem;
  background-color: white;
  border: 1px solid #0078d7;
  opacity: 0;
  text-align: left;
}

#chess__options input[type=range] {
  display: block;
}

#chess__options label {
  color: #0078d7;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}

#chess__options label small {
  color: #808080;
  font-size: 1.4rem;
  line-height: 1;
}

#chess__board-message {
  -webkit-transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1) 500ms;
  -moz-transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1) 500ms;
  -ms-transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1) 500ms;
  -o-transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1) 500ms;
  transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1) 500ms;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  margin-top: 0;
  /*top: 60px;*/
  right: 0;
  bottom: auto;
  left: 0;
  background: #0078d7;
  color: white;
  font-size: 2rem;
  font-weight: 400;
  padding: 1rem;
  text-align: center;
  line-height: 1.4;
}

#chess__board-message small {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.65;
}

#chess__board-message.chess__jswins {
  background: #efefef;
  color: #404040;
}

#chess__board-overlay.chess__show-init #chess__init-prompt {
  opacity: 1;
  visibility: visible;
}

#chess__board-overlay.chess__show-start #chess__start-prompt {
  opacity: 1;
  visibility: visible;
}

#chess__board-overlay.chess__show-options,
#chess__board-overlay.chess__show-message {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid white;
}

#chess__board-overlay.chess__show-options #chess__start-prompt,
#chess__board-overlay.chess__show-message #chess__start-prompt {
  opacity: 0;
  visibility: hidden;
}

#chess__board-overlay.chess__show-options #chess__options {
  top: 2rem;
  visibility: visible;
  opacity: 1;
}

#chess__board-overlay.chess__show-message {
  background-color: rgba(255, 255, 255, 0.65);
}

#chess__board-overlay.chess__show-message #chess__start-prompt {
  display: none;
}

#chess__board-overlay.chess__show-message #chess__board-message {
  top: 50%;
  margin-top: -65px;
  visibility: visible;
  opacity: 1;
}

/* GT */
body { 
  font: 1.5em/1.5 base,"Segoe UI",Segoe,"Segoe WP","Lucida Grande","Lucida Sans",Verdana,sans-serif; 
  margin: 0; 
  overflow: hidden; 
  background: url("images/3d/backwood.png") no-repeat center center fixed; 
  background-size: cover; 
}

/*
.body, #board, #board_3d { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
*/

.body { 
  min-height: 97vh; 
}

.body_3d { 
  min-height: 97vh; 
  display: none; 
}

#board { 
  width: 90vmin; 
  height: 90vmin; 
  margin: 5vmin auto; 
}

#board_3d { 
  width: 150vmin; 
  height: 100vmin; 
  margin: auto; 
}

#chess__game-history { 
  display: none 
}

/*
#chess__board-message { 
  display: none; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  background-color: 
  transparent; 
  z-index: 1000; 
  transform: translate(-50%, -50%); 
  font-size: 5vw; 
}

#chess__init-prompt {
  display: block; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  background-color: transparent; 
  z-index: 1000; 
  transform: translate(-50%, -50%); 
  font-size: 5vw; 
}
*/

.white-1e1d7 {
  background: url("images/3d/woodlight.png") no-repeat 100% 100%;
}

.black-3c85d {
  background: url("images/3d/wooddark.png") no-repeat 100% 100%;
}

