* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #262626;
  color: white;
  font-family: "Ubuntu", sans-serif;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;

  padding: 1rem 0;
  min-height: 100vh;
}

.empty {
  background-color: #202020;
}

.apple {
  background-color: rgb(255, 0, 0);
  border-radius: 50%;
}

.snake {
  background-color: rgb(67, 175, 67);
  border-radius: 5px;
}

#board {
  background-color: #202020;
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: repeat(21, 2rem);
  grid-template-rows: repeat(14, 2rem);

  border-radius: 5px;
  border: solid 1px white;
}

#numbers {
  display: flex;
  gap: 10rem;

  font-size: 1.2rem;
}

#numbers > span {
  color: #bdbdbd;
}

#best,
#score {
  color: white;
}

#game-over {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;

  background-color: #8f013c;
  padding: 1rem;
  border-radius: 5px;
  font-size: 1.5rem;

  visibility: hidden;
  z-index: 10;
}

#go-title {
  font-size: 3rem;
  font-weight: 700;
}

#controls {
  font-size: 0.8rem;
}

#buttons {
  display: flex;
  gap: 1rem;
}

#buttons > button {
  font-size: 1.2rem;
  padding: 0.5rem 2rem;
  font-weight: 700;
  border-radius: 5px;
  border: none;
  transition: all 0.15s ease-in-out;
}

#buttons > button:hover {
  background-color: rgb(67, 175, 67);
  color: white;
}

.active-button {
  background-color: rgb(67, 175, 67);
}

h1 {
  font-size: 3rem;
}
