.chess-row {
  height: 12.5%;
}

.square {
  display: inline-block;
  position: relative;
  height: 100%;
  width: 12.5%;
}

.white-square {
  background-color: #edd6b0;
  color: #b58863;
}

.black-square {
  background-color: #b88762;
  color: #f0d9b5;
}

.last-move.white-square {
  background-color: #f6eb72;
}

.last-move.black-square {
  background-color: #dcc34b;
}

.highlight.white-square {
  background-color: #eb7963;
}

.highlight.black-square {
  background-color: #e16954;
}

.dot.white-square {
  background-image: radial-gradient(
    rgb(204, 184, 151) 23%,
    rgba(0, 0, 0, 0) 20%
  );
}

.dot.black-square {
  background-image: radial-gradient(
    rgb(158, 116, 84) 23%,
    rgba(0, 0, 0, 0) 20%
  );
}

.dot.white-square:hover,
.hover.white-square {
  cursor: pointer;
  background-color: rgb(204, 184, 151);
}

.dot.black-square:hover,
.hover.black-square {
  cursor: pointer;
  background-color: rgb(158, 116, 84);
}

.square-text {
  position: absolute;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.square-number {
  top: 2px;
  left: 2px;
}

.square-letter {
  bottom: 2px;
  right: 2px;
}

.piece-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.piece {
  position: absolute;
  transition: translate 0.7s;
  width: 12.5%;
  height: 12.5%;
  cursor: pointer;
  z-index: 10;
  pointer-events: all;
  touch-action: none;
}

.ghost-piece {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  z-index: 10;
  pointer-events: all;
  opacity: .5;
}

.piece.dragging {
  z-index: 1000;
}

.arrow-layer {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  opacity: 0.6;
}

.arrow {
  stroke: green;
  marker-end: url(#markerArrow);
  stroke-linecap: round;
}

.promotion-window {
  width: 12.5%;
  position: absolute;
  z-index: 100;
  display: flex;
  flex-direction: column;
  /* background-color: antiquewhite; */
  background-color: #FEECE2;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid black;
}
.promotion-window.top {
  flex-direction: column;
}
.promotion-window.bottom {
  flex-direction: column-reverse;
}

.promotion-piece {
  cursor: pointer;
}
.promotion-piece:hover {
  /* background-color: #ebd9b9; */
  background-color: #F7DED0;
}

.close-btn {
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
  height: 2.4em;
  cursor: pointer;
}
.close-btn:hover {
  background-color: #F7DED0;
}

.resize-corner {
  --corner-size: 2%;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 100;
  cursor: se-resize;
  
  width: 0;
  height: 0;
  border-bottom: 12px solid rgba(75, 0, 130, .4);
  border-left: 12px solid transparent;
}

.resize-corner:hover {
  border-bottom-color: rgb(75, 0, 130);
}

body.resize, body.resize * {
  cursor: se-resize !important;
}

.no-select {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */

  -webkit-user-drag: none;
}

.no-transition {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}