/* Grundlegende Styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0d1b2a; /* Dunkler Nachthimmel */
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
  position: relative;
}

/* Sterne */
#stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 5s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.2; }
}

/* Sternschnuppen */
#shooting-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(45deg, white, rgba(255,255,255,0));
  opacity: 0;
  transform: rotate(45deg);
  animation: shoot 1s forwards;
}

@keyframes shoot {
  0% {
      opacity: 1;
      transform: translateX(0) translateY(0) rotate(45deg);
  }
  100% {
      opacity: 0;
      transform: translateX(300px) translateY(300px) rotate(45deg);
  }
}

/* Bergsilhouette */
#mountains {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 200px;
  z-index: 1;
}

#mountains svg {
  width: 100%;
  height: 100%;
}

/* Hauptcontainer */
#container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

#main-title {
  font-size: 2.5rem; /* Verkleinert */
  text-align: center;
  position: relative;
  cursor: default;
  background: linear-gradient(270deg, #ff7e5f, #feb47b, #ff7e5f);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 10s ease infinite;
  transition: background 0.5s ease;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.letter {
  display: inline-block;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  position: relative;
}

/* Schneeflocken Styles */
#snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.8);
  user-select: none;
  cursor: pointer;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
      transform: translateY(100vh);
  }
}

/* Kontextmenü Styles */
#context-menu {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0;
}

#context-menu.hidden {
  display: none;
}

#context-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#context-menu li {
  padding: 10px 20px;
  cursor: pointer;
}

#context-menu li:hover {
  background-color: #f0f0f0;
}

/* CSS für gefrorene Buchstaben */
.frozen {
  transform: scale(1.1) rotate(2deg);
  transition: transform 0.3s ease;
}

/* CSS für "schmelzen" Effekt */
.melt {
  transition: transform 1s ease, opacity 1s ease;
  transform: translateY(50px) rotate(10deg);
  opacity: 0;
}

/* Interaktive Sterne beim Hover */
.hidden-element {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Zusätzliche Styles */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/frost-overlay.png') repeat;
  opacity: 0.1; /* Reduzierte Opazität für dunkleren Himmel */
  pointer-events: none;
  z-index: 0;
}
