/* Retro Game Style */

body {
  font-family: 'Press Start 2P', cursive;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Start Screen Centering */
#start-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000;
  padding: 20px;
  box-sizing: border-box;
}

/* Retro Title */
#game-title {
  font-size: 36px; /* Scales for larger screens */
  color: #ffcc00;
  text-shadow: 2px 2px #ff6600;
  margin-bottom: 30px;
  line-height: 1.5;
  opacity: 0; /* Hidden initially for animation */
  animation: retroFadeIn 1.5s ease-out forwards;
  animation-delay: 0.5s; /* Smooth load */
  text-align: center;
  word-wrap: break-word; /* Ensure wrapping works */
}

/* Retro Start Button */
#start-button {
  font-family: 'Press Start 2P', cursive;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 20px 40px;
  font-size: 20px;
  cursor: pointer;
  margin: 15px;
  box-shadow: 3px 3px 6px #000;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  animation: retroFadeIn 1.5s ease-out forwards, buttonPulse 2s infinite ease-in-out;
  animation-delay: 2s; /* Delay to appear after title */
}

#start-button:hover {
  transform: translateY(-3px); /* Slightly larger hover effect */
  box-shadow: 5px 5px 10px #000;
}

/* Loading Screen */
#loading-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000;
  color: #fff;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
}

#loading-screen h1 {
  font-size: 24px;
  color: #ffcc00;
  text-shadow: 2px 2px #ff6600;
  margin-bottom: 20px;
}

#loading-screen p {
  font-size: 16px;
  margin: 10px 0;
}

#loading-screen ul {
  list-style: none;
  padding: 0;
}

#loading-screen li {
  font-size: 14px;
  color: #33cc33;
  margin: 5px 0;
}

#understood-button {
  font-family: 'Press Start 2P', cursive;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 20px 40px;
  font-size: 20px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 3px 3px 6px #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

#understood-button:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 10px #000;
}

/* Game Container */
#game-container {
  display: none; /* Hidden until game starts */
  margin: 0 auto;
  padding: 20px;
}

#score-counter {
  font-size: 20px;
  margin: 20px 0;
  color: #33cc33;
}

/* Map Styling */
#map {
  display: none; /* Hidden until game starts */
  width: 90%;
  height: 60vh;
  margin: 20px auto;
  border: 4px solid #ffcc00;
}

/* Game Controls Styling */
#game-controls {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#decision-buttons {
  display: flex;
  justify-content: center;
  gap: 20px; /* Add space between buttons */
  margin-top: 20px; /* Space above the decision buttons */
}

#yes-button,
#no-button,
#next-button {
  font-family: 'Press Start 2P', cursive;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 20px 40px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 3px 3px 6px #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

#yes-button:hover,
#no-button:hover,
#next-button:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 10px #000;
}

#next-button {
  display: none;
  margin-top: 20px; /* Space above the Next button */
}

/* End Screen */
#end-screen {
  text-align: center;
  background-color: #000;
  color: #fff;
  padding: 20px;
  border: 4px solid #ffcc00;
  margin: 20px auto;
  width: 80%;
  border-radius: 10px;
}

#end-screen h2 {
  font-size: 32px;
  color: #ff6600;
  text-shadow: 2px 2px #000;
}

#end-screen p {
  font-size: 18px;
  margin: 10px 0;
}

#replay-container {
  text-align: center;
  margin-top: 20px;
}

#restart-button {
  font-family: 'Press Start 2P', cursive;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 20px 40px;
  font-size: 20px;
  cursor: pointer;
  margin: 15px;
  box-shadow: 3px 3px 6px #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

#restart-button:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 10px #000;
}

/* Spinner for Loading Animation */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Retro Animations */
@keyframes retroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 5px #ffcc00;
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ff6600;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px #ffcc00;
  }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  #game-title {
    font-size: 50px;
    margin-bottom: 20px;
    word-break: break-word;
  }

  button {
    font-size: 18px; /* Adjust button size for smaller screens */
    padding: 15px 30px;
  }

  #start-screen, #loading-screen {
    padding: 15px;
  }
} 
