/* ==== Pamatstils ==== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  height: 100%;
  width: 100%;  
  background: linear-gradient(140deg, #1c1f29 0%, #2a2f3a 25%, #3a4450 55%, #4a5560 85%, #5a6570 100%);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
}


/* ==== Lietus slāņi ==== */
.rain-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.rain-layer-back { z-index: 0; }
.rain-layer-front { z-index: 2; }

/* ==== Priekšējie pilieni ==== */
.raindrop {
  position: absolute;
  top: -10%;
  width: 3px;
  height: 20px;
  background: rgba(255, 255, 255, 0.4);
  animation: drop linear infinite;
  border-radius: 50px;
  opacity: 0.8;
}

.rain-layer-front .raindrop:nth-child(1)  { left: 5%;  animation-duration: 0.6s; animation-delay: 0s; }
.rain-layer-front .raindrop:nth-child(2)  { left: 12%; animation-duration: 0.7s; animation-delay: 0.1s; }
.rain-layer-front .raindrop:nth-child(3)  { left: 18%; animation-duration: 0.5s; animation-delay: 0.2s; }
.rain-layer-front .raindrop:nth-child(4)  { left: 25%; animation-duration: 0.8s; animation-delay: 0.15s; }
.rain-layer-front .raindrop:nth-child(5)  { left: 32%; animation-duration: 0.6s; animation-delay: 0.05s; }
.rain-layer-front .raindrop:nth-child(6)  { left: 38%; animation-duration: 0.9s; animation-delay: 0.1s; }
.rain-layer-front .raindrop:nth-child(7)  { left: 45%; animation-duration: 0.7s; animation-delay: 0.2s; }
.rain-layer-front .raindrop:nth-child(8)  { left: 52%; animation-duration: 0.5s; animation-delay: 0.1s; }
.rain-layer-front .raindrop:nth-child(9)  { left: 58%; animation-duration: 0.6s; animation-delay: 0.25s; }
.rain-layer-front .raindrop:nth-child(10) { left: 65%; animation-duration: 0.8s; animation-delay: 0.3s; }
.rain-layer-front .raindrop:nth-child(11) { left: 72%; animation-duration: 0.6s; animation-delay: 0.1s; }
.rain-layer-front .raindrop:nth-child(12) { left: 78%; animation-duration: 0.7s; animation-delay: 0.15s; }
.rain-layer-front .raindrop:nth-child(13) { left: 84%; animation-duration: 0.5s; animation-delay: 0.2s; }
.rain-layer-front .raindrop:nth-child(14) { left: 91%; animation-duration: 0.9s; animation-delay: 0.05s; }
.rain-layer-front .raindrop:nth-child(15) { left: 97%; animation-duration: 0.6s; animation-delay: 0.2s; }

/* ==== Mazie pilieni (fonā) ==== */
.raindrop.small {
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  animation: drop linear infinite;
  opacity: 0.6;
}

.rain-layer-back .raindrop:nth-child(1)  { left: 3%;   animation-duration: 0.65s; animation-delay: 0.1s; }
.rain-layer-back .raindrop:nth-child(2)  { left: 9%;   animation-duration: 0.8s;  animation-delay: 0.2s; }
.rain-layer-back .raindrop:nth-child(3)  { left: 15%;  animation-duration: 0.75s; animation-delay: 0.05s; }
.rain-layer-back .raindrop:nth-child(4)  { left: 21%;  animation-duration: 0.9s;  animation-delay: 0.25s; }
.rain-layer-back .raindrop:nth-child(5)  { left: 27%;  animation-duration: 0.7s;  animation-delay: 0.15s; }
.rain-layer-back .raindrop:nth-child(6)  { left: 33%;  animation-duration: 0.6s;  animation-delay: 0.1s; }
.rain-layer-back .raindrop:nth-child(7)  { left: 39%;  animation-duration: 0.85s; animation-delay: 0.3s; }
.rain-layer-back .raindrop:nth-child(8)  { left: 45%;  animation-duration: 0.7s;  animation-delay: 0.05s; }
.rain-layer-back .raindrop:nth-child(9)  { left: 51%;  animation-duration: 0.8s;  animation-delay: 0.2s; }
.rain-layer-back .raindrop:nth-child(10) { left: 60%;  animation-duration: 0.6s;  animation-delay: 0.1s; }
.rain-layer-back .raindrop:nth-child(11) { left: 67%;  animation-duration: 0.75s; animation-delay: 0.15s; }
.rain-layer-back .raindrop:nth-child(12) { left: 74%;  animation-duration: 0.9s;  animation-delay: 0.25s; }
.rain-layer-back .raindrop:nth-child(13) { left: 81%;  animation-duration: 0.7s;  animation-delay: 0.05s; }
.rain-layer-back .raindrop:nth-child(14) { left: 88%;  animation-duration: 0.85s; animation-delay: 0.2s; }
.rain-layer-back .raindrop:nth-child(15) { left: 95%;  animation-duration: 0.65s; animation-delay: 0.1s; }

/* ==== Lietus animācija ==== */
@keyframes drop {
  0% {
    transform: translateY(0);
    opacity: 0.3;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(120vh);
    opacity: 0;
  }
}

/* ==== Saturs virs lietus ==== */
.container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  gap: 20px;
  padding: 20px;
}

/* ==== Pogas ==== */
a.button {
  display: block;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 18px;
  border-radius: 0;
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  background: rgba(80, 100, 120, 0.4);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

a.button:nth-child(1) { animation-delay: 0.2s; }
a.button:nth-child(2) { animation-delay: 0.4s; }

.button:hover {
  background: rgba(100, 130, 160, 0.6);
  transform: translateY(-2px);
}

/* ==== Pogas animācija ==== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== Mobilajiem ==== */
@media (max-width: 600px) {
  a.button {
    font-size: 1.2rem;
    padding: 16px;
  }

  .container {
    padding-top: 40px;
  }
}
