@font-face {
  font-family: "Pixelify Sans";
  src: url("./fonts/PixelifySans-VariableFont_wght.ttf") format("truetype"),
    url("fonts/PixelifySans-Bold.ttf") format("truetype");
  font-weight: 400; /* Regular */
  font-style: normal;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url("./fonts/PixelifySans-VariableFont_wght.ttf") format("truetype");
  font-weight: 700; /* Bold */
  font-style: normal;
}

body {
  font-family: "Pixelify Sans";
  text-align: center;
  margin: 0;
  overflow: hidden;
}

#board {
  display: block;
  margin: 0 auto;
  background-image: url("./images/gameboard.png");
  background-repeat: repeat-x;
  width: 1120px;
}
/* Audio Banner Styles */

#audio-banner {
  position: fixed;
  top: 10%;
  left: 17%;
  padding: 3rem;
  width: 60%;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(122, 120, 120, 0.4);
  z-index: 9999;
}

#audio-banner:focus {
  outline: none;
}

#audio-banner h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

.enable__button {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.enable__button img {
  display: block;
  margin: auto;
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.enable__button:hover img {
  transform: scale(1.1);
}

.arrow__button {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.arrow__button img {
  width: 2rem;
  height: 2rem;
  transition: transform 0.3s ease;
}

.arrow__button:hover img {
  transform: scale(1.2);
}

/* Instructions Banner Styles */

#instructions-banner {
  position: fixed;
  top: 10%;
  left: 17%;
  padding: 3rem;
  width: 60%;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(122, 120, 120, 0.4);
  z-index: 9999;
}

#instructions-banner:focus {
  outline: none;
}

#instructions-banner h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

/* Gamestart Banner Styles  */

#gamestart-banner {
  position: fixed;
  top: 10%;
  left: 17%;
  padding: 3rem;
  width: 60%;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(122, 120, 120, 0.4);
  z-index: 9999;
}

#gamestart-banner:focus {
  outline: none;
}

#gamestart-banner h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

/* Name Banner Styles */

#name-banner {
  position: fixed;
  top: 10%;
  left: 17%;
  padding: 3rem;
  width: 60%;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(122, 120, 120, 0.4);
  z-index: 9999;
}

#name-banner:focus {
  outline: none;
}

#name-banner h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

.name__input {
  border: none;
  outline: none;
  padding: 1rem;
  font-family: "Pixelify Sans";
  font-size: 1rem;
}

.enter__prompt {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

/* Second Instruction Banner */

#instruction-banner2 {
  position: fixed;
  top: 10%;
  left: 17%;
  padding: 3rem;
  width: 60%;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(122, 120, 120, 0.4);
  z-index: 9999;
}

#instruction-banner2:focus {
  outline: none;
}

#instruction-banner2 h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

#mobile-controls {
  display: none;
}

#mobile-controls.visible {
  display: flex;
}
/* MOBILE */

@media (max-width: 768px) {
  #board {
    width: 100%;
    height: 25vh;
  }

  #name-banner,
  #audio-banner,
  #instructions-banner,
  #instruction-banner2,
  #gamestart-banner {
    padding: 3rem;
    position: absolute;
    left: 8%;
  }

  #name-banner h2,
  #audio-banner h2,
  #instructions-banner h2,
  #instruction-banner2 h2,
  #gamestart-banner h2 {
    font-size: 1.5rem;
  }

  #mobile-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  #mobile-controls button {
    padding: 0.5rem 0.2rem;
    font-size: 0.5rem;
    background-color: rgba(122, 120, 120, 0.8);
    border: none;
    color: white;
    cursor: pointer;
    width: 3rem;
    margin-top: 1rem;
  }

  #mobile-controls {
    display: none;
  }
}

/* Mobile Landscape */
@media (max-width: 1000px) and (orientation: landscape) {
  #board {
    width: 80%;
    height: 70vh;
    margin: auto;
  }

  #name-banner,
  #audio-banner,
  #instructions-banner,
  #instruction-banner2,
  #gamestart-banner {
    padding: 3rem;
    position: absolute;
    left: 14%;
  }

  #name-banner h2,
  #audio-banner h2,
  #instructions-banner h2,
  #instruction-banner2 h2,
  #gamestart-banner h2 {
    font-size: 1.5rem;
  }

  #mobile-controls {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    width: 90%;

    padding: 0 1rem;
    gap: 15px;
  }

  #mobile-controls button {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
    background-color: rgba(122, 120, 120, 0.8);
    border: none;
    color: white;
    cursor: pointer;
    flex: 1;
    text-align: center;
  }
}
