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

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;

    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;

    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;

    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;

    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;

    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;

    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 10% 3.9%;

    --radius: 0.5rem;
  }

  .dark {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;

    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;

    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;

    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;

    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;

    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;

    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 10% 3.9%;

    --radius: 0.5rem;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
  }
}

/*--------------------- 
        Scrollbar css 
----------------------------------*/
*::-webkit-scrollbar {
  width: 5px;
  height: 4px;
  position: absolute;
  /* display: none; */
  scrollbar-gutter: stable both-edges;
}

*::-webkit-scrollbar-track {
  background-color: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgb(182, 182, 182);
  /* border-radius: 10px; */
  /* border: 1px solid #fff; */
}

/*--------------------- 
        Scrollbar css 
----------------------------------*/


.h_web {
  height: -webkit-fill-available;
}

.w_web {
  width: -webkit-fill-available;
}

.banner_overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.nav-options div a:after {
  position: absolute;
  width: 0;
  left: 0;
  bottom: -1rem;
  transition: 0.3s ease-in;
}

.nav-options diz a:hover::after {
  width: 100%;
}

.background_click {
  z-index: 9998;
}

.mobile_header_menu {
  z-index: 9999;
}

@media screen and (max-width: 1024px) {
  .nav-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100vh;
    padding: 4rem 0rem;
    position: absolute;
    left: 0;
    top: -100vh;
    opacity: 0;
    transition: all 1s ease;
    flex-direction: column;
    background: #fff;
  }

  .nav-options.active {
    top: 0;
    opacity: 1;
    z-index: 9999;
  }


  .nav-options div a {
    padding: 8px 20px;
    width: 100%;
    justify-content: center;
  }

  .nav-options div {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ======================== Loader CSS
============================================= */

.loader {
  position: relative;
  width: 60px;
  height: 60px;
  background: #000;
  transform: rotateX(65deg) rotate(45deg);
  /* // remove bellows command for perspective change */
  /* //transform: perspective(200px) rotateX(65deg) rotate(45deg); */
  color: #666;
  animation: layers1 1s linear infinite alternate;
}

.loader:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #666;
  animation: layerTr 1s linear infinite alternate;
}

@keyframes layers1 {
  0% {
    box-shadow: 0px 0px 0 0px;
  }

  90%,
  100% {
    box-shadow: 20px 20px 0 -4px;
  }
}

@keyframes layerTr {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-25px, -25px) scale(1);
  }
}

/* ======================== Loader CSS
============================================= */

.box-shadow {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.box-shadow:hover {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}