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

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
  }
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }

  .hide-scrollbar::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for IE, Edge and Firefox */
  .hide-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
  .truncate-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* WebKit browsers (Chrome, Safari, Edge) */
  ::-webkit-scrollbar {
    width: 1em;
    height: 1em;
  }

  ::-webkit-scrollbar-track {
    background: var(--color-info-light);
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--color-info-main);
    -webkit-border-radius: 10px !important; /* Rounded corners */
    border: 1px solid transparent;
  }

  html {
    scroll-behavior: smooth;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-success-contrastText) !important;
  }

  /* Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--color-info-main) var(--color-info-light);
  }
}

@layer components {
  .max-w-page {
    max-width: 1366px;
    @apply mx-auto px-2 md:px-3 lg:px-4 2xl:px-0;
  }
  .max-w-header {
    max-width: 1440px;
    @apply mx-auto pl-[29px] pr-2 2xl:px-0 3xl:translate-x-[120px];
  }

  .custom-dashed-border {
    --dash-color: currentColor; /* Fallback to the element's text color */
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23D0D5DDFF' stroke-width='1' stroke-dasharray='10%2c 10' stroke-dashoffset='27' stroke-linecap='square'/%3e%3c/svg%3e");
    padding: 20px;
  }

  .custom-tab-profile-bg {
    @apply bg-info-light rounded-lg px-[19px] pt-[42px]  pb-[100px] flex flex-col gap-[24px];
  }

  .password-placeholder::placeholder::before {
    content: "••••••••"; /* Use as many dots as needed */
    font-size: 1rem; /* Set the font size to make the dots visible */
    letter-spacing: 0.1rem; /* Optional: Adjust letter spacing if needed */
  }
}

.font-crimson_pro {
  font-family: var(--font-crimson-pro);
}

.font-inter {
  font-family: var(--font-inter);
}

@layer base {
}

.RewardsRefferalTopHeroSection {
  background-image: url("/images/rewardsPageImages/bgImageReferralFrontPage.jpg");
  background-size: contain;
  background-blend-mode: multiply;
}

.RewardsReferralHistoryUserIconBg {
  /*background-image: url("/images/rewardsPageImages/RewardsReferralHistoryUserIconBg.png");*/
  background-size: cover;
  background-blend-mode: multiply;
}

.bgDestinationBank {
  background-image: url("/images/rewardsPageImages/destinationBankBg.png");
  background-size: cover;
  background-blend-mode: overlay;
}

/*custom scrollbar styles for neater scrollbar for modals*/
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.custom-scrollbar {
  padding-right: 5px;
  overflow-y: auto;
}

.glaze {
  animation-name: glazeMotion;
  animation-duration: 3000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes glazeMotion {
  0% {
    left: -100%;
  }
  50% {
    left: -100%;
  }
  100% {
    left: 110%;
  }
}

#googleBtnContainer > div {
  transform: scale(1.07); /* 1.05–1.2 looks good */
  transform-origin: center;
}

@media (min-width: 1400px) {
  .hamburgerPositionLargeScreen {
    position: fixed;
    left: 1.5rem;
  }
}

@media (min-width: 1700px) {
  .logoPositionLargeScreen {
    position: absolute;
    left: 3rem;
  }
}

/*for stopping the zooming action on mobile*/
@media (max-width: 800px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
}
