@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  scroll-behavior: smooth;
}

.show_pop_up_form {
  animation: show_pop_up_form .3s linear forwards;
}

@keyframes show_pop_up_form {
  from {
    margin-top: -160px;
    opacity: 0;
  }

  to {
    margin-top: -0px;
    opacity: 1;
  }

}
.hide_pop_up_form {
  animation: hide_pop_up_form .3s linear forwards;
}

@keyframes hide_pop_up_form {
  from {
    margin-top: -0px;
    opacity: 1;
  }

  to {
    margin-top: -160px;
    opacity: 0;
  }

}


.show_pop_up_form_overlay {
  animation: show_pop_up_form_overlay .3s linear forwards;
}

@keyframes show_pop_up_form_overlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}

.hide_pop_up_form_overlay {
  animation: hide_pop_up_form_overlay .3s linear forwards;
}

@keyframes hide_pop_up_form_overlay {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }

}

.input-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.4);
}

.error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.success-circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: drawCircle 0.6s ease-out forwards;
}

.success-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: drawCheck 0.4s 0.6s ease-out forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* loader logo slider */
@keyframes slide-logo {
  0% {
    transform: translateX(100%);
    opacity: 0.2;
  }
  50% {
    transform: translateX(0%);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0.2;
  }
}

.animate-slide-logo {
  animation: slide-logo 1.5s ease-in-out infinite;
}

/* call and whatsapp popup */

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fade-in 0.3s ease-in-out forwards;
}

@keyframes backgroundScroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 50px 50px;
  }
}

.animate-backgroundScroll {
  animation: backgroundScroll 20s linear infinite;
}

.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card:hover {
  box-shadow: 0 8px 32px rgba(239, 119, 20, 0.1);
}

@media screen and (min-width: 340px) and (max-width: 420px) {
  .slide-mobile-1 img {
    object-position: -225px 0px;
  }
  .slide-mobile-2 img {
    object-position: -225px 0px;
  }
}

@media screen and (min-width: 421px) and (max-width: 479px) {
  .slide-mobile-1 img {
    object-position: -165px 0px;
  }
  .slide-mobile-2 img {
    object-position: -170px 0px;
  }
}

@media screen and (min-width: 480px) and (max-width: 540px) {
  .slide-mobile-1 img {
    object-position: -110px 0px;
  }
  .slide-mobile-2 img {
    object-position: -100px 0px;
  }
}

@media screen and (min-width: 541px) and (max-width: 590px) {
  .slide-mobile-1 img {
    object-position: -60px 0px;
  }
  .slide-mobile-2 img {
    object-position: -70px 0px;
  }
}

@media screen and (min-width: 591px) and (max-width: 640px) {
  .slide-mobile-1 img {
    object-position: -10px 0px;
  }
  .slide-mobile-2 img {
    object-position: -0px 0px;
  }
}


/* #category-carousel .owl-stage-outer{
  height: 100% !important;
}

#category-carousel .owl-stage-outer .owl-stage{
  height: 100% !important;
}

#category-carousel .owl-stage-outer .owl-stage .owl-item{
  height: 100% !important;
} */

#category-carousel .owl-stage-outer {
  padding: 10px 0px;
}

#category-carousel .owl-nav button:hover{
  background: none;
}

/* testimonal section */

.franchise_partner_testimonal .owl-carousel .owl-stage-outer .owl-stage {
  padding: 20px 0px !important;
}

.franchise_partner_testimonal
  .owl-carousel
  .owl-stage-outer
  .owl-stage
  .owl-item {
  height: 285.33px !important;
}

.franchise_partner_testimonal .owl-theme .owl-dots .owl-dot span {
  background: #ffd6b4 !important;
}

.franchise_partner_testimonal .owl-theme .owl-dots .owl-dot.active span,
.franchise_partner_testimonal .owl-theme .owl-dots .owl-dot:hover span {
  background: #ef7714 !important;
}

/* frnchise partner section logo section */
.franchise-logos.owl-theme .owl-dots {
  display: none !important;
}

.franchise-logos .owl-nav button.owl-prev {
  background: none !important;
}

.franchise-logos .owl-nav button.owl-next {
  background: none !important;
}
