body {
  margin: 0;
  overflow: hidden; /* Hide scrollbars */
  font-family: Arial, sans-serif;
  color: white;
}

#gameCanvas {
  display: block; /* Remove extra space below canvas */
}

#info {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  font-size: 18px;
}

#startScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #87ceeb 0%,
    #4a90e2 100%
  ); /* Sky blue gradient */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 100;
  color: white;
  font-family: "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif;
  transition: opacity 0.5s ease-out; /* Added for fade-out effect */
}

#startScreenContent {
  background-color: rgba(0, 0, 50, 0.3);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#startScreen h1 {
  font-size: 4em;
  margin-bottom: 20px;
  color: #ffd700; /* Gold color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#startScreen p {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

#startButtonSphere {
  width: 80px;
  height: 80px;
  background-color: #808080; /* Changed to gray */
  border-radius: 50%;
  margin: 20px auto;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 0 15px #808080, inset 0 0 10px rgba(255, 255, 255, 0.5); /* Adjusted shadow to match gray */
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out,
    opacity 0.3s ease-out, background-color 0.3s ease-out;
}

#startButtonSphere.sphere-born {
  transform: scale(5); /* Expand significantly */
  opacity: 0; /* Fade out */
  background-color: #ffffff; /* Flash to white */
  box-shadow: 0 0 50px #ffffff, 0 0 100px #ffffff; /* Bright white glow */
}

#startButtonSphere:hover {
  transform: scale(1.2); /* Increased scale */
  box-shadow: 0 0 30px #ff0000, 0 0 50px #ff4500,
    /* Keeping original glow for now, can be adjusted */
      /* Brighter, wider glow */ 0 0 70px #ff8c00,
    /* Added third layer of orange glow */ inset 0 0 15px
      rgba(255, 255, 255, 0.7); /* Brighter inner glow */
  /* background-color will be handled by JavaScript */
}

#startGameButton {
  padding: 15px 30px;
  font-size: 1.5em;
  color: white;
  background-color: #228b22; /* Ground green */
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-top: 10px; /* Add some space if sphere isn't clicked */
}

#startGameButton:hover {
  background-color: #3cb371; /* Lighter green */
  transform: translateY(-2px);
}

#gameOverScreen {
  visibility: hidden; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(70, 70, 70, 0); /* Start fully transparent */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 30; /* Above canvas, below potential modals if any */
  pointer-events: none; /* Don't block interaction when transparent */
  transition: background-color 0.5s ease-in-out; /* Smooth fade for background */
}

#gameOverMessage {
  color: white;
  font-size: 2em;
  opacity: 0; /* Initially transparent */
  transition: opacity 1s ease-in-out 0.5s; /* Fade in after background */
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

.in-game-hint {
  position: fixed;
  top: 20px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1em; /* Adjust as needed */
  z-index: 20; /* Above canvas, below start/game over screens */
  display: none; /* Initially hidden */
  text-align: center;
}
