@import url("https://fonts.googleapis.com/css2?family=Besley:ital@1&display=swap");
* {
  padding: 0;
  margin: 0;
}

.body {
  background: url("../snake.jpg");
  min-height: 100vh;
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

#board {
  background: linear-gradient(rgb(170, 236, 170), rgb(236, 236, 167));
  width: 90vmin;
  height: 92vmin;
  border: 2px solid black;
  display: grid;
  grid-template-rows: repeat(18, 1fr); /*to make grid of 18 row and col */
  grid-template-columns: repeat(18, 1fr); /*to make grid of 18 row and col */
}

#scoreBox {
  position: absolute;
  top: 9px;
  right: 200px;
  font-size: 39px;
  font-weight: bold;
  font-family: "Besley", serif;
}

#highScoreBox {
  position: absolute;
  top: 150px;
  right: 200px;
  font-size: 25px;
  font-weight: bold;
  font-family: sans-serif;
}

.head {
  background-color: orange;
  border: 2px solid purple;
  transform: scale(1.02);
  border-radius: 3px;
}

.snake {
  background-color: purple;
  border: 0.25vmin solid white;
  border-radius: 12px;
}

.food {
  background-color: red;
  border: 0.25vmin solid black;
  border-radius: 8px;
}
