.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
      user-select: none;
}
.pace .pace-progress {
  background: -webkit-gradient(linear, right top, left top, color-stop(20%, #1c84ee), color-stop(40%, #34c38f), color-stop(60%, #16daf1), color-stop(80%, #ffcc5a), to(#ef6767));
  background: linear-gradient(to left, #1c84ee 20%, #34c38f 40%, #16daf1 60%, #ffcc5a 80%, #ef6767 100%);
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 100%;
  width: 100%;
  height: 3px;
}

.pace-inactive .pace-progress {
  display: none;
}

.pace .pace-activity {
  display: block;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: rgba(var(--bs-primary-rgb), 1);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
  -webkit-transform: translateX(-100%) translateY(-100%) rotate(-45deg);
  transform: translateX(-100%) translateY(-100%) rotate(-45deg);
  pointer-events: none;
}

.pace.pace-active .pace-activity {
  -webkit-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

.pace .pace-activity::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  content: "";
  position: absolute;
  display: block;
  bottom: 18px;
  right: 65px;
  width: 20px;
  height: 20px;
  border: solid 2px transparent;
  border-top-color: #fff;
  border-right-color: #fff;
  border-radius: 50%;
  -webkit-animation: pace-spinner 400ms linear infinite;
  animation: pace-spinner 400ms linear infinite;
}

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