@import url("https://fonts.googleapis.com/css2?family=Mukta:wght@200&family=Square+Peg&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  background: url("../Resource/bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
}
.gameContainer {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  position: absolute;
  height: 90vh;
  width: 90vw;
}
#welcomeBoard {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  top: 3rem;
  left: 5rem;
  /* display: none; */
}
.gameHeading {
  font-size: 6rem;
  font-family: "Square Peg", cursive;
  color: yellow;
  font-weight: bold;
  text-shadow: 0.2rem 0.2rem orangered;
  margin-bottom: 5rem;
  margin-top: 2rem;
}
.gameTitle {
  font-size: 3.5rem;
  font-family: "Mukta", sans-serif;
  color: orangered;
  text-shadow: 0.2rem 0.2rem yellow;
  margin: 1rem;
}
.chooseDifficultyContainer {
  display: flex;
  margin: 2rem;
  margin-top: 0;
  margin-bottom: 4rem;
}
.chooseBtn {
  height: 5rem;
  width: 10rem;
  padding: 0.5rem;
  color: yellowgreen;
  text-shadow: 0.2rem 0.2rem 1rem black;
  border: 0.3rem solid white;
  background-color: sienna;
  font-family: "Mukta", sans-serif;
  margin: 1rem;
  font-size: 2rem;
  border-radius: 1rem;
  font-weight: bold;
  box-shadow: 0 0 0.5rem 0.3rem grey;
  cursor: pointer;
  /* background-color: saddlebrown; */
}
.chooseBtn:hover {
  color: sienna;
  background-color: yellowgreen;
  text-shadow: 0.2rem 0.2rem 1rem white;
}
.gameButtonsContainer {
  display: flex;
}
.gameBtn {
  height: 7rem;
  width: 15rem;
  padding: 0.5rem;
  color: chartreuse;
  text-shadow: 0.2rem 0.2rem 1rem black;
  border: 0.3rem solid white;
  background-color: indianred;
  font-family: "Mukta", sans-serif;
  margin: 1rem;
  font-size: 2.5rem;
  border-radius: 1.5rem;
  font-weight: bold;
  box-shadow: 0 0 0.5rem 0.3rem grey;
  cursor: pointer;
}
.gameBtn:hover {
  color: indianred;
  background-color: chartreuse;
  text-shadow: 0.2rem 0.2rem 1rem white;
}
.gamestartshowingTime {
  font-size: 7rem;
  color: white;
  text-shadow: 0.2rem 0.2rem 1rem black;
}
#gameBoard {
  background: none;
  width: 90vmin;
  height: 90vmin;
  border: 0.3rem solid black;
  display: grid;
  grid-template-rows: repeat(18, 1fr);
  grid-template-columns: repeat(18, 1fr);
  position: relative;
  top: 3rem;
  left: 9rem;
  border-radius: 1rem;
  box-shadow: 0 0 1rem 0.6rem rgba(0, 0, 0, 0.4);
  transition: all 0.1s ease-in-out;
  display: none;
}
#scoreBoard {
  color: black;
  text-shadow: 0.2rem 0.2rem 1rem white;
  box-shadow: 0 0 1rem 0.6rem rgba(0, 0, 0, 0.3);
  font-family: "Square Peg", cursive;
  font-weight: bold;
  font-size: 6rem;
  position: absolute;
  right: 2rem;
  top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  width: 28rem;
  text-align: center;
  transition: all 0.1s ease-in-out;
  display: none;
}
#highscoreBoard {
  color: black;
  text-shadow: 0.2rem 0.2rem 1rem white;
  box-shadow: 0 0 1rem 0.6rem rgba(0, 0, 0, 0.3);
  font-family: "Square Peg", cursive;
  font-weight: bold;
  font-size: 6rem;
  position: absolute;
  right: 2rem;
  top: 13rem;
  padding: 1rem;
  border-radius: 1rem;
  width: 28rem;
  text-align: center;
  transition: all 0.1s ease-in-out;
  display: none;
}
.snake-head {
  background: url(../Resource/snake-head.png);
  background-size: 100% 100%;
  transition: all 0.1s ease-in-out;
}
.snake-body {
  background: url(../Resource/snake-body.png);
  background-size: 100% 100%;
  transition: all 0.1s ease-in-out;
  border-radius: 0.7rem;
  border: 0.01rem solid black;
}
.snake-tail {
  background: url(../Resource/snake-tail.png);
  background-size: 100% 100%;
  transition: all 0.1s ease-in-out;
}
.food-apple {
  background: url(../Resource/food-apple.png);
  background-size: 100% 100%;
  transition: all 0.1s ease-in-out;
}
.food-mango {
  background: url(../Resource/food-mango.png);
  background-size: 100% 100%;
  transition: all 0.1s ease-in-out;
}
.food-orange {
  background: url(../Resource/food-orange.png);
  background-size: 100% 100%;
  transition: all 0.1s ease-in-out;
}
.food-grapes {
  background: url(../Resource/food-grapes.png);
  background-size: 100% 100%;
  transition: all 0.1s ease-in-out;
}
.left {
  transform: rotate(90deg);
}
.up {
  transform: rotate(180deg);
}
.right {
  transform: rotate(270deg);
}
.down {
  transform: rotate(360deg);
}
.brown {
  background-color: saddlebrown;
}
.pink {
  background-color: hotpink;
}
