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

body {
  background-color: #000;
  background-image: url('../invaders_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  color: #0f0;
}

#game-container {
  position: relative;
  display: inline-block;
}

#gameCanvas {
  border: 2px solid #0f0;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

#ui-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: bold;
  color: #fff; /* White text for title bar */
  text-shadow: 2px 2px 4px #000;
  pointer-events: none;
}

#ui-overlay > div {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 3px;
}

#sound-toggle {
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #fff;
  color: #fff;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  pointer-events: all;
  transition: background-color 0.2s, transform 0.1s;
}

#sound-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#sound-toggle:active {
  transform: scale(0.95);
}

#sound-toggle.muted {
  opacity: 0.5;
}
