/* General body styling */
body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background-color: #000; /* Ensure black background for space effect */
}

/* Game container to ensure proper alignment */
#game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Game canvas styling */
#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0; /* Ensure canvas is behind other elements */
}

/* Restart button styling */
#restart-button {
  position: absolute;
  top: 580px;
  left: 910px;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none; /* Hidden by default */
  z-index: 10; /* Ensure it appears above the canvas */
}

/* Hover and active styles for the restart button */
#restart-button:hover {
  background-color: #cc0000;
}

#restart-button:active {
  background-color: #990000;
}

/* HUD styling */
#gameInfo {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 18px;
  z-index: 10;
  line-height: 1.6; /* Ensure consistent spacing between lines */
}

#gameInfo div {
  margin: 5px 0;
}

/* Consistent HUD bar styling */
.bar-container {
  width: 200px;
  height: 20px;
  background-color: #333;
  border: 1px solid #fff;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
}

.fuel-bar {
  background-color: #0f0; /* Green for fuel */
}

.health-bar {
  background-color: #f00; /* Red for health */
}

/* Question Overlay */
#question-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 20; /* Above everything */
  flex-direction: column;
}

#question-content {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  color: #fff;
  text-align: center;
}

#question-content h2 {
  margin-bottom: 20px;
}

#options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#options-container button {
  background: #444;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
}

#options-container button:hover {
  background: #666;
}