@import 'tailwindcss';

@config '../tailwind.config.ts';

/*
  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);
  }
}

/**
 * CSS for Geograph
 * Generated by Wakamai Fondue - https://wakamaifondue.com
 * by Roel Nieskens/PixelAmbacht - https://pixelambacht.nl
 */

/* Set custom properties for each layout feature */
:root {
  --geograph-ss01: 'ss01' off;
  --geograph-ss02: 'ss02' off;
  --geograph-ss03: 'ss03' off;
  --geograph-tnum: 'tnum' off;
}

/* If class is applied, update custom property and
 apply modern font-variant-* when supported */
.geograph-ss01 {
  --geograph-ss01: 'ss01' on;
}

.geograph-ss02 {
  --geograph-ss02: 'ss02' on;
}

.geograph-ss03 {
  --geograph-ss03: 'ss03' on;
}

.geograph-tnum {
  --geograph-tnum: 'tnum' on;
}

@supports (font-variant-numeric: tabular-nums) {
  .geograph-tnum {
    --geograph-tnum: '____';
    font-variant-numeric: tabular-nums;
  }
}

/* Apply current state of all custom properties
 whenever a class is being applied */
.geograph-ss01,
.geograph-ss02,
.geograph-ss03,
.geograph-tnum {
  font-feature-settings:
    var(--geograph-ss01), var(--geograph-ss02), var(--geograph-ss03),
    var(--geograph-tnum);
}

@theme {
  --animate-wiggle: wiggle 1s ease-in-out infinite;
  --animate-scale-in: scale-in 200ms ease;
  --animate-scale-out: scale-out 150ms ease;
  --animate-fade-in: fade-in 200ms ease;
  --animate-fade-out: fade-out 150ms ease;
  --animate-enter-from-left: enter-from-left 200ms ease;
  --animate-enter-from-right: enter-from-right 200ms ease;
  --animate-enter-from-top: enter-from-top 200ms ease;
  --animate-enter-from-bottom: enter-from-bottom 200ms ease;
  --animate-exit-to-left: exit-to-left 200ms ease;
  --animate-exit-to-right: exit-to-right 200ms ease;
  --animate-exit-to-top: exit-to-top 200ms ease;
  --animate-exit-to-bottom: exit-to-bottom 200ms ease;

  @keyframes wiggle {
    0%,
    100% {
      transform: rotate(-3deg);
    }
    50% {
      transform: rotate(3deg);
    }
  }

  @keyframes enter-from-right {
    from {
      opacity: 0;
      transform: translateX(200px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes enter-from-left {
    from {
      opacity: 0;
      transform: translateX(-200px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes enter-from-bottom {
    from {
      opacity: 0;
      transform: translateY(200px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes enter-from-top {
    from {
      opacity: 0;
      transform: translateY(-200px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes exit-to-right {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(200px);
    }
  }

  @keyframes exit-to-left {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(-200px);
    }
  }

  @keyframes exit-to-top {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateY(200px);
    }
  }

  @keyframes exit-to-bottom {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateY(-200px);
    }
  }

  @keyframes scale-in {
    from {
      opacity: 0;
      transform: rotateX(-10deg) scale(0.9);
    }
    to {
      opacity: 1;
      transform: rotateX(0deg) scale(1);
    }
  }

  @keyframes scale-out {
    from {
      opacity: 1;
      transform: rotateX(0deg) scale(1);
    }
    to {
      opacity: 0;
      transform: rotateX(-10deg) scale(0.95);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes fade-out {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
}
