/* game-loader.css */
#start-game-overlay {
  transition: opacity 0.5s ease-out;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

#start-game-button {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  background-color: rgba(107, 33, 168, 0.9); /* Slightly transparent purple to match the site theme */
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#start-game-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.5s;
}

#start-game-button:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }
}

/* Apply pulse animation */
#start-game-overlay:not(:hover) #start-game-button {
  animation: pulse 2s infinite;
}

/* Add text shadow for better readability over the background image */
.text-shadow-lg {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  #start-game-button {
    font-size: 1.25rem;
    padding: 1rem 2rem;
  }

  #start-game-overlay h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
}

/* Tablet responsiveness */
@media (min-width: 641px) and (max-width: 1024px) {
  #start-game-button {
    font-size: 1.1rem;
    padding: 0.875rem 1.75rem;
  }
}

/* Loading spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}