@tailwind base;
@tailwind components;
@tailwind utilities;

#root {
  max-width: 1480px;
  margin: 0 auto;
}

body {
  font-family: "Lato", system-ui, sans-serif;
}

@font-face {
  font-family: "Onest";
  src: url("../Fonts/Onest/Onest-VariableFont_wght.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../Fonts/Lato/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../Fonts/Lato/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../Fonts/Lato/Lato-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@layer base {
  html {
    font-family: "Lato", system-ui, sans-serif;
  }
}

swiper-container {
  width: 100%;
  height: 100%;
}

swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loader styles */
.loader {
  width: 6em;
  height: 6em;
  font-size: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader .face {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  animation: animate023845 3s linear infinite;
}

.loader .face:nth-child(1) {
  width: 100%;
  height: 100%;
  color: #0976c2;
  border-color: currentColor transparent transparent currentColor;
  border-width: 0.2em 0.2em 0em 0em;
  --deg: -45deg;
  animation-direction: normal;
}

.loader .face:nth-child(2) {
  width: 70%;
  height: 70%;
  color: #0976c2;
  border-color: currentColor currentColor transparent transparent;
  border-width: 0.2em 0em 0em 0.2em;
  --deg: -135deg;
  animation-direction: reverse;
}

.loader .face .circle {
  position: absolute;
  width: 50%;
  height: 0.1em;
  top: 50%;
  left: 50%;
  background-color: transparent;
  transform: rotate(var(--deg));
  transform-origin: left;
}

.loader .face .circle::before {
  position: absolute;
  top: -0.5em;
  right: -0.5em;
  content: "";
  width: 1em;
  height: 1em;
  background-color: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 2em, 0 0 4em, 0 0 6em, 0 0 8em, 0 0 10em,
    0 0 0 0.5em rgba(9, 118, 194, 0.1);
}

@keyframes animate023845 {
  to {
    transform: rotate(1turn);
  }
}

/* Loader overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

.loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Prevent scroll during load */
html.loading {
  overflow: hidden;
}

.swiper-slider-custom {
  margin-left: -5rem;
  overflow: visible;
}

.marquee-text {
  overflow: clip;
}

.marquee-text-track {
  display: flex;
  padding-left: 4.8rem;
  gap: 4.8rem;
  width: max-content;
  animation: marquee-move-text var(--speed, 20s) linear infinite
    var(--direction, forwards);
}

@keyframes marquee-move-text {
  to {
    transform: translateX(-50%);
  }
}

.mySwiper .swiper-wrapper .swiper-slide p {
  color: #4b5563;
}
.thumbsSlider .swiper-wrapper .swiper-slide.swiper-slide-thumb-active {
  background-color: #0976c2 !important;
  border-radius: 14px;
  color: #fff !important;
}
.mySwiper .swiper-wrapper .swiper-slide.swiper-slide-active {
  background-color: #0976c2 !important;
  border-radius: 16px;
  color: #fff !important;
}
.mySwiper .swiper-wrapper .swiper-slide.swiper-slide-active p {
  color: #fff;
}

/* Extra CSS (Optional) */
.tab-content-wrapper {
  width: 500%; /* Adjust based on the number of tabs */
}
.tab-content {
  max-width: 300px; /* Each tab content should take full width */
}

@media screen and (min-width: 1024px) and (max-width: 1090px) {
  .custom-fontSize {
    font-size: 14px;
  }
}
