@tailwind base;
@tailwind components;

@font-face {
  font-family: "Radikal";
  src: url("/assets/fonts/Radikal.otf");
}

@font-face {
  font-family: "RadikalLight";
  src: url("/assets/fonts/RadikalLight.otf");
}

@font-face {
  font-family: "RadikalThin";
  src: url("/assets/fonts/RadikalThin.otf");
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html,
body {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

*:focus {
  outline: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

select {
  /** for the dropdown indicator */
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

#navbar {
  transition: top 0.6s;
}

#navbar.animate {
  top: -95px;
}

#navbar.sticked {
  top: 0;
  z-index: 20;
}

.hero__scrollTo {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  --tw-translate-x: -50%;
  transform: var(--tw-transform);
}

.hero__scrollTo .line {
  position: relative;
  z-index: 1;
  height: 3rem;
  width: 2px;
}

.hero__scrollTo .line .background {
  opacity: 0.4;
}

.hero__scrollTo .line .background,
.hero__scrollTo .line .highlight {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  --tw-bg-opacity: 1;
  background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
  transform-origin: top left;
}

.hero__scrollTo .line .highlight {
  transform-origin: 0 100%;
  -webkit-animation: passingLine 2s linear infinite;
  animation: passingLine 2s linear infinite;
}

@keyframes passingLine {
  0% {
    transform: translateZ(0) scaleY(0);
    transform-origin: 0 0;
  }
  50% {
    transform: translateZ(0) scale(1);
    transform-origin: 0 0;
  }
  51% {
    transform-origin: 0 100%;
  }
  100% {
    transform: translateZ(0) scaleY(0.1);
  }
}

.swiper-slide {
  width: auto;
}

.swiper-wrapper {
  height: 96vh !important;
}

.swiper-scrollbar {
  width: 51% !important;
  left: 50% !important;
  bottom: 48px !important;
  transform: translateX(-50%) !important;
  background: #646464 !important;
}

.swiper-scrollbar-drag {
  background: #ffffff;
}

@media screen and (max-width: 1024px) {
  .swiper-wrapper {
    height: 60vh !important;
  }

  .swiper-scrollbar {
    width: 40% !important;
    left: 30% !important;
    transform: translateX(-30%) !important;
    bottom: 28px !important;
  }
}

.zoomEffect {
  animation: zoomOut 5s linear forwards;
}

@keyframes zoomOut {
  0% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
