.theme-pools-bar {
    margin: 10px 0 10px 0;
}
.pools_bar {
    display: block;
    --height-of-loader: 4px;
    --loader-color: #0071e2;
    width: 130px;
    height: var(--height-of-loader);
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}

.pools_bar::before {
    content: "";
    position: absolute;
    background: var(--loader-color);
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 30px;
    animation: moving_bars 1s ease-in-out infinite;
}

@keyframes moving_bars {
    50% {
        width: 100%;
    }

    100% {
        width: 0;
        right: 0;
        left: unset;
    }
}

/* Loading Box From Uiverse.io by dexter-st */ 
.theme-pools-loading-box {
    margin: 10px 0 10px 0;
}

.pools_loading_box_wrapper-grid {
  --animation-duration: 2.1s;
  --cube-color: #0000;
  --highlight-color: #00cc44;
  --cube-width: 48px;
  --cube-height: 48px;
  --font-size: 1.8em;

  position: relative;
  inset: 0;

  display: grid;
  grid-template-columns: repeat(7, var(--cube-width));
  grid-template-rows: auto;
  grid-gap: 0;

  width: calc(7 * var(--cube-width));
  height: var(--cube-height);
  perspective: 350px;

  font-family: "Poppins", sans-serif;
  font-size: var(--font-size);
  font-weight: 800;
  color: transparent;
}

.pools_loading_box_cube {
  position: relative;
  transform-style: preserve-3d;
}

.pools_loading_box_face {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cube-width);
  height: var(--cube-height);
  background-color: var(--cube-color);
}
.pools_loading_box_face-left,
.pools_loading_box_face-right,
.pools_loading_box_face-back,
.pools_loading_box_face-front {
  box-shadow:
    inset 0 0 2px 1px #0001,
    inset 0 0 12px 1px #fff1;
}
.pools_loading_box_face-front {
  transform: rotateY(0deg) translateZ(calc(var(--cube-width) / 2));
}
.pools_loading_box_face-back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-width) / 2));
  opacity: 0.6;
}
.pools_loading_box_face-left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-width) / 2));
  opacity: 0.6;
}
.pools_loading_box_face-right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-width) / 2));
  opacity: 0.6;
}
.pools_loading_box_face-top {
  height: var(--cube-width);
  transform: rotateX(90deg) translateZ(calc(var(--cube-width) / 2));
  opacity: 0.8;
}
.pools_loading_box_face-bottom {
  height: var(--cube-width);
  transform: rotateX(-90deg)
    translateZ(calc(var(--cube-height) - var(--cube-width) * 0.5));
  opacity: 0.8;
}

.pools_loading_box_cube:nth-child(1) {
  z-index: 0;
  animation-delay: 0s;
}
.pools_loading_box_cube:nth-child(2) {
  z-index: 1;
  animation-delay: 0.2s;
}
.pools_loading_box_cube:nth-child(3) {
  z-index: 2;
  animation-delay: 0.4s;
}
.pools_loading_box_cube:nth-child(4) {
  z-index: 3;
  animation-delay: 0.6s;
}
.pools_loading_box_cube:nth-child(5) {
  z-index: 2;
  animation-delay: 0.8s;
}
.pools_loading_box_cube:nth-child(6) {
  z-index: 1;
  animation-delay: 1s;
}
.pools_loading_box_cube:nth-child(7) {
  z-index: 0;
  animation-delay: 1.2s;
}

.pools_loading_box_cube {
  animation: translate-z var(--animation-duration) ease-in-out infinite;
}
.pools_loading_box_cube .pools_loading_box_face {
  animation:
    face-color var(--animation-duration) ease-in-out infinite,
    /* face-glow var(--animation-duration) ease-in-out infinite, */ edge-glow
      var(--animation-duration) ease-in-out infinite;
  animation-delay: inherit;
}
.pools_loading_box_cube .pools_loading_box_face-front {
  animation:
    face-color var(--animation-duration) ease-in-out infinite,
    face-glow var(--animation-duration) ease-in-out infinite,
    edge-glow var(--animation-duration) ease-in-out infinite;
  animation-delay: inherit;
}

@keyframes translate-z {
  0%,
  40%,
  100% {
    transform: translateZ(-2px);
  }
  30% {
    transform: translateZ(16px) translateY(-1px);
  }
}
@keyframes face-color {
  0%,
  50%,
  100% {
    background-color: var(--cube-color);
  }
  10% {
    background-color: var(--highlight-color);
  }
}
@keyframes face-glow {
  0%,
  50%,
  100% {
    color: #fff0;
    filter: none;
  }
  30% {
    color: #fff;
    filter: drop-shadow(0 14px 10px var(--highlight-color));
  }
}
@keyframes edge-glow {
  0%,
  40%,
  100% {
    box-shadow:
      inset 0 0 2px 1px #0001,
      inset 0 0 12px 1px #fff1;
  }
  30% {
    box-shadow: 0 0 2px 0px var(--highlight-color);
  }
}
