:root {
  --base: #e5e7eb;
  --color-loader: #0075db;
}

.loading-container {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: 0;
  right: 0;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--base);
  width: 100%;
  height: 100%;
}

.loading-container .loading {
  position: relative;
  display: inline-block;
  font-size: 32px;
  width: 1em;
  height: 1em;
  transform: rotateZ(45deg);
  transition: transform 0.3s cubic-bezier(0.78 0.14 0.15 0.86);
  animation-name: rotate;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.loading-container .loading > i {
  height: 14px;
  width: 14px;
  background-color: var(--color-loader);
  display: block;
  position: absolute;
  border-radius: 100%;
  transform: scale(0.75);
  transform-origin: 50% 50%;
  opacity: 0.3;
  animation: spin-move 1s infinite linear alternate;
}

.loading-container .loading:nth-child(1) {
  top: 0;
  inset-inline-start: 0;
  animation-delay: 0s;
}

.loading-container .loading :nth-child(2) {
  top: 0;
  inset-inline-end: 0;
  animation-delay: 0.4s;
}

.loading-container .loading :nth-child(3) {
  inset-inline-end: 0;
  bottom: 0;
  animation-delay: 0.8s;
}

.loading-container .loading :nth-child(4) {
  bottom: 0;
  inset-inline-start: 0;
  animation-delay: 1.2s;
}

@keyframes spin-move {
  to {
    opacity: 1;
  }
}

@keyframes rotate {
  to {
    transform: rotate(405deg);
  }
}
