@tailwind base;
@tailwind components;

@font-face {
  font-family: "Adobe Garamond Pro";
  src: url("../fonts/AGaramondPro-BoldItalic.eot");
  src: local("Adobe Garamond Pro Bold Italic"), local("AGaramondPro-BoldItalic"),
    url("../fonts/AGaramondPro-BoldItalic.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/AGaramondPro-BoldItalic.woff2") format("woff2"),
    url("../fonts/AGaramondPro-BoldItalic.woff") format("woff"),
    url("../fonts/AGaramondPro-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Adobe Garamond Pro";
  src: url("../fonts/AGaramondPro-Italic.eot");
  src: local("Adobe Garamond Pro Italic"), local("AGaramondPro-Italic"),
    url("../fonts/AGaramondPro-Italic.eot?#iefix") format("embedded-opentype"),
    url("../fonts/AGaramondPro-Italic.woff2") format("woff2"),
    url("../fonts/AGaramondPro-Italic.woff") format("woff"),
    url("../fonts/AGaramondPro-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Adobe Garamond Pro";
  src: url("../fonts/AGaramondPro-Bold.eot");
  src: local("Adobe Garamond Pro Bold"), local("AGaramondPro-Bold"),
    url("../fonts/AGaramondPro-Bold.eot?#iefix") format("embedded-opentype"),
    url("../fonts/AGaramondPro-Bold.woff2") format("woff2"),
    url("../fonts/AGaramondPro-Bold.woff") format("woff"),
    url("../fonts/AGaramondPro-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Adobe Garamond Pro";
  src: url("../fonts/AGaramondPro-Regular.eot");
  src: local("Adobe Garamond Pro Regular"), local("AGaramondPro-Regular"),
    url("../fonts/AGaramondPro-Regular.eot?#iefix") format("embedded-opentype"),
    url("../fonts/AGaramondPro-Regular.woff2") format("woff2"),
    url("../fonts/AGaramondPro-Regular.woff") format("woff"),
    url("../fonts/AGaramondPro-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Adobe Garamond Pro";
  src: url("../fonts/AGaramondPro-SemiboldItalic.eot");
  src: local("Adobe Garamond Pro Semibold Italic"),
    local("AGaramondPro-SemiboldItalic"),
    url("../fonts/AGaramondPro-SemiboldItalic.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/AGaramondPro-SemiboldItalic.woff2") format("woff2"),
    url("../fonts/AGaramondPro-SemiboldItalic.woff") format("woff"),
    url("../fonts/AGaramondPro-SemiboldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Adobe Garamond Pro";
  src: url("../fonts/AGaramondPro-Semibold.eot");
  src: local("Adobe Garamond Pro Semibold"), local("AGaramondPro-Semibold"),
    url("../fonts/AGaramondPro-Semibold.eot?#iefix") format("embedded-opentype"),
    url("../fonts/AGaramondPro-Semibold.woff2") format("woff2"),
    url("../fonts/AGaramondPro-Semibold.woff") format("woff"),
    url("../fonts/AGaramondPro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 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;
}

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

.lineFooter {
  position: relative;
  left: auto;
}

.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;
}

.lineFooter .line .background,
.lineFooter .line .highlight {
  background-color: #fff;
}

/* .lineFooter .line .background,
.lineFooter .line .highlight {
  background-color: #65799b;
} */

.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);
  }
}

#navbar {
  transition: top 0.6s;
}

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

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

#footer {
  transition: bottom 0.6s;
}

#footer.animate {
  bottom: -65px;
}

#footer.sticked {
  bottom: -0.5px;
  z-index: 99;
}

.iti--separate-dial-code .iti__selected-flag {
  background-color: white;
}

.iti__flag-container {
  border: 0.74px solid #6e6b66;
  padding: 0px 18px;
  font-size: 14px;
}

.secondDial .iti__flag-container {
  border: 1px solid #6e6b66;
  padding: 0px 10px;
}

@media screen and (min-width: 1024px) {
  #sideForm input {
    padding: 12px 0;
    padding-left: 24px;
    border: 0.74px solid #6e6b66;
  }

  #sideForm select {
    padding: 12px 0;
    padding-left: 16px;
    border: 0.74px solid #6e6b66;
  }
}

@media screen and (max-width: 1024px) {
  .iti__flag-container {
    font-size: 12px;
  }

  .secondDial .iti__flag-container {
    font-size: 14px;
  }
}

.residencesSwipper .swiper-scrollbar-drag {
  background-color: white;
}

.residencesSwipper .swiper-scrollbar {
  width: calc(30% - 2 * var(--swiper-scrollbar-sides-offset, 1%)) !important;
  bottom: 5%;
  left: auto;
  right: var(--swiper-scrollbar-sides-offset, 2%) !important;
}

.residencesSwipper .swiper-scrollbar {
  background: rgba(255, 255, 255, 0.1) !important;
}

.serviceBoxBg {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
}

.boxGradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.residencesSwipperNotActive {
  border-color: white;
  background-color: rgba(0, 0, 0, 0.16);
  color: white;
}

.residencesSwipperActive {
  border-color: transparent !important;
  background-color: rgba(243, 243, 243, 1);
  color: black;
}

.partnersSwiper .swiper-slide {
  width: auto;
}

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

.amenitiesSwiper .swiper-scrollbar,
.partnersSwiper .swiper-scrollbar,
.servicesSwipper .swiper-scrollbar {
  width: 51% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

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

  .amenitiesSwiper .swiper-scrollbar,
  .partnersSwiper .swiper-scrollbar,
  .servicesSwipper .swiper-scrollbar {
    width: 40% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

.amenitiesSwiper .swiper-slide {
  width: auto;
  border: 1px solid #e2e3dc;
  height: fit-content;
}

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

.amenetiesSliderBox {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.servicesSwipper .swiper-slide {
  height: fit-content;
}
