.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #02205f; 
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  animation: fadeOut 1s ease forwards;
  animation-delay: 5.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 50px;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade_in {
  opacity: 0;
  animation: fadein 2s ease forwards calc(.5s + var(--order) * 1s);
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width:1030px) {
  .overlay {
    gap: 30px;
  }
}