body {
  &.in-loading {
    overflow: hidden;
  }
}

.preloader-container {
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 18;
  background-color: $main;
}

.loader {
  position: absolute;
  top: 50%;
  left: 40%;
  margin-left: 10%;
  transform: translate3d(-50%, -50%, 0);
  .dot {
    width: 24px;
    height: 24px;
    background: #3ac;
    border-radius: 100%;
    display: inline-block;
    animation: slide 1s infinite;
    &:nth-child(1) {
      animation-delay: 0.1s;
      background: $loader-color;
    }
    &:nth-child(2) {
      animation-delay: 0.2s;
      background: $loader-color;
    }
    &:nth-child(3) {
      animation-delay: 0.3s;
      background: $loader-color;
    }
    &:nth-child(4) {
      animation-delay: 0.4s;
      background: $loader-color;
    }
    &:nth-child(5) {
      animation-delay: 0.5s;
      background: $loader-color;
    }
  }
}
