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

body {
  background-image: url('../assets/gameelements/ui/background.gif');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  image-rendering: pixelated;
}

.information {
  color: white;
}

.shop-item.equipped {
  border: 2px solid #ffd700;
  background: rgba(255, 215, 0, 0.2);
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes coinGlow {
  0% {
    filter: drop-shadow(0 0 5px rgb(255, 225, 255));
  }
  50% {
    filter: drop-shadow(0 0 5px rgb(255, 208, 255));
  }
  100% {
    filter: drop-shadow(0 0 5px rgb(255, 193, 255));
  }
}

.coin {
  position: absolute;
  width: 40px;
  height: 34px;
  background-image: url('/assets/gameelements/christal_pink.png');
  background-size: contain;
  animation:
    popIn 0.5s ease-out forwards,
    coinGlow 1.5s infinite ease-in-out;
}

.obstacle {
  position: absolute;
  width: 44px;
  height: 44px;
  background-image: url('/assets/gameelements/crater1.png');
  background-size: 44px 44px;
  image-rendering: pixelated;
}

#credits-overlay button:hover {
  background: #ffd700;
  color: black;
}

/* Start-Screen im Alien-Hazard Stil */
#start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dunkler Hintergrund mit leichtem Blau-Stich passend zum Weltraum */
  background: radial-gradient(
    circle,
    rgba(0, 20, 40, 1) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  image-rendering: pixelated;
}

/* Der große Titel oben */
#start-screen h1 {
  font-size: 80px;
  color: white;
  text-transform: uppercase;
  /* Nutzt deinen Text-Shadow Stil */
  text-shadow: 6px 6px #ff00ff;
  margin-bottom: 10px;
  /* Nutzt deine vorhandene popIn Animation */
  animation: popIn 0.8s ease-out forwards;
}

/* Der blinkende "Click to Start" Text */
.click-hint {
  font-size: 24px;
  color: #ffd700; /* Gold wie dein Shop-Titel */
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 30px;
  /* Ein Pulsieren passend zum Kristall-Glow */
  animation: coinGlow 1.5s infinite ease-in-out;
}

/* Ein kleiner grafischer Akzent (optional) */
.start-icon {
  width: 80px;
  height: 68px;
  background-image: url('/assets/gameelements/christal_pink.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 20px;
  animation: coinGlow 2s infinite alternate;
}

#shop-overlay {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  background-color: rgba(0, 0, 0, 0.95);
  border: 4px solid #ffd700;
  z-index: 2000;
  padding: 20px;
  text-align: center;
  font-family: 'Courier New', monospace;
  color: white;
  box-shadow: 10px 10px 0px rgba(255, 215, 0, 0.2);
  image-rendering: pixelated;
}

#shop-overlay h2 {
  color: #ffd700;
  margin-top: 0;
  text-transform: uppercase;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
  padding: 10px;
  border: 2px solid #00d4ff;
}

.shop-item span {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.shop-btn {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 5px 10px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s;
}

.shop-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.shop-close-btn {
  margin-top: 20px;
  background: transparent;
  color: #ff004c;
  border: 2px solid #ff004c;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  font-weight: bold;
}

.shop-close-btn:hover {
  background: #ff004c;
  color: #fff;
}

#icnGithub {
  filter: invert();
  position: fixed;
  bottom: 16px;
  left: 19px;
  width: 40px;
  height: auto;
}

#icnGithub:hover {
  cursor: pointer;
}

header h1 {
  font-family: sans-serif;
  font-size: 50px;
  transition: color 0.3s ease;
  color: white;
  text-align: center;
  margin-top: 20px;
  font-size: 70px;
}

.information {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: white;
  font-family: 'Bitcount Single Ink', sans-serif;
}

.information p {
  font-size: 24px;
  margin-bottom: 25px;
  max-width: 500px;
  line-height: 1.5;
}

#settings-overlay {
  image-rendering: pixelated;
  box-shadow: 10px 10px 0px rgba(255, 215, 0, 0.2);
}

#settings-overlay h2 {
  color: #ffd700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

#toggleSound,
#toggleFence {
  background: transparent;
  color: white;
  border: 2px solid #ffd700;
  padding: 10px 20px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

#toggleSound:hover,
#toggleFence:hover {
  background: #ffd700;
  color: black;
}

#btnPlay,
#btnShop,
#btnStats,
#btnCredits,
#btnQuit,
#btnSettings {
  display: block;
  margin: 0 auto 10px auto;
  width: 350px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  image-rendering: pixelated;
  transition: transform 0.1s ease;
  margin-bottom: 40px;
}

#btnPlay {
  height: 130px;
  background-image: url('../assets/gameelements/ui/Play.png');
}

#btnShop {
  height: 100px;
  background-image: url('../assets/gameelements/ui/Shop.png');
}

#btnStats,
#btnCredits,
#btnQuit,
#btnSettings {
  height: 65px;
}

#btnStats {
  background-image: url('../assets/gameelements/ui/Stats.png');
}
#btnCredits {
  background-image: url('../assets/gameelements/ui/Credits.png');
}
#btnQuit {
  background-image: url('../assets/gameelements/ui/Quit.png');
}
#btnSettings {
  background-image: url('../assets/gameelements/ui/Options.png');
}

#btnPlay:hover,
#btnShop:hover,
#btnStats:hover,
#btnCredits:hover,
#btnQuit:hover,
#btnSettings:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
