body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #282c34;
  color: white;
  text-align: center;
  padding: 1em;
}

.hidden {
    display: none;
}

#home-screen button {
  font-size: 1.2rem;
  padding: 0.5em 1em;
  cursor: pointer;
}

#game-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#chessboard {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  /* width: 80vmin; */
  /* height: 80vmin; */
  width: 560px;
  height: 560px;
  /* border: 2px solid #555; */
}

.square {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.square.light {
  background-color: #ffffff;
}

.square.dark {
  background-color: #aaaaaa;
}

.piece {
  /* width: 85%; */
  /* height: 85%; */
  height: 50px;
  width: 50px;
  -webkit-user-drag: none;
  user-select: none;
}

.move-node {
  position: absolute;
  width: 70px;
  height: 70px;
  /* display: flex; */
  display: block;
  background-image: url(./pieces/node_move.svg);
  /* opacity: 0.5; */
  filter: invert() brightness(0.5);
  background-repeat: no-repeat;
  background-position: center;
  /* align-items: center; */
  /* justify-content: center; */
  z-index: 10;
  /* touch-action: none; */
}

/* .move-node::after {
  content: '';
  display: block;
  border-radius: 50%;
}

.move-node.move::after {
  width: 30%;
  height: 30%;
  background-color: rgba(80, 80, 80, 0.5);
} */

.move-node.take {
  background-image: url(./pieces/node_take.svg);
}

.move-node.take-move {
  background-image: url(./pieces/node_take-move.svg);
}

.move-node.catch {
  background-image: url(./pieces/node_catch.svg);
}

.move-node.void {
  background-image: url(./pieces/node_void.svg);
}

.move-node.shift {
  background-image: url(./pieces/node_shift.svg);
}

.move-node.pause {
  background-image: url(./pieces/node_pause.svg);
}

.move-node.block {
  background-image: url(./pieces/node_block.svg);
}

.move-node.take-jump {
    background-image: url(./pieces/node_jump.svg);
}

#labapp {
  display: grid;
  grid-template-columns: 700px auto;
}

#labapp textarea {
  font-family: 'Consolas';
  outline: solid 1px #b1b1b1;
  background-color: #282c34;
  border-radius: 8px;
  font-size: 20px;
  color: white;
  padding: 10px;
}

#switchturn, #reset, #quit {
  padding: 8px;
  margin: 8px;
}

#skins {
  grid-template-columns: repeat(auto-fill, 80px);
  justify-content: space-between;
  outline: solid 1px #b1b1b1;
  background-color: #282c34;
  grid-auto-flow: row;
  overflow-y: scroll;
  border-radius: 8px;
  max-height: 300px;
  max-width: 800px;
  row-gap: 10px;
  display: grid;
  padding: 10px;
}

a {
  text-decoration: none;
  color: #9dbdff;
}

a:hover {
  text-decoration: underline;
  color: #6196ff;
}

#skins div:not(.text) {
  text-align-last: center;
}

#skins div:not(.text) img {
  margin-bottom: 8px;
  height: 60px;
}