﻿.board-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.time-count-span {
  position: fixed;
  top: 0;
  left: 5px;
  font-size: 32px;
  line-height: 1;
}

.draw-count-span {
  position: fixed;
  top: 0;
  right: 5px;
  font-size: 32px;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s;
}

  .draw-count-span:hover {
    opacity: 1;
  }

.message-bar {
  display: inline-block;
  width: calc(100% - 150px); /*room for time and draw count*/
  height: 27px;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.replay-range {
  position: absolute;
  z-index: 1;
  background-color: rgba(20, 20, 20, .9);
  border: none;
  border-radius: 8px;
  -webkit-appearance: none;
  -moz-appearance: none;
}

  .replay-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 30px;
    height: 30px;
    background: #432;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
  }

  .replay-range::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #432;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
  }

  .replay-range::-moz-range-track {
    background-color: transparent;
  }

  .replay-range::-ms-thumb {
    width: 30px;
    height: 30px;
    background: #432;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
  }

  .replay-range:focus {
    border: none;
    outline: none;
  }

.board-div {
  display: inline-block;
  white-space: nowrap; /*needed for Firefox*/
  font-size: 0; /*removes whitespace gap between rows*/
  box-shadow: 0 0 8px 16px #432;
  border-radius: 8px;
  background-color: #432;
}

.square-div {
  display: inline-block; /*multiple divs per line*/
  box-shadow: 0 0 4px 2px #000;
  border-radius: 4%;
}

.square-light {
  background-color: #cc9;
  opacity: .8;
}

.square-dark {
  background-color: #474;
  opacity: .8;
}

.square-last-move { /*needs to be before square-move-to-allowed so it has priority*/
  background-color: #088;
}

.square-move-to-allowed {
  border: 2px dashed #0f0;
  background-color: #080;
}

.square-move-to-allowed-hover {
  border: 2px solid #0f0;
  cursor: pointer;
}

.square-move-from-allowed {
  border: 2px dashed #0f0;
  background-color: #040;
}

  .square-move-from-allowed:hover {
    border: 2px solid #0f0;
  }

  .square-move-from-allowed .piece-div {
    cursor: pointer;
  }

.piece-div {
  display: block; /*corrects staggering of squares when squares have margin*/
  width: 100%;
  height: 100%;
}

.piece-remove {
  opacity: .1;
}

/* debug */

.piece-count {
  position: absolute;
  top: 0;
  left: 2px;
  font-size: 16px;
}

.move-count {
  position: absolute;
  top: 0;
  right: 2px;
  font-size: 16px;
  color: #0f0;
}

.square-count {
  position: absolute;
  bottom: 0;
  right: 2px;
  font-size: 12px;
}

.square-coords {
  position: absolute;
  bottom: 0;
  left: 2px;
  font-size: 12px;
}
