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

@import url('https://rsms.me/inter/inter.css');

:root {
  font-family: 'Inter', system-ui, sans-serif;
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: 'Inter var', system-ui, sans-serif;
  }
}

.font-light {
  font-variation-settings: 'wght' 300;
}

.font-medium {
  font-variation-settings: 'wght' 500;
}

/* Smooth transitions */
a,
button {
  @apply transition-all duration-200;
}

/* Hover effects */
a:hover,
button:hover {
  @apply opacity-80;
}

/* Add some custom utility classes */
@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

/* Webkit browsers (Chrome, Safari, newer versions of Opera) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: white;
    border-left: 2px solid black;
}

::-webkit-scrollbar-thumb {
    background: black;
    border: 2px solid black;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: black white;
}

/* For Edge and other browsers that support standard scrollbar styling */
* {
    scrollbar-width: thin;
}

*::-webkit-scrollbar-corner {
    background: white;
}

/* Optional: Style for when the scrollbar corner meets both scrollbars */
*::-webkit-scrollbar-corner {
    background: white;
    border-left: 2px solid black;
    border-top: 2px solid black;
}