body {
  margin: 0;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
}

/* Styling for the loader overlay */
.splash-loader {
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 50%);
  block-size: 100vh;
  inline-size: 100vw;
}

/* Styling for the planet animation */
.splash-planet {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  block-size: 7rem;
  inline-size: 7rem;
  transform: translate(-63.5%, -63.5%); /* Center the planet */
}

/* Styling for the ring animation */
.splash-ring {
  position: absolute;
  border: 0.2rem solid #d0d1d8;
  border-radius: 50%;
  animation: ring-rotation 2s linear infinite;
  block-size: 125%;
  inline-size: 125%;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%); /* Center the ring */
}

/* Styling for the ball (moon) */
.splash-ball {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  animation: ball-rotation 2s linear infinite;
  background-color: #ffd483;
  block-size: 1rem;
  inline-size: 1rem;
  inset-block-start: 50%;
  inset-inline-start: 60%;
  transform: translate(-50%, -50%); /* Center the ball */
}

/* Styling for the loading logo (image) */
.loading-logo {
  position: absolute;
  z-index: 3;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%); /* Center the image */
}

/* Keyframes for ring rotation (orbiting the planet) */
@keyframes ring-rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Keyframes for ball rotation (orbiting the ring) */
@keyframes ball-rotation {
  from {
    transform: translateX(3rem) rotate(0deg);
  }

  to {
    transform: translateX(3rem) rotate(360deg);
  }
}

/* Scrollbar styles */

/* Scrollbar width */
::-webkit-scrollbar {
  block-size: 0.5rem;
  inline-size: 0.5rem;
}

::-webkit-scrollbar-track {
  border-radius: 0.5rem;
  background: #e8c2771c;
}

/* Scrollbar thumb styles */
::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background: #e8c377;
}

/* Scrollbar thumb hover styles */
::-webkit-scrollbar-thumb:hover {
  background: #e6bb63;
}

/* Button styles */

/* Hide scrollbar buttons */
::-webkit-scrollbar-button:single-button {
  display: none;
}

/* Styles for vertical scroll increment button */
::-webkit-scrollbar-button:single-button:vertical:decrement {
  block-size: 0.65rem;
  inline-size: 0.5rem;
}

/* Styles for vertical scroll decrement button */
::-webkit-scrollbar-button:single-button:vertical:increment {
  block-size: 0.1rem;
  inline-size: 0.5rem;
}

/* Styles for horizontal scroll buttons */
::-webkit-scrollbar-button:single-button:horizontal:increment,
::-webkit-scrollbar-button:single-button:horizontal:decrement {
  inline-size: 0;
}
