@font-face {
  font-family: Terasong;
  src: url(assets/Terasong-mLZ3a.ttf);
}

@font-face {
  font-family: "allison script";
  src: url(assets/allison-script.regular.otf);
}

@font-face {
  font-family: "silk serif";
  src: url(assets/silkserif-regularitalic-webfont.ttf);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  background-image: url(assets/bg.jpg);
  background-size: cover;
}

#loader {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #000000a3, #000000);
  backdrop-filter: blur(20px);
  position: absolute;
  z-index: 9999;
}
#loader #l-content {
  width: 50%;
  padding: 2vw 0 4vw;
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 2vw solid #abf556;
  border-image: url(assets/rock.png) 20% round;
  position: relative;
  top: 15%;
  left: 25%;
}

#l-content #l-text {
  overflow: hidden;
}

#l-content #l-text h1 {
  font-size: 7vw;
  color: #abf556;
  font-weight: 300;
  font-family: terasong;
  position: relative;
}

#loading #bar {
  width: 35vw;
  height: 2.5vw;
  background-image: url(assets/grass_texture.jpg);
  background-size: cover;
  background-position: center;
  border: 2px solid #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

#progress {
  display: flex;
  align-items: center;
  position: relative;
  left: -100%;
}

#loading #bar img {
  width: 2.5vw;
  rotate: 90deg;
}

#bar .food {
  width: 2.5vw;
  height: 100%;
  padding-bottom: 2.7vw;
  display: flex;
  align-items: center;
  background-image: url(assets/FoodApple.png);
  background-size: cover;
}

#loader #l-count {
  font-size: 7vw;
  color: #abf556;
  font-weight: 300;
  font-family: terasong;
  position: absolute;
  left: 80%;
  top: 75%;
}

#main {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  backdrop-filter: blur(2px);
}

nav {
  width: 100%;
  padding: 2.5vw 5vw 1vw;
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 9;
}

.logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.logo img {
  width: 3.5vw;
}

.options a {
  color: #abf556;
  font-size: 1.5vw;
  font-family: "terasong";
  font-weight: 100;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

#hero {
  width: 100%;
}

#hero h1 {
  font-size: 4vw;
  color: #abf556;
  font-weight: 500;
  font-family: "terasong";
  position: absolute;
  left: 32%;
  top: 10%;
}

#score-card {
  position: absolute;
  left: 4%;
  top: 25%;
}

#score-card h2 {
  font-size: 1.8vw;
  color: #abf556;
  font-weight: 100;
  font-family: "terasong";
}

#hero #player-board {
  width: 60%;
  margin-left: 30%;
  margin-top: 6%;
  border: 3vw solid #abf556;
  border-image: url(assets/rock.png) 20% round;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#board {
  width: 100%;
  height: 60vh;
  background-image: url(assets/grass_texture.jpg);
  background-size: cover;
  background-position: center;
  border: 2px solid #000000a3;
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  grid-template-rows: repeat(18, 1fr);
}

.snake-head {
  background-image: url(assets/SnakeHead.png);
  background-size: cover;
  width: 2vw;
}

.snake-body {
  background-image: url(assets/SnakeBody.png);
  background-size: cover;
  width: 2vw;
}
.snake-food {
  background-image: url(assets/FoodApple.png);
  background-size: cover;
  width: 2vw;
}

#game-over {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #000000a3, #000000);
  backdrop-filter: blur(20px);
  position: absolute;
  z-index: 9999;
  display: none;
}

#game-over-card {
  width: 30%;
  height: 60%;
  background-image: linear-gradient(#00000050, #0000001a),
    url(assets/grass_texture.jpg);
  background-size: cover;
  padding: 2vw 0 4vw;
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 2vw solid #abf556;
  border-image: url(assets/rock.png) 15% round;
  position: relative;
  top: 15%;
  left: 35%;
}

#game-over-card h1 {
  font-size: 3vw;
  text-decoration: underline;
  text-underline-offset: 8px;
  color: #fd3300;
  font-weight: 200;
  font-family: "terasong";
}

#game-over-card h2 {
  font-size: 1.8vw;
  color: #000000cb;
  font-weight: 100;
  font-family: "terasong";
}

#game-over-card #restart-btn {
  background-image: linear-gradient(#00000080, #0000001a), url(assets/rock.png);
  background-size: cover;
  color: #abf556;
  padding: 1vw 2vw;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  top: 30%;
}

/* profile page */

#main-profile {
  width: 100%;
  height: 100%;
  background-color: #000;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5vw 5vw;
}

header .logo {
  font-size: 2.5vw;
  font-family: terasong;
  font-weight: 100;
  text-decoration: none;
  color: #abf556;
}

header .logo:hover {
  color: #3772ff;
}

header nav {
  list-style: none;
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

header nav li {
  display: inline-block;
  color: #abf556;
  font-size: 1.5vw;
  font-family: terasong;
  padding: 0 1vw;
}

header nav li a {
  color: #abf556;
  font-family: terasong;
  font-weight: 500;
  text-decoration: none;
}

header nav li a:hover {
  color: #3772ff;
  text-decoration: underline;
  transition: all 0.3s ease;
}

#text {
  position: relative;
  width: 60%;
  margin-left: 23%;
  margin-top: -2%;
}
#text h1 {
  color: #e6e8e6;
  font-size: 13vw;
  font-family: "silk serif";
  font-weight: 500;
  line-height: 10.5vw;
  font-style: italic;
}

#text .stoke {
  -webkit-text-stroke: 0.1vw #e6e8e6;
  color: transparent;
  font-weight: 500;
  opacity: 0.8;
}
.img {
  position: absolute;
  width: 20%;
  height: 27vw;
  top: 28%;
  left: 40%;
  rotate: 15deg;
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sign {
  position: absolute;
  width: 24%;
  top: 60%;
  left: 38%;
  rotate: -15deg;
}

.sign h1 {
  color: #e6e8e6;
  font-family: "Allison script";
  font-weight: 400;
  font-size: 5.5vw;
}


