.loader {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loader div {
  background-color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  z-index: -1;
  animation: anim 2s infinite ease, colorShift 3s infinite alternate;
  animation-delay: calc(-0.3s * var(--i));
  transform: translateY(5px) scale(1);
  margin: 0.2em;
}

.loader::before {
  content: "";
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(12px);
  position: absolute;
  width: 140px;
  height: 55px;
  z-index: 20;
  border-radius: 0 0 20px 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top: none;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  animation: anim2 2s infinite, pulse 1.5s infinite alternate;
}

.loader::after {
  content: "";
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: absolute;
  width: 140px;
  height: 55px;
  z-index: 20;
  border-radius: 0 0 20px 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top: none;
  box-shadow: 0 -20px 30px rgba(0, 0, 0, 0.1);
  animation: anim2 2s infinite, pulse 1.5s infinite alternate;
}

@keyframes anim {
  0%, 100% {
      transform: translateY(5px) scale(1);
  }
  75% {
      transform: translateY(-10px) scale(1.1);
  }
  50% {
      transform: translateY(-55px) scale(0.9);
  }
}

@keyframes anim2 {
  0%, 100% {
      transform: rotate(-10deg);
  }
  50% {
      transform: rotate(10deg);
  }
}



@keyframes pulse {
  0% {
      transform: scale(1);
      opacity: 1;
  }
  100% {
      transform: scale(1.1);
      opacity: 0.8;
  }
}

#content {
  opacity: 0;
  visibility: hidden;
  filter: blur(10px);
  transition: opacity 1s ease-in-out, filter .5s ease-in-out;
}

#content.visible {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
}