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

@layer components {
  /* flash messages */
  .flashes {
    @apply relative;
  }

  .flash {
    @apply absolute top-5 left-1/2 -translate-x-1/2 text-center text-sm px-4 py-2 font-medium rounded-lg z-[999];

    &.notice,
    &.success {
      @apply bg-green-200 text-green-900;
    }

    &.error,
    &.alert {
      @apply bg-red-300 text-red-900;
    }
  }

  /* animation keyframes */
  @keyframes fade-in-and-out {
    0%,
    100% {
      opacity: 0;
    }
    25%,
    75% {
      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.
 *


 */
