/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #0a0f2c;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  overflow-x: hidden;
}

/* Rain containers */
.rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.colored-rain {
  z-index: 0;
}

/* Raindrop */
.raindrop {
  position: absolute;
  width: 2.3px;
  height: 30px;
  border-radius: 50% 50% 0 0;
  animation: fall linear infinite, colorShift 6s ease-in-out infinite alternate;
  opacity: 0.75;
  background: rgba(140, 190, 255, 1);
  filter: drop-shadow(0 0 3px rgba(140, 190, 255, 0.7));
  mix-blend-mode: screen;
  will-change: transform;
}

.colored-rain .raindrop {
  opacity: 0.55;
  width: 1.8px;
  height: 25px;
  filter: drop-shadow(0 0 2px rgba(255, 160, 180, 0.6));
}

/* Fall animation */
@keyframes fall {
  0% {
    transform: translateY(-100vh);
    opacity: 0.75;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Color-shifting animation */
@keyframes colorShift {
  0%   { background: rgba(140, 190, 255, 1); filter: drop-shadow(0 0 5px rgba(140, 190, 255, 0.7)); }
  25%  { background: rgba(255, 160, 180, 1); filter: drop-shadow(0 0 5px rgba(255, 160, 180, 0.7)); }
  50%  { background: rgba(160, 255, 210, 1); filter: drop-shadow(0 0 5px rgba(160, 255, 210, 0.7)); }
  75%  { background: rgba(200, 180, 255, 1); filter: drop-shadow(0 0 5px rgba(200, 180, 255, 0.7)); }
  100% { background: rgba(140, 190, 255, 1); filter: drop-shadow(0 0 5px rgba(140, 190, 255, 0.7)); }
}

/* Splash */
.splash {
  position: absolute;
  width: 5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(140, 190, 255, 0.6);
  animation: splash-animation 0.3s ease-out;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(140, 190, 255, 0.6));
  mix-blend-mode: screen;
}

.colored-rain .splash {
  opacity: 0.35;
}

@keyframes splash-animation {
  0% { transform: scale(0.1); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* UI Container - Top Left */
.ui-container {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 2;
  max-width: 300px;
  padding: 20px;
  background: rgba(20, 30, 60, 0.3);
  backdrop-filter: blur(7px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Title & subtitle */
.floating-title {
  font-size: 1.9rem;
  color: #e1f0ff;
  text-shadow: 0 0 12px rgba(140, 190, 255, 0.7);
  margin-bottom: 8px;
}

.floating-subtitle {
  font-size: 1.05rem;
  color: #adc7e7;
  margin-bottom: 18px;
}

/* Links & dropdowns */
details {
  margin-bottom: 15px;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: #a6ccff;
  margin-bottom: 10px;
}

details p {
  margin: 6px 0;
  font-weight: 500;
}

details a {
  color: #d1e6ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

details a:hover {
  color: white;
}
