

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.gridPreloader {
  display: grid;
  grid-template-columns: repeat(3, clamp(30px, 5vw, 50px));
  grid-template-rows: repeat(3, clamp(30px, 5vw, 50px));
  gap: clamp(5px, 1vw, 10px);
}

.block {
  width: clamp(30px, 5vw, 50px);
  height: clamp(30px, 5vw, 50px);
  background-color: #2c3e50;
  animation: moveBlock 1.5s ease-in-out infinite;
  border-radius: 10%;
}

.block:nth-child(1) { animation-delay: 0s; }
.block:nth-child(2) { animation-delay: 0.2s; }
.block:nth-child(3) { animation-delay: 0.4s; }
.block:nth-child(4) { animation-delay: 0.6s; }
.block:nth-child(5) { animation-delay: 0.8s; }
.block:nth-child(6) { animation-delay: 1s; }
.block:nth-child(7) { animation-delay: 1.2s; }
.block:nth-child(8) { animation-delay: 1.4s; }
.block:nth-child(9) { animation-delay: 1.6s; }

@keyframes moveBlock {
  0%, 100% {
    background-color: #2c3e50;
  }
  50% {
    background-color: #3498db;
  }
}

.content {
  display: none;
}

body.loaded .preloader {
  display: none;
}

body.loaded .content {
  display: block;
}