#editor {
  display:flex;
  flex-direction: column;
  margin: 8px;
}

#header {
  padding: 8px;
}

h2, label {
  font-family: monospace;
}

#header {
  display: flex;
  justify-content: space-between;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #1a1a1a;
  color: #dfdfdf;
}

#history {
  width: 200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: fit-content;
  padding-left: 32px;
  max-height: 800px;
  overflow-y: scroll;
}

#history pre {
  width: 50%;
}

pre {
  color: #f2f2f2;
  font-size: 1rem;
}

#board-container {
  display: flex;
  flex-direction: row;
  padding: 16px;
  margin: 16px;
  width: fit-content;
  border: solid 4px #f2f2f2;
}

#eval-bar {
  width: 40px;
  background-color: #343434;
  position: relative;
  margin: 0 20px;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  overflow: hidden;
}

#white-bar {
  width: 100%;
  background-color: #f2f2f2;
  position: absolute;
  transition: height 0.2s;
  border-radius: 8px;
  bottom: 0;
  height: 50%;
}

#board div {
  height: 100px;
  width: 800px;
  display: flex;
  position: relative;
}

#board div button {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  width: 100px;
  height: 100px;
  background-color: #edd6b0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#board div button img, #board div button div img {
  width: 100px;
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

#board div button span.hint {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-color: black;
  opacity: 20%;
}

#board div button div.capture img {
  opacity: 100%;
}

#board div button div.capture {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: transparent;
  border: 8px solid rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

#board div:nth-child(odd) button:nth-child(even), #board div:nth-child(even) button:nth-child(odd) {
  background-color: #b88762;
}

#board div button.highlight {
  background-color: #f6ea71;
}

#board div:nth-child(odd) button:nth-child(even).highlight, #board div:nth-child(even) button:nth-child(odd).highlight {
  background-color: #dbc34a;
}

div#promote {
  position: absolute;
  width: 100px;
  height: 400px;
  background-color: white;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 8px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

div#promote img {
  width: 90px;
  height: 90px;
}

div#promote img:hover {
  cursor: pointer;
}

button#submit {
  padding: 16px;
  align-self: flex-start;
}

p, h3 {
  font-family: monospace;
}

#tree {
  width: 100px;
}

#tree div {
  display: flex;
  justify-content: space-between;
}

#tree div {
  font-size: 1rem;
}

#tree div button {
  color: #a56cc4;
  background-color: transparent;
  border: none;
  font-size: 1rem;
}

#tree div button:hover {
  cursor: pointer;
}
