@import url('https://fonts.googleapis.com/css?family=Encode+Sans+Condensed');
@import "view-transition.css";

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

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

@layer components {
    .form-label {
        @apply block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300;
    }

    .form-input {
        @apply bg-gray-50 text-gray-900 text-sm rounded-lg block w-full p-2.5 dark:bg-gray-700 dark:text-gray-300 dark:placeholder-gray-400;
    }

    .form-input:valid {
        @apply border border-green-500 dark:border-green-600;
    }

    .form-input:invalid {
        @apply border border-red-500 dark:border-red-600;
    }

    .form-input:focus {
        @apply outline-none ring-0;
    }

    .form-input:focus:valid {
        @apply border-double border-2 border-green-600 dark:border-green-400;
    }

    .form-input:focus:invalid {
        @apply border-double border-2 border-red-600 dark:border-red-400;
    }
}

@media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) {
        animation: 120ms ease-out both fade-out;
    }

    ::view-transition-new(root) {
        animation: 160ms ease-out both fade-in;
    }

    ::view-transition-group(root) {
        animation-duration: 160ms;
    }
}

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

@keyframes fade-in {
    from { opacity: 0.98; }
    to   { opacity: 1; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
