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

body {
  margin: 0;
  overflow: hidden;
  background: #000;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: larger;
  font-weight: 300;
  color: #fff;
  cursor: default; /* Show default cursor initially */
}

/* Canvas for star animation */
canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  cursor: default; /* Show default cursor on canvas initially */
}

/* Custom cursor */
.spaceship-cursor {
  position: fixed;
  width: 80px;
  height: 80px;
  pointer-events: none; /* Make sure it doesn't interfere with clicks */
  z-index: 9999;
  transform: translate(-50%, -50%); /* Center the cursor */
  transition: transform 0.05s ease-out; /* Slight lag for smoother movement */
  background-image: url("/?originalUrl=https%3A%2F%2Fwendlerc.github.io%2Fspaceship-cursor.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Content styles */
#content {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 520px;
  padding: 32px;
  line-height: 1.6em;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
}

/* Avatar image */
.avatar {
  border-radius: 50%;
  width: 150px;
  border: 3px solid rgba(100, 200, 255, 0.5);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.5);
}

/* Text styles */
h1 {
  margin: 15px 0;
  color: #fff;
  text-shadow: 0 0 10px rgba(100, 200, 255, 0.8);
}

p {
  margin: 10px 0;
  color: #eee;
}

/* Link styles */
a {
  text-decoration: none;
  color: #4db8ff;
  transition: color 0.3s ease;
  cursor: pointer; /* Override cursor: none for links */
}

a:hover {
  color: #80ccff;
  text-shadow: 0 0 8px rgba(100, 200, 255, 0.8);
}

/* Icons */
.icons {
  list-style-type: none;
  font-size: xx-large;
  padding: 0;
  display: flex;
  justify-content: space-between;
  width: 80%;
  max-width: 320px;
  margin: 1.5em auto 0.5em;
}

.icons li {
  display: inline;
  width: 42px;
}

.icons a {
  color: #fff;
  transition: all 0.3s ease;
}

.icons a:hover {
  color: #4db8ff;
  text-shadow: 0 0 10px rgba(100, 200, 255, 0.8);
  transform: scale(1.1);
}

/* Game notification */
.game-notification {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translate(-50%, 0);
  background: rgba(0, 0, 0, 0.7);
  color: #4db8ff;
  padding: 15px 30px;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: bold;
  z-index: 1000;
  text-align: center;
  box-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
  transition: opacity 1s ease-out;
  pointer-events: none;
}

/* Sound button */
.sound-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: #4db8ff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
  transition: all 0.3s ease;
}

.sound-button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.5);
}

/* Credits */
.credits {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 10;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.credits a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.credits a:hover {
  color: #4db8ff;
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 600px) {
  #content {
    padding: 20px;
    max-width: 90%;
    font-size: 14px;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .game-notification {
    font-size: 18px;
    padding: 10px 20px;
    top: 8%; /* Adjust position for smaller screens */
  }
}

/* Hit counter styles */
#hit-counter {
  background: rgba(0, 0, 0, 0.6);
  color: #4db8ff;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
  margin-bottom: 5px;
}

/* Timer styles */
#timer, #final-time {
  background: rgba(0, 0, 0, 0.6);
  color: #4db8ff;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
  margin-bottom: 5px;
}

/* Game stats container */
#game-stats {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 100;
  display: none; /* Hide initially */
  flex-direction: column;
  align-items: flex-end;
}

/* Game milestones */
.milestone {
  color: #ff9900;
  font-weight: bold;
}

/* Bottom Controls Container */
.bottom-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

/* Background Animation Toggle */
#animation-toggle {
  position: fixed;
  bottom: 20px;
  right: 70px; /* Position to the left of the sound button (which is at right: 20px) */
  z-index: 1000;
}

#toggle-btn {
  background: rgba(52, 152, 219, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#toggle-btn:hover {
  background: rgba(41, 128, 185, 0.9);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#toggle-btn.playing {
  background: rgba(231, 76, 60, 0.9);
}

#toggle-btn.playing:hover {
  background: rgba(192, 57, 43, 0.9);
} 