body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #000000;
  font-family: Arial, sans-serif;
}

#app {
  text-align: center;
}

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

#gameCanvas {
  border: 2px solid #333;
  background-color: #fff;
  display: block;
}

#gameCanvas:focus {
  outline: 3px solid #4caf50;
  outline-offset: 2px;
}

#start-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  pointer-events: none;
  z-index: 10;
}

#start-message.hidden {
  display: none;
}

#game-over-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

#game-over-overlay.hidden {
  display: none;
}

#game-over-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#game-over-content h2 {
  margin: 0 0 20px 0;
  font-size: 32px;
  color: #333;
  font-weight: bold;
}

#final-score {
  font-size: 24px;
  color: #4caf50;
  font-weight: bold;
  margin-bottom: 15px;
}

#restart-message {
  font-size: 16px;
  color: #666;
  cursor: pointer;
}

#restart-message:hover {
  color: #4caf50;
}

#footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #666;
  text-align: center;
  z-index: 1;
}

#footer a {
  color: #4caf50;
  text-decoration: none;
  transition: color 0.3s ease;
}

#footer a:hover {
  color: #66bb6a;
  text-decoration: underline;
}
