/* Font rendering consistency across browsers */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ensure consistent font weight rendering across browsers */
.font-hand {
  font-weight: 400;
  /* Default weight */
}

/* Override Tailwind's font-bold for .font-hand to use semibold instead */
.font-hand.font-bold {
  font-weight: 600 !important;
  /* Use semibold instead of bold for consistency */
}

/* Custom scrollbar styles - only visible when content overflows */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Scroll fade effect - creates gradient masks at top and bottom */
.scroll-fade-container {
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%);
}

@keyframes dropIn {
  0% {
    opacity: 0;
    transform: scale(2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-drop-in {
  animation: dropIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

/* 3D Card Flip Styles - Firefox compatible */
.perspective-1000 {
  perspective: 1000px;
}

.preserve-3d {
  transform-style: preserve-3d;
}

.backface-hidden {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}