@import '../../lib/commonStyles/full-size';
@import '../../lib/commonStyles/variable';

.root {
  @include full-size;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
}

.container {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}

.mask {
  @include full-size;
  background: rc-palette('neutral', 'b01');
  opacity: rc-opacity('48');
}

@media only screen and (max-width: 50px) {
  .container {
    width: 30px;
    height: 30px;
  }
}

// fix animation freeze a bit under high load
div[class*='MuiCircularProgress-indeterminate'] {
  animation: circular-rotate 1.4s linear infinite;
}

@keyframes circular-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
