:root {
  --could-color: #fff;
  --background-color: #181c1f;
}


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

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background-color);
}

.sky {
  position: relative;
  height: 400px;
  border-bottom: 2px solid var(--could-color);
}

.cloud {
  position: relative;
  width: 320px;
  height: 100px;
  background: var(--could-color);
  border-radius: 100px;
}

.cloud:before {
  content: '';
  position: absolute;
  top: -50px;
  left: 40px;
  width: 110px;
  height: 110px;
  background: var(--could-color);
  border-radius: 50%;
  box-shadow: 90px 0 0 30px var(--could-color);
}

.rain {
  position: relative;
  display: flex;
  z-index: 1;
  padding: 0 20px;
}

.rain span {
  position: relative;
  bottom: 20px;
  width: 10px;
  height: 10px;
  background: var(--could-color);
  border-radius: 50%;
  margin: 0 2px;
  transform-origin: bottom;
  animation: animateRain 5s linear infinite;
  animation-duration: calc(20s / var(--i));
}

@keyframes animateRain {
  0% {
    transform: translateY(0) scale(1);
  }
  70% {
    transform: translateY(298px) scale(1);
  }
  100% {
    transform: translateY(298px) scale(0);
  }
}