@font-face {
  font-family: pixelFont;
  src: url(04B_30__.TTF) format("truetype");
}

* {
  font-family: pixelFont;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #5974f0 0%, #4a8498 100%);
  font-family: "Arial", sans-serif;
  overflow: hidden;
}

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

#ui {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

#scoreboard {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#score {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#instructions {
  text-align: center;
  font-size: 18px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#title-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  margin-bottom: 20px;
}

#title {
  text-align: center;
  font-size: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#gameOver {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #73acc5cd;
  color: white;
  padding: 50px;
  border-radius: 15px;
  text-align: center;
  display: none;
  z-index: 200;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#gameOver h2 {
  margin-top: 0;
}

#restartBtn {
  background: #3d86a2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s;
}

#restartBtn:hover {
  background: #45b7b8;
}


@media screen and (max-width: 600px) {
  #ui {
    padding: 10px;
  }

  #score {
    font-size: 16px;
  }

  #instructions {
    font-size: 16px;
  }

  #title {
    font-size: 32px;
  }

  #gameOver {
    font-size: 15px;
    padding: 30px;
    width: 65%;
  }

  #restartBtn {
    padding: 10px 20px;
    font-size: 10px;
  }
  
}