body {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

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

#loading-bg {
  position: absolute;
  background: var(--initial-loader-bg, #fff);
  block-size: 100%;
  inline-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  max-width: 90%;
  z-index: 10;
}

.loading-logo {
  margin-bottom: 20px;
}

.loading-logo img {
  max-width: 250px;
  height: auto;
  margin-bottom: 10px;
}

.loading-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.animated-element {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: full-screen-random-jump 25s infinite ease-in-out;
}

.ball {
  width: 30px;
  height: 30px;
  background-color: var(--initial-loader-color, #CC6600);
  border-radius: 50%;
  opacity: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ball::before {
  content: '>';
  color: white;
  font-size: 20px;
  line-height: 1;
  font-weight: bold;
}

.ball-text {
  color: #003366;
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

@keyframes full-screen-random-jump {
  0%   { transform: translate(5vw, 5vh); }
  12%  { transform: translate(calc(100vw - 35px), 30vh); }
  25%  { transform: translate(15vw, calc(100vh - 35px)); }
  37%  { transform: translate(calc(100vw - 40px), 10vh); }
  50%  { transform: translate(50vw, calc(100vh - 35px)); }
  62%  { transform: translate(25vw, 20vh); }
  75%  { transform: translate(calc(100vw - 35px), calc(100vh - 35px)); }
  88%  { transform: translate(70vw, 5vh); }
  100% { transform: translate(5vw, 5vh); }
}

/* Media Query for small screens (mobile/tablet) */
@media (max-width: 768px) {
  .loading-logo img {
    width: 100%;
    max-width: none;
  }

  .loading-content {
    padding: 10px;
  }

  .animated-element {
    gap: 5px;
  }

  .ball {
    width: 20px;
    height: 20px;
  }

  .ball::before {
    font-size: 14px;
  }

  .ball-text {
    font-size: 18px;
  }
}
