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

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

body {
  background: #000022;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
}

/* Start Menu */
.start-menu {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("/images/stars-2.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.start-menu h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 8px #000;
}

.start-menu select,
.start-menu button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#startBtn {
  background-color: #28a745;
  color: white;
}

#startBtn:hover {
  background-color: #1c7430;
}

/* Game Wrapper */
.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0;
  aspect-ratio: 4 / 3;
}

.hidden {
  display: none;
}

/* Canvas */
#gameCanvas {
  width: 100%;
  height: 100%;
  background: #002733;
  border: 3px solid white;
  border-radius: 10px;
  display: block;
}

/* Buttons */
#restartBtn,
#pauseBtn {
  position: absolute;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #19a9d9;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

#restartBtn:hover,
#pauseBtn:hover {
  background-color: #10495e;
}

#restartBtn {
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#pauseBtn {
  top: 50px;
  right: 10px;
}
