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

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

#loader,
#loader * {
  box-sizing: border-box;
}

#loader {
  position: fixed;
  inset: 0;
  background: url('./assets/bg.webp') no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20vh;
  height: 100%;
}

#image_wrapper {
  display: flex;
  justify-content: center;
  padding-top: 15vh;
  max-height: 68vh;
}

#image_wrapper img {
  width: 100%;
}

#loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding-bottom: 20.25px;
  width: 100%;
}

#logo img {
  max-height: 30px;
}

#percent {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.09px;
  color: var(--fg-content-primary, #ffffff);
}

#progress {
  position: relative;
  overflow: hidden;
  width: 409px;
  height: 12px;
  max-width: 90%;
  padding: 2px;
  border-radius: 3.6px;
  box-sizing: border-box;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(0deg, #4b2b16, #4b2b16);
  background-blend-mode: overlay, normal, normal, normal;
}

#bar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  overflow: visible;
}

#bar-border-1 {
  position: absolute;
  top: 0;
  left: 0;
  height: 12px;
  width: 100%;
  border-radius: 3.6px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 50%, rgba(255, 255, 255, 0)),
    linear-gradient(0deg, #ffb143, #ffb143), linear-gradient(180deg, #ffb742, #ff950a);
}

#bar {
  position: absolute;
  left: 0.8px;
  width: calc(100% - 2px);
  height: 90%;
  border-radius: 3.6px;
  background: linear-gradient(180deg, #fdd87e, #eb8245 93.33%);
}

#bar-border-2 {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 3.2px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  mix-blend-mode: overlay;
  z-index: 2;
}

#highlight-top,
#highlight-bottom {
  position: absolute;
  left: 2px;
  width: calc(100% - 4px);
  height: 1px;
  background-color: rgba(255, 255, 255, 0.35);
  z-index: 2;
}

#highlight-top {
  top: 1px;
  border-radius: 3.6px 3.6px 0 0;
}

#highlight-bottom {
  bottom: 1px;
  border-radius: 0 0 3.6px 3.6px;
}

#glow-right {
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 16.62px;
  height: 10.737px;
  border-radius: 3.6px;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.5) 29.81%,
    rgba(255, 255, 255, 0.1) 69.71%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 3;
}

#glow-bubbles {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-45%);
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 744px) {
  #image_wrapper {
    max-width: 297px;
  }

  #progress {
    width: 231px;
    height: 8px;
    border-radius: 2.6px;
  }

  #bar-border-1 {
    height: 8px;
    border-radius: 2.6px;
  }

  #bar {
    border-radius: 2.6px;
  }

  #bar-border-2 {
    border-radius: 2.6px;
    border: 0.6px solid transparent;
  }

  #highlight-top {
    top: 0.5px;
    border-radius: 2.6px 2.6px 0 0;
  }

  #highlight-bottom {
    bottom: 0.5px;
    border-radius: 0 0 2.6px 2.6px;
  }

  #glow-right {
    width: 8px;
    height: 7px;
    border-radius: 2.6px;
  }

  #glow-bubbles {
    height: 6px;
  }

  #logo img {
    max-height: 21px;
  }

  #percent {
    font-size: 14px;
  }
}

@media (max-height: 750px) {
  #loader {
    gap: 11vh;
  }

  #image_wrapper {
    padding-top: 10vh;
    max-height: 78vh;
  }
}
