body {
  transition: background-color 0.3s, color 0.3s;
}
body.light {
  background: #f5f5f5;
  color: black;
}
body.dark {
  background: #0f172a;
  color: white;
}

body.dark .startGameModal {
  background: #087508;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

body.dark .scoreBox {
  background-color: rgb(3, 61, 3);
}

.cell {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  aspect-ratio: 1/1;
}

.board.paused {
  filter: blur(5px);
  transition: 0.3s;
  pointer-events: none;
}

.board {
  background-color: rgb(51, 158, 51);
  position: relative;
  padding: 20px;
}

.grid {
  display: grid;
  width: 100%;
  height: 100%;
}

.cell:nth-child(even) {
  background-color: #a2d149;
}

.cell:nth-child(odd) {
  background-color: rgb(30, 141, 30);
}

body.dark .cell:nth-child(even) {
  background-color: #579e3e;
}

body.dark .cell:nth-child(odd) {
  background-color: #294d0e;
}

body.dark .board,
body.dark .gameBox {
  background-color: #579e3e;
}

.page {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.block {
  width: 40%;
  padding-top: 50px;
  position: relative;
}

.scoreBox {
  height: 100px;
  padding-inline: 15px;
  background-color: rgb(4, 95, 4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.scores {
  display: flex;
  gap: 20px;
}

.foodScore {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: white;
}

.foodScoreRound img {
  width: 40px;
}

.recordScore {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: white;
}

.recordScoreCup {
  margin-left: 15px;
}

.recordScoreCup img {
  width: 40px;
  height: 40px;
}

.volumeBox {
  display: flex;
  gap: 20px;
}

.volumeBox button {
  cursor: pointer;
  background: transparent;
  border: none;
  color: white;
  position: relative;
}

#btnPause {
  font-size: 36px;
}

#btnVolume {
  font-size: 30px;
}

#btnVolume.muted::after {
  content: "";
  position: absolute;
  width: 45px;
  height: 3px;
  z-index: 999;
  background: white;
  top: 42%;
  left: 0;
  transform: rotate(-45deg);
}

.gameBox {
  width: 100%;
  height: auto;
  background-color: rgb(51, 158, 51);
  position: relative;
}

.food {
  background-image: url("./images/apple.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.snake {
  border-radius: 25%;
  position: relative;
  background: linear-gradient(to bottom, #5b7cff, #3f5be0);
}

.snakeHead {
  position: relative;
  background: radial-gradient(circle at 30% 30%, #7ea2ff 0%, #4e6df0 45%, #2d45ba 100%);
  border-radius: 35%;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.18), inset 2px 2px 3px rgba(255, 255, 255, 0.22);
}

.snakeHead::before {
  content: "";
  position: absolute;
  top: 24%;
  left: 18%;
  width: 64%;
  height: 30%;
  border-radius: 45%;
  background: radial-gradient(circle at 22% 50%, #ffffff 0 18%, transparent 19%), radial-gradient(circle at 78% 50%, #ffffff 0 18%, transparent 19%), radial-gradient(circle at 27% 54%, #a8b9eb 0 7%, transparent 8%), radial-gradient(circle at 73% 54%, #1c243d 0 7%, transparent 8%), radial-gradient(circle at 24% 46%, rgba(255, 255, 255, 0.95) 0 3%, transparent 4%), radial-gradient(circle at 76% 46%, rgba(255, 255, 255, 0.95) 0 3%, transparent 4%), linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18));
}

.snakeHead::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 20%;
  width: 42%;
  height: 16%;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  transform: rotate(-10deg);
}

.snakeHead.head-right::before {
  top: 24%;
  left: 24%;
}

.snakeHead.head-left::before {
  top: 24%;
  left: 12%;
}

.snakeHead.head-up::before {
  top: 14%;
  left: 18%;
}

.snakeHead.head-down::before {
  top: 34%;
  left: 18%;
}

.snakeHead.head-right::after {
  top: 14%;
  left: 34%;
}

.snakeHead.head-left::after {
  top: 14%;
  left: 14%;
}

.snakeHead.head-up::after {
  top: 8%;
  left: 20%;
  transform: rotate(0deg);
}

.snakeHead.head-down::after {
  top: 46%;
  left: 20%;
  transform: rotate(0deg);
}

.level-easy .snake {
  background: linear-gradient(to bottom, #5b7cff, #3f5be0);
}

.level-medium .snake {
  background: rgb(228, 228, 79);
}

.level-hard .snake {
  background: rgb(175, 48, 175);
}

body.dark .level-medium .snake {
  background: rgb(228, 228, 79);
}

body.dark .level-hard .snake {
  background: rgb(175, 48, 175);
}

.startGameModal {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: #80C480;
  position: absolute;
  left: 0;
  top: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: white;
  z-index: 999;
}

#btnStartGame {
  width: 18%;
  height: 35px;
  background-color: #239D22;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.5s;
}

#btnSettings {
  width: 18%;
  height: 35px;
  background-color: #239D22;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.5s;
}

.gameOverModal {
  display: none;
  width: 100%;
  height: 100%;
  background-color: #80C480;
  position: absolute;
  left: 0;
  top: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: white;
  z-index: 999;
}

.gameOverModal button {
  width: 18%;
  height: 35px;
  background-color: #239D22;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.5s;
}

.pauseModal {
  width: 40%;
  gap: 20px;
  background: #80C480;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: absolute;
  display: none;
  flex-direction: column;
  color: #33863F;
  z-index: 999;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  padding-block: 35px;
}

.pauseModal button {
  width: 120px;
  height: 53px;
  background-color: #239D22;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 15px;
  border: none;
}

.settingsModal {
  width: 58%;
  gap: 10px;
  background: #F3FAEA;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: absolute;
  display: none;
  flex-direction: column;
  color: #33863F;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  padding-bottom: 10px;
}

.settingsModalBtns {
  padding-inline: 15px;
  gap: 13px;
  height: 115px;
  display: flex;
  flex-direction: column;
}

.settingsModalHeader {
  display: flex;
  height: 60px;
  align-items: center;
  background-color: #E5F3D9;
  padding-inline: 15px;
  gap: 10px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.settingsModalHeader button {
  background-color: transparent;
  font-size: 24px;
  color: #33863F;
  border: none;
  cursor: pointer;
}

.settingsLevelBtn {
  width: 22%;
}

.settingsLevel {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#btnLevel {
  height: 50px;
  background-color: transparent;
  color: #235533;
  font-size: 14px;
  cursor: pointer;
  animation-duration: 300s;
  border: none;
}

.levelModal {
  width: 60%;
  background-color: #D9EDCD;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  z-index: 999;
  color: white;
  padding: 8px 10px;
}

.levelModal button {
  width: 30%;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #9ECD98;
  cursor: pointer;
  color: #9ECD98;
  font-size: 12px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.levelModal button.active {
  background-color: #33863F;
  color: white;
  border-color: #33863F;
}

.settingsThemeBtn {
  width: 22%;
}

.settingsTheme {
  width: 95%;
  display: flex;
}

#btnTheme {
  height: 50px;
  background-color: transparent;
  color: #235533;
  font-size: 14px;
  cursor: pointer;
  animation-duration: 300s;
  border: none;
}

.themeModal {
  width: 47%;
  height: 50px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: white;
  border-radius: 10px;
  z-index: 999;
}

.themeToggle {
  width: 60px;
  height: 30px;
  background: #2C7736;
  border-radius: 20px;
  border: none;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  color: rgb(207, 207, 7);
  font-size: 25px;
}

.themeToggle::before {
  content: "";
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

body.dark .themeToggle::before {
  transform: translateX(30px);
}

.icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.sun {
  left: 8px;
}

.moon {
  right: 8px;
}

.settingsSave {
  display: flex;
  justify-content: flex-end;
  padding-inline: 15px;
}

.settingsSave button {
  padding: 10px 30px;
  background-color: #239D22;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.settingsSave button:hover {
  box-shadow: 0 12px 22px rgba(35, 157, 34, 0.32);
}

#mobileArrowButtons {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding-block: 10px;
  padding-inline: 10px;
}

.mobileArrowUp {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobileArrowDown {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobileArrowSights {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20%;
}

#up,
#down,
#left,
#right {
  width: 45px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: none;
  color: white;
  background-color: rgb(17, 199, 17);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}/*# sourceMappingURL=main.css.map */