html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

@font-face {
  font-family: 'Dogica Pixel';
  src: url('../fonts/dogicapixel.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Dogica Pixel Bold';
  src: url('../fonts/dogicapixelbold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DePixel Breit';
  src: url('../fonts/DePixelBreit.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Mobile-first styles */
h1 {
  font-family: 'Dogica Pixel Bold';
  color: white; 
  font-size: 28px;
}

h2 {
  font-family:'DePixel Breit' ;
  color: white; 
  font-size: 18px;
}

p {
  font-family: 'DePixel Breit';
  color: white;
  font-size: 14px; 
  max-width: 90%; 
  padding: 15px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}


#gameBox {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.arrow {
  position: absolute;
  background: transparent;
  pointer-events: auto;
  width: 3em;
  height: 3em;
}

#uArrow { top: 0px; width: 100%; }
#dArrow { bottom: 0px; width: 100%; }
#lArrow { left: 0px; height: 100%; }
#rArrow { right: 0px; height: 100%; }

/* Screen overlay styles */
.screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.screen-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.screen-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

/* Add your background images here */
#startScreen .screen-content,
#instructionScreen .screen-content,
#winScreen .screen-content,
#loseScreen .screen-content
 {
  background-image: url('../images/background-02.png');
  /* background-color: #1e3a8a; */
}

.btn {
  padding: 15px 40px;
  font-family: 'Dogica Pixel';
  font-size: 20px;
  background: transparent;
  color: white;
  border: 3px solid white;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  image-rendering: pixelated;
  width: auto;
  max-width: 90%;
  display: inline-block;
}

.btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn:active {
  transform: scale(0.95);
}

/* Desktop styles */
@media (min-width: 769px) {
  h1 {
    font-size: 48px;
  }
  
  h2 {
    font-size: 30px;
  }
  
  p {
    font-size: 25px;
    max-width: 600px;
    padding: 20px;
  }
}

@media screen and (min-width: 1024px) {
  #gameBox {
      width: 100vw;
      height: 100vh;
  }}