/* -------- GENERAL -------- */
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+15&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pixelify Sans", sans-serif;
  background-image: url(../images/background.webp);
  background-size: cover;
  background-position: center;
  margin-left: 10%;
  margin-right: 10%;
  height: 100%;
}

.game-img {
  width: 270px;
  border: 5px solid rgb(15, 15, 15);
  border-radius: 20px;
  box-shadow: 0 0 30px white;
}

/* -------- ANIMATIONS --------*/
@keyframes glow {
  from {
    text-shadow: 0 0 3px rgb(14, 134, 38), 0 0 8px rgb(14, 134, 38), 0 0 11px rgb(14, 134, 38), 0 0 13px rgb(14, 134, 38), 0 0 16px rgb(14, 134, 38);
  }
  to {
    text-shadow: 0 0 5px rgb(5, 73, 19), 0 0 10px rgb(5, 73, 19), 0 0 12px rgb(5, 73, 19), 0 0 14px rgb(5, 73, 19), 0 0 18px rgb(5, 73, 19);
  }
}

@keyframes gameglow {
  from {
    box-shadow: 0 0 80px rgb(113, 0, 139);
  }
  to {
    box-shadow: 0 0 100px rgb(255, 3, 247);
  }
}

@keyframes screenglow {
  from {
    box-shadow: 0 0 10px rgb(0, 0, 0);
  }
  to {
    box-shadow: 0 0 22px rgb(255, 255, 255);
  }
}

/* -------- NAVBAR -------- */
#website-title {
  color: rgb(22, 216, 61);
  font-family: "Pixelify Sans", sans-serif;
  text-decoration: solid;
  margin-top: -5px;
  font-size: 45px;
  float: left;
  overflow: hidden;
  animation: glow 1s ease-in-out infinite alternate;
}

.desktop-nav {
  background-color: #000000a5;
  padding: 10px;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}

.desktop-nav a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 5px 0;
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: rgb(22, 216, 61);
}

a,
a:visited,
a:active,
a:link {
  text-decoration: none;
  font-size: 25px;
  color: white;
}

ul {
  text-align: right;
  font-family: "Pixelify Sans", sans-serif;
}

ul li {
  display: inline-block;
  padding-left: 20px;
  padding-right: 40px;
}

.subnav {
  position: relative;
}

.subnav-button {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 25px;
  background-color: #00000000;
  border: none;
  color: white;
  padding-right: 60px;
  cursor: pointer;
}

.subnav-content {
  display: none;
  position: fixed;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 5px;
  background-color: rgb(58, 57, 57);
  z-index: 5;
}

.subnav-content > li a {
  color: white;
  font-size: 20px;
  width: 160px;
  text-decoration: none;
}

.subnav:hover .subnav-content {
  display: flex;
  flex-direction: column;
}

.subnav-content:hover {
  display: flex;
}

/* -------- GAME SANDBOX -------- */
.gameContainer {
  padding-top: 130px;
}

.game-heading {
  font-size: 40px;
  margin-bottom: 5px;
  color: rgb(22, 216, 61);
  text-align: center;
}

.game-sandbox {
  width: 50%;
  height: 600px;
  margin: auto;
  border-radius: 10px;
  border: 2px solid black;
  align-items: center;
  overflow: hidden;
  animation: gameglow 1s ease-in-out infinite alternate;
  background-color: rgb(50, 50, 50);
}

/* -------- FOOTER -------- */
footer {
  overflow: hidden;
  position: fixed;
  text-align: center;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #000000ae;
  padding: 25px;
  z-index: 1000;
}

#copyright {
  color: white;
  font-size: 20px;
}


/* -------- RESPONSIVE PORTION -------- */
@media only screen and (max-width: 1024px) {
  body {
    margin: 0;
  }
  .game-img {
    width: 70%;
    height: auto;
  }
  #website-title {
    margin-top: 0px;
    font-size: 40px;
  }
  .desktop-nav {
    padding: 5px;
  }
  .desktop-nav a {
    padding: 5px 0;
  }
  a,
  a:visited,
  a:active,
  a:link {
    font-size: 40px;
  }
  ul li {
    padding-left: 10px;
    padding-right: 20px;
  }
  .subnav-button {
    font-size: 40px;
    padding-right: 5px;
  }
  .subnav-content {
    padding: 20px;
  }
  .subnav-content > li a {
    font-size: 30px;
    width: 150px;
  }
  .gameContainer {
    padding-top: 130px;
    padding-bottom: 120px;
  }
  .game-heading {
    font-size: 40px;
    margin-bottom: 5px;
    color: rgb(22, 216, 61);
    text-align: center;
  }
  .game-sandbox {
    width: 100%;
    height: 600px;
    margin: auto;
    border-radius: 10px;
    border: 2px solid black;
    align-items: center;
    overflow: hidden;
    animation: gameglow 1s ease-in-out infinite alternate;
    background-color: rgb(50, 50, 50);
  } 
  footer {
    overflow: hidden;
    text-align: center;
    bottom: -200px;
    left: 0;
    width: 100%;
    height: auto;
    background: #000000ae;
    padding: 10px;
  }
  
  #copyright {
    color: white;
    font-size: 30px;
  }
  
}


@media only screen and (max-width: 768px) {
  body {
    margin-left: 3%;
    margin-right: 3%;
  }
  .game-img {
    width: 80%;
    height: auto;
  }
  #website-title {
    margin-top: -5px;
    font-size: 30px;
  }
  .desktop-nav {
    padding: 5px;
  }
  .desktop-nav a {
    padding: 5px 0;
  }
  a,
  a:visited,
  a:active,
  a:link {
    font-size: 25px;
  }
  ul li {
    padding-left: 10px;
    padding-right: 20px;
  }
  .subnav-button {
    font-size: 25px;
    padding-right: 5px;
  }
  .subnav-content {
    padding: 5px;
  }
  .subnav-content > li a {
    font-size: 15px;
    width: 100%;
  }
  .gameContainer {
    padding-top: 130px;
  }
  .game-heading {
    font-size: 40px;
    margin-bottom: 5px;
    color: rgb(22, 216, 61);
    text-align: center;
  }
  .game-sandbox {
    width: 100%;
    height: 550px;
    margin: auto;
    border-radius: 10px;
    border: 2px solid black;
    align-items: center;
    overflow: hidden;
    animation: gameglow 1s ease-in-out infinite alternate;
    background-color: rgb(50, 50, 50);
  } 
  footer {
    overflow: hidden;
    text-align: center;
    bottom: -200px;
  }
}

@media only screen and (max-width: 425px) {
  #website-title {
    margin-top: -5px;
    font-size: 35px;
  }
  .game-sandbox {
    width: 100%;
    height: 650px;
    margin: auto;
    border-radius: 10px;
    border: 2px solid black;
    align-items: center;
    overflow: hidden;
    animation: gameglow 1s ease-in-out infinite alternate;
    background-color: rgb(50, 50, 50);
  } 
}