/*
 * Chessground base css properties, for clarity.
 *
 * You can then include either desktop.css or mobile.css.
 *
 * And you need to include the css files in themes folder in order to have the
 * board and pieces displayed!
 */

.cg-board-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}
 .cg-board-wrap svg {
  overflow: hidden;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}
.cg-board-wrap svg * {
  transition: 0.3s;
}
.cg-board {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  line-height: 0;
  background-size: cover;
  position: relative;
  width: 100%;
  height: 100%;
}
square {
  position: absolute;
  top: 0;
  left: 0;
  width: 12.5%;
  height: 12.5%;
}
square.move-dest {
  background: radial-gradient(rgba(20, 85, 30, 0.5) 22%, #208530 0, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0) 0);
}
square.premove-dest {
  background: radial-gradient(rgba(20, 30, 85, 0.5) 22%, #203085 0, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0) 0);
}
square.last-move {
  background-color: rgba(155, 199, 0, 0.41);
}
square.selected {
  background-color: rgba(20, 85, 30, 0.5);
}
square.check {
  background: radial-gradient(ellipse at center, rgba(255, 0, 0, 1) 0%, rgba(231, 0, 0, 1) 25%, rgba(169, 0, 0, 0) 89%, rgba(158, 0, 0, 0) 100%);
}
square.current-premove {
  background-color: rgba(20, 30, 85, 0.5);
}
piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 12.5%;
  height: 12.5%;
  background-size: cover;
  z-index: 2;
  will-change: transform;
}
piece.dragging {
  z-index: 9;
}
piece.ghost {
  opacity: 0.3;
}
.cg-board-wrap coords {
  position: absolute;
  display: flex;
  pointer-events: none;
  opacity: 0.8;
  font-size: 9px;
}
.cg-board-wrap coords.ranks {
  right: -15px;
  top: 0;
  flex-flow: column-reverse;
  height: 100%;
  width: 12px;
}
.is3d .cg-board-wrap coords.ranks {
  height: calc(100% - 10px);
}
.cg-board-wrap coords.ranks.black {
  flex-flow: column;
}
.cg-board-wrap coords.files {
  bottom: -16px;
  left: 0;
  flex-flow: row;
  width: 100%;
  height: 16px;
  text-transform: uppercase;
  text-align: center;
}
.cg-board-wrap coords.files.black {
  flex-flow: row-reverse;
}
.cg-board-wrap coords coord {
  flex: 1 1 auto;
}
.cg-board-wrap coords.ranks coord {
  transform: translateY(39%);
}
body.coords_0 .cg-board-wrap coords {
  display: none;
}
body.coords_1 .cg-board-wrap coords {
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
body.coords_1 .cg-board-wrap coords.files {
  bottom: 0px;
  text-align: left;
}
body.coords_1 .cg-board-wrap coords.files coord {
  padding-left: 2px;
}
body.coords_1 .cg-board-wrap coords.ranks {
  right: -4px;
  text-align: left;
}
body.coords_1 .cg-board-wrap coords.ranks coord {
  transform: none;
}
.cg-board {
  cursor: pointer;
}
.cg-board .cg-square.move-dest.drag-over,
.cg-board .cg-square.premove-dest.drag-over {
  box-shadow: inset 0 0 10px 2px rgba(216, 85, 0, 0.9);
}
piece.dragging {
  cursor: move;
}
