/* Scroll bar stylings */
::-webkit-scrollbar {
  block-size: 10px;
  inline-size: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--v-theme-background);
}

/* Handle */
::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #2d3a4f;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #4c5d7a;
}

body {
  margin: 0;
}

html {
  overflow-x: hidden;
  overflow-y: auto !important;
}

@keyframes bgColors {
  0% {
    background-color: #f8e1e1;
  } /* light pink */
  12.5% {
    background-color: #e1f8f1;
  } /* light mint */
  25% {
    background-color: #e1e9f8;
  } /* light blue */
  37.5% {
    background-color: #f8f1e1;
  } /* light cream */
  50% {
    background-color: #f1e1f8;
  } /* light purple */
  62.5% {
    background-color: #e1f8f7;
  } /* aqua pastel */
  75% {
    background-color: #f8e1f1;
  } /* light rose */
  87.5% {
    background-color: #e8f8e1;
  } /* light green */
  100% {
    background-color: #f8e1e1;
  } /* back to start */
}

#loading-bg {
  position: absolute;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  animation: bgColors 8s infinite; /* duration = 8s, loops forever */
  animation-direction: alternate;
  z-index: 10;
}

.loading-img {
  position: absolute;
  inset-block-start: 40%;
  inset-inline-start: calc(50% - 65px);
}
.loading {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 55px;
  inline-size: 55px;
  inset-block-start: 50%;
  inset-inline-start: calc(50% - 35px);
}

.loading .effect-1,
.loading .effect-2,
.loading .effect-3 {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 100%;
  inline-size: 100%;

  /* Dark loader color */
  border-inline-start: 3px solid var(--loader-color, rgba(20, 20, 20, 0.85));
}

.loading .effect-1 {
  animation: rotate 1s ease infinite;
}

.loading .effect-2 {
  animation: rotate-opacity 1s ease infinite 0.1s;
}

.loading .effect-3 {
  animation: rotate-opacity 1s ease infinite 0.2s;
}

.loading .effects {
  transition: all 0.3s ease;
}

/* Animations */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(1turn);
  }
}

@keyframes rotate-opacity {
  0% {
    opacity: 0.3; /* make it visible but dim */
    transform: rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: rotate(1turn);
  }
}
