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

/*

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

*/

/*h1 {
  @apply text-2xl;
}*/

h2 {
  @apply text-xl;
}
/*
 * 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.
 *


 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');

*{
font-family: 'Noto Sans TC', sans-serif;
}

html{
background-color:white;
}

.max-w-8xl{
max-width: 87rem;
}

.text-red-nejm{
color: #cc181e;
}

.bg-red-nejm{
background-color: #cc181e;
}

#flash-message {
  animation: fade 3s forwards;
}

@keyframes  fade {
  25% {
    opacity: 1;
  }
  74% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

body {
  display: grid;
  grid-template-columns: auto 0px;
}

.top {
  --offset: 50px; 
  position: sticky;
  bottom: 20px;
  margin-right:10px;
  place-self: end;
  margin-top: calc(100vh + var(--offset));
}
