html {
  background-color: rgb(246, 253, 229);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#game-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 8px;
  width: 100%;
}

#game-header > div {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#header-apple-number {
  font-family: "Press Start 2P", cursive;
  font-size: 15px;
  color: rgb(51, 51, 51);
}

#apple-header {
  background-color: rgb(138, 34, 34);
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border-radius: 3px;
}

#restart-header {
  font-family: "Press Start 2P", cursive;
  font-size: 15px;
  opacity: 0.8;
  color: rgb(3, 29, 7);
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: 0.3s;
}

#restart-header:hover {
  font-size: 15px;
  opacity: 1;
}

#game-container {
  display: flex;
  flex-direction: column;
  width: 260px;
}

#game {
  display: flex;
  flex-direction: column;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(161, 155, 154);
}

.game-row {
  display: flex;
  flex-direction: row;
}

.cel {
  width: 26px;
  height: 26px;
  background-color: transparent;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(161, 155, 154);
  box-sizing: border-box;
  padding: 1px;
}

.snake {
  background-color: rgb(47, 121, 32);
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.snake-head {
  background-color: rgb(45, 32, 121);
}

.apple {
  background-color: rgb(138, 34, 34);
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

@keyframes animation-game-over {
  0% {
    font-size: 40px;
  }
  50% {
    font-size: 50px;
  }
  100% {
    font-size: 40px;
  }
}

.end-game-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  font-family: "Press Start 2P", cursive;
  font-size: 40px;
  animation: animation-game-over 2s infinite ease-in-out;
}

.game-over {
  color: rgb(192, 19, 19);
}

.win {
  color: rgb(20, 39, 211);
}

#restart {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: 80px;
  transform: translate(-50%, -50%);
  display: none;
  font-family: "Press Start 2P", cursive;
  font-size: 25px;
  color: rgb(13, 138, 33);
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: 0.3s;
}

#restart:hover {
  font-size: 30px;
}
