html {
  height: 100%;
  width: 100%;
}

body {
  height: 100%;
  width: 100%;
  background-color: #312E2B;
  margin: 0;
  display: flex;
  align-items: center;
}

.game_data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
  margin: 20px;
  position: relative;
  z-index: 1;
}

.game {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.player2_data, .player1_data {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 2px solid #666666;
  background-color: #666666;
  padding: 0.1 rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.myCanvas {
  padding: 0.5rem;
}

canvas {
  width: 800px;
  height: 800px;
}

.moveset_chart {
  position: relative;
  margin-left: 40px;
  border: 2px solid #363636;
  background-color: #363636;
  padding: 20px;
  top: 85px;
  left: -2px;
  width: 480px;
  height: 757px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.moveset_chart h2 {
  position: relative;
  z-index: 1;
  top: -30px;
  color: #d6ad7e;
}

.moveset_chart hr {
  position: relative;
  top: -30px;
  border: none;
  height: 2px;
  width: 400px;
  background-color: #d6ad7e;
  word-spacing: 50px;
}

.moveset_data {
  height: 600px;
  width: 80%;
  overflow-y: auto;
  max-height: 800px;
  border: 1px solid #363636;
  background-color: #363636;
  padding: 10px;
  display: flex;
  flex-direction: row;
}

.movesets_turns {
  color: #d6ad7e;
  margin-right: 20%;
  margin-left: 5px;
  justify-items: center;
}

.pawn_promotion {
  position: relative;
  z-index: 3;
  top: -200px;
  left: -1727px;
  color: #d6ad7e;
  background-color: #080808;
  padding: 10px;
  border: 2px solid #d6ad7e;
  border-radius: 5px;
  font-size: 20px;
  text-align: center;
  opacity: 0;
  animation: popOut 0.5s ease-out forwards;
}

@keyframes popOut {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.promotion_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: auto;
}

#player_1_time, #player_2_time {
  margin-top: 13px;
  margin-right: 20px;
}

#player_1_name, #player_2_name {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 20px;
}

.start_screen {
  position: relative;
  margin-left: 40px;
  border: 2px solid #363636;
  background-color: #363636;
  padding: 20px;
  top: 85px;
  left: -575px;
  width: 480px;
  height: 757px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.start_screen h3 {
  position: relative;
  z-index: 1;
  font-size: 23px;
  top: -180px;
  color: #d6ad7e;
}

.start_screen h4 {
  position: relative;
  font-size: 16px;
  top: -180px;
  color: #d6ad7e;
}

.set_time {
  position: relative;
  top: -200px;
  padding: 12px;
  font-size: 23px;
  border: 2px solid #363636;
  border-radius: 4px;
  background-color: #363636;
  color: #d6ad7e;
  outline: none;
}

.set_time option {
  background-color: #363636;
  color: #d6ad7e;
}

.start_button, .instruction_button {
  position: relative;
  z-index: 3;
  top: -100px;
  margin-bottom: 10px;
  color: #d6ad7e;
  background-color: #080808;
  padding: 10px;
  border: 2px solid #d6ad7e;
  border-radius: 5px;
  font-size: 20px;
  text-align: center;
}

#instruction {
  color: #d6ad7e;
  font-size: 16px;
}

.game_over {
  position: relative;
  z-index: 3;
  top: -200px;
  left: -1727px;
  color: #d6ad7e;
  background-color: #080808;
  padding: 10px;
  border: 2px solid #d6ad7e;
  border-radius: 5px;
  font-size: 20px;
  text-align: center;
  opacity: 0;
  animation: pop_out 0.8s ease-out forwards;
}

@keyframes pop_out {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.game_state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: auto;
}

.rematch, .end_game {
  z-index: 3;
  margin-right: 10px;
  color: #d6ad7e;
  background-color: #080808;
  padding: 10px;
  border: 2px solid #d6ad7e;
  border-radius: 5px;
  font-size: 20px;
  text-align: center;
}
