* {
  user-select: none;
}

body {
  overflow: hidden;
  background-color: gray;
  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;
}

.app {
  position: relative;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.board {
  position: absolute;
  top: calc(50vh - 50vmin - 0.5vmin);
  left: calc(50vw - 50vmin - 0.5vmin);
  height: 100vmin;
  width: 100vmin;
  display: flex;
  flex-direction: column;
  border: 0.5vmin solid black;
  box-shadow: 0 0 10vmin black;
}

.light-tile, .dark-tile {
  flex-grow: 1;
}

.light-tile {
  background-color: beige;
  box-shadow: inset 0 0 6vmin gray;
}

.dark-tile {
  background-color: rgb(80, 80, 80);
  box-shadow: inset 0 0 6vmin black;
}

.dark-tile.active {
  background-color: lawngreen;
}

.row {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}

.checker-dark, .checker-light {
  position: absolute;
  width: 10vmin;
  height: 10vmin;
  border-radius: 50%;
}

.checker-light {
  background-color: rgb(210,180,140);
  box-shadow: inset 0 0 3vmin rgb(101, 67, 33), 0 0 1vmin black;
}

.checker-light.highlighted {
  box-sizing: border-box;
  border: 0.4vmin solid lawngreen;
  box-shadow: inset 0 0 3vmin rgb(101, 67, 33), 0 0 1vmin lawngreen;
}

.checker-dark {
  background-color: rgb(101, 67, 33);
  box-shadow: inset 0 0 3vmin rgb(210,180,140), 0 0 1vmin black;
}

.checker-dark.highlighted {
  box-sizing: border-box;
  border: 0.4vmin solid lawngreen;
  box-shadow: inset 0 0 3vmin rgb(210,180,140), 0 0 1vmin lawngreen;
}

.royal {
  box-shadow: inset 0 0 3vmin red, 0 0 1vmin gray;
}

.royal.highlighted {
  box-shadow: inset 0 0 3vmin red, 0 0 1vmin lawngreen;
}

.subtitles {
  text-align: center;
  position: absolute;
  bottom: 0;
  width: calc(80vmin + 20vw);
  left: 50vw;
}

.subtitles > div {
  position: relative;
  left: -50%;
}

.subtitles div div {
  display: inline-block;
  margin-left: 1vmin;
  margin-right: 1vmin;
}

.subtitles div * {
  position: relative;
  left: 0;
}

.subtitles p, .subtitles span {
  display: inline;
  box-decoration-break: clone;
  font-family: Arial, sans-serif;
  font-size: 4vmin;
  line-height: 1.5;
  background-color: rgba(30, 30, 30, 1);
  padding-top: 0vmin;
  padding-bottom: 0vmin;
  padding-left: 2vmin;
  padding-right: 2vmin;
  box-shadow: 0 0 1vmin black;
}

.subtitles p {
  color: yellow;
}

.subtitles span {
  color: cyan;
  cursor: pointer;
}

.subtitles.marginal {
  padding-bottom: calc(10vh - 10vmin);
}

.help {
  height: 100vh;
  overflow-y: scroll;
  margin: 0px auto;
  width: calc(100vmin + 2px);
  background-color: rgba(30, 30, 30, 0.7);
}

.help .bottomed {
  position: absolute;
  bottom: 0;
  max-height: 100vh;
}
