body {
  font-family: "Comfortaa", Arial;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f0f0f0;
}

h1 {
  margin-bottom: 20px;
}

.game-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

#high-score-board {
  font-size: 1.2rem;
  font-weight: bold;
  border: 1px solid #000;
  border-radius: 5px;
  padding: 10px;
  background-color: #f8f9fa;
}

hr {
  width: 80%;
  border: 1px solid #000;
  margin-bottom: 20px;
}

p {
  margin-bottom: 20px;
}

#menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

#game-board {
  width: 490px;
  height: 490px;
  border: 1px solid #000;
  background-color: #fff;
  position: relative;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  margin-bottom: 20px;
  cursor: pointer;
}

.snake {
  background-color: #0f0;
  position: absolute;
  width: 10px;
  height: 10px;
  transition: all 0.1s linear;
}

.food {
  background-color: #f00;
  position: absolute;
  width: 10px;
  height: 10px;
  transition: all 0.1s linear;
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 10px;
}

button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  background-color: #ccc;
  color: #333;
}

button.selected {
  background-color: #007bff;
  color: #fff;
}

@media (max-width: 768px) {
  #game-board {
    width: 300px;
    height: 300px;
  }

  #high-score-board, button {
    font-size: 1rem;
  }

  #menu h2 {
    font-size: 1.5rem;
  }

  hr {
    width: 100%;
  }
}
