#loading {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

#loading .circle,
#loading span {
  display: inline-block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation-name: loadingRight;
  animation-timing-function: ease-in-out;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
#loading .circle {
  background-color: var(--main-color);
  animation-name: loadingLeft;
  margin-left: -20px;
}

#loading.hideLoading {
  opacity: 0.5;
  display: none;
}
/* Hide all content IF LOADER NOT HIDE! */
#loading:not(.hideLoading) ~ .specialButtons,
#loading:not(.hideLoading) ~ main {
  display: none;
}

@keyframes loadingRight {
  50% {
    transform: translateX(80px);
  }
}
@keyframes loadingLeft {
  50% {
    transform: translateX(-80px);
  }
}
