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

/*

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

*/
@keyframes appear-then-fade {
  0%,100% { opacity: 0; }
  5%,60%  { opacity: 1; }
}

.flash {
  display: flex;
  inset-block-start: 1rem;
  inset-inline-start: 50%;
  justify-content: center;
  position: fixed;
  text-align: center;
  z-index: 6;
  transform: translate(-50%);

  [data-turbo-preview] & {
    display: none;
  }
}

.flash__inner {
  align-items: center;
  animation: appear-then-fade 5s 300ms both;
  background: black;
  border-radius: 2em;
  border: 2px solid #34d399;
  color: white;
  display: flex;
  justify-content: center;
  margin: auto;
  padding: 0.5rem 1rem;
}
/*
 * 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.
 *


 */
