@import 'tailwindcss';

@custom-variant dark (&:is(.dark *));

@theme {
  --breakpoint-*: initial;
  --breakpoint-sm: 640px;
  --breakpoint-md: 840px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  --font-*: initial;
  --font-iran_Bold: iran_Bold;
  --font-iran_Light: iran_Light;

  --text-clamp: clamp(0.7rem, 1vw, 1rem);
  --text-clamp_intro: clamp(1.5rem, 2vw, 2rem);
  --text-clamp_des: clamp(1rem, 1.2vw, 2rem);
  --text-clamp_super_des: clamp(0.9rem, 1vw, 2rem);

  --color-green_snap: #21aa58;
  --color-text_nav: #414141;
  --color-bg_gray: #f2f5f8;
  --color-text_bg: #404040;
  --color-text_muted: #eee;
  --color-bg_muted: rgba(255, 255, 255, 0.05);
  --color-bg_nav_res: rgba(0, 0, 0, 0.5);
  --color-bg_dark1: #242424;
  --color-bg_dark2: #000;
}

/*
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentcolor);
  }
}

@layer base {
    @font-face {
      font-family: 'iran_Bold';
      src: url(fonts/IRANSansXFaNum-Bold.ttf) format('truetype');
    }
    @font-face {
        font-family: 'iran_Light';
        src: url(fonts/IRANSansXFaNum-Light.ttf) format('truetype');
      }  
}