#game-board {
  width: 400px;
  height: 400px;
  border: 2px solid black;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
  background-color: #0f172a;
  color: #fff;
  text-align: center;
}
body #game-board {
  background-color: rgb(236, 236, 167);
}
.snake {
  background-color: #9ded3be8;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  border: 2px solid black;
}
.food {
  background-color: chocolate;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  border: 2px solid black;
}
.start-screen,
.gameover-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
#start-btn,
#player-name,
#play-again-btn {
  color: #fff;
  background: transparent;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 25px;
  border: 2px solid slategrey;
}
#start-btn span,
#play-again-btn span {
  position: relative;
  z-index: 2;
}
#start-btn::before,
#play-again-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.25);
  transition: left 0.3s ease;
  z-index: 1;
}
#start-btn:hover::before,
#play-again-btn:hover::before {
  left: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
}
#gameplay {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.board-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
#score-display {
  font-size: 20px;
  width: auto;
  text-align: right;
  margin-top: 20px;
}
.wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 10px;
}
.background-img {
    /* background: linear-gradient(rgb(150, 240, 150), rgb(236, 236, 167)); */
    color: white;
    background-color: #0f172a;
}

