/* General Pace Styles */
.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

/* Spinner Styling */
.pace .pace-activity {
  display: block;
  position: fixed;
  z-index: 2000;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px; /* Half of height to center vertically */
  margin-left: -25px; /* Half of width to center horizontally */
  border: solid 5px transparent;
  border-top-color: #0d6221;
  border-left-color: #0d6221;
  border-radius: 50%;
  -webkit-animation: pace-spinner 0.8s linear infinite;
  -moz-animation: pace-spinner 0.8s linear infinite;
  -ms-animation: pace-spinner 0.8s linear infinite;
  -o-animation: pace-spinner 0.8s linear infinite;
  animation: pace-spinner 0.8s linear infinite;
}

/* Progress Bar Styling (Optional) */
.pace .pace-progress {
  background: #0d6221;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 100%;
  width: 100%;
  height: 3px;
}

/* Background Blur */
.pace {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1); /* Light blur effect */
  backdrop-filter: blur(5px); /* Blur effect for supported browsers */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
  z-index: 1999;
}

/* Spinner Animation */
@-webkit-keyframes pace-spinner {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes pace-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
