/* width */
::-webkit-scrollbar {
  width: 0.5vmax;
}

/* Track */
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0.5vw;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5vw;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgba(66, 66, 66, 0.4);
}

#preload {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: #fff;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}
#preload img {
  width: 13vmax;
  height: auto;
  padding-bottom: 1vw;
}
.mobile #preload img {
  width: 30vmin;
  height: auto;
}
#preload.hide{
    opacity: 0;
    visibility: hidden;
}

.loader {
  width: 4vmax;
  height: 4vmax;
  display: block;
  margin: 0.5vmax auto;
  position: relative;
  color: rgba(255, 206, 0, 1);
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.mobile .loader{
    width: 8vmin;
    height: 8vmin;
}
.loader::after,
.loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  width: 2vmax;
  height: 2vmax;
  top: 0;
  background-color: rgba(255, 206, 0, 1);
  border-radius: 50%;
  animation: scale50 1s infinite ease-in-out;
}
.mobile .loader::after,
.mobile .loader::before{
  width: 4vmin;
  height: 4vmin;
}
.loader::before {
  top: auto;
  bottom: 0;
  background-color: rgba(2, 105, 55, 1);
  animation-delay: 0.5s;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes scale50 {
  0%,
  100% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
}
