body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: black;
}

.container {
  box-sizing: border-box;
  width: 1000px;
  height: 600px;
  background: rgb(100, 20, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 2rem;
}

.container .section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.row {
  display: flex;
  gap: 0.75rem;
}

.section#instruction {
  position: relative;
  color: silver;
  background: rgb(51, 10, 0);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 2rem;
  border-radius: 1rem;
}

input,
select {
  padding: 0.5rem 1rem;
  font-size: 20px;
  border-radius: 0.5rem;
  background: rgb(88, 18, 0);
  border: 4px solid rgb(165, 77, 42);
  color: silver;
}

button {
  text-wrap: nowrap;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
  font-size: 20px;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

button img {
  width: 20px;
}

.close {
  width: 28px;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.hide {
  display: none !important;
}

h2,
p {
  margin: 0;
}

p {
  font-size: 18px;
  margin-bottom: 0.5rem;
}

canvas {
  width: 800px;
  height: 600px;
  background: url('design/source/General/Background.jpg');
  background-size: cover;
}

.gameboard {
  position: relative;
  display: flex;
  overflow: hidden;
  height: 600px;
}

.leaderboard {
  box-sizing: border-box;
  width: 200px;
  color: white;
  background: rgb(100, 20, 0);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

#leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  overflow-x: hidden;
  scrollbar-width: 0;
}

.leaderboard h2 {
  font-weight: 800;
  font-size: 20px;
}

.leaderboard .item {
  padding: 0.25rem 0;
  border-bottom: 1px solid slategray;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}

.leaderboard .item>div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.leaderboard .item .score {
  font-size: 14px;
  font-weight: 200;
}

.leaderboard .item button {
  font-size: 14px;
  padding: 0.1rem 0.2rem;
  width: 80px;
  background: yellow;
}

.leaderboard select {
  font-size: 16px;
}

.dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 1.5rem;
  width: 400px;
  height: 300px;
  background: rgb(100, 20, 0);
  color: white;
  font-size: 2rem;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.75);
  border: 0.5rem solid rgb(51, 10, 0);
}

.dialog div {
  width: 100%;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading>* {
  width: 4rem;
  height: 4rem;
  border: 1rem solid tomato;
  border-top: 1rem solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.c {
  text-align: center;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}