@tailwind base;
@tailwind components;
@tailwind utilities;

@import url("https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap");

@layer base {
  body {
    @apply font-sans;
  }
}

@layer components {
  .item {
    @apply w-[290px] h-[200px] absolute;
  }
  .item-right {
    @apply w-[290px] h-[200px] absolute;
  }
}

@keyframes scrollLeft {
  to {
    left: -270px;
  }
}
@keyframes scrollRight {
  to {
    left: max(calc(270px * 7), 100%);
  }
}

.active {
  font-weight: bold;
}
.item {
  left: max(calc(270px * 7), 100%);
  animation-name: scrollLeft;
  animation-duration: 80s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.item-right {
  left: -270px;
  animation-name: scrollRight;
  animation-duration: 80s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.item1 {
  animation-delay: calc(80s / 7 * (7 - 1) * -1);
}
.item2 {
  animation-delay: calc(80s / 7 * (7 - 2) * -1);
}
.item3 {
  animation-delay: calc(80s / 7 * (7 - 3) * -1);
}
.item4 {
  animation-delay: calc(80s / 7 * (7 - 4) * -1);
}
.item5 {
  animation-delay: calc(80s / 7 * (7 - 5) * -1);
}
.item6 {
  animation-delay: calc(80s / 7 * (7 - 6) * -1);
}
.item7 {
  animation-delay: calc(80s / 7 * (7 - 7) * -1);
}

.owl-nav {
  display: block;
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.owl-nav button {
  background: #638933 !important;
  color: white !important;
  border-radius: 50% !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 18px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  pointer-events: auto;
  position: absolute !important;
}

.owl-nav button.owl-prev {
  left: -50px !important;
}

.owl-nav button.owl-next {
  right: -50px !important;
}

.owl-nav button:hover {
  background: #527a2a !important;
  transform: scale(1.1) !important;
}

.owl-nav button.owl-prev:before {
  content: "" !important;
}

.owl-nav button.owl-next:before {
  content: "" !important;
}

@media (min-width: 1024px) {
  .owl-nav button {
    width: 50px !important;
    height: 50px !important;
  }

  .owl-nav button.owl-prev {
    left: -70px !important;
  }

  .owl-nav button.owl-next {
    right: -70px !important;
  }
}
