@import "../../styles/colors.scss";
@import "../../styles/fonts.scss";

.loadingIndicatorWrapperLight {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  flex-direction: column;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 100;
  background-color: $loading_indicator_bg_color;
  backdrop-filter: blur(5px);
  .loadingIndicator {
    border: 4px solid $loading_indicator_first_color;
    border-top: 4px solid $loading_indicator_second_color;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    animation: spin 2s linear infinite;
  }
  span {
    font-family: Poppins;
    font-size: 15px;
    font-weight: 400;
    line-height: 28px;
    margin-top: 15px;
    color: $loading_indicator_text;
  }
}

.loadingIndicatorWrapperDark {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  flex-direction: column;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 100;
  background-color: $loading_indicator_bg_color_dark;
  backdrop-filter: blur(5px);
  .loadingIndicator {
    border: 4px solid $loading_indicator_first_color_dark;
    border-top: 4px solid $loading_indicator_second_color_dark;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    animation: spin 2s linear infinite;
  }
  span {
    font-family: Poppins;
    font-size: 15px;
    font-weight: 400;
    line-height: 28px;
    margin-top: 15px;
  }
}

.noBlur {
  backdrop-filter: none;
  background-color: transparent;
}

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