/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap");

html,
body {
  background: #fefce8;
  font-family: "Literata", serif;
  color: #222;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.session-form a {
  text-decoration: none;
  border-bottom: 1px #444 dotted;
}

.session-form a:hover {
  background: #fefdd0;
}

.flash-message {
  animation: flashMessage 4s forwards;
}

.sidebar ul li a {
  padding: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

blockquote {
  border-left: 4px solid var(--color-brown-300);
  margin-left: 0;
  margin-right: 0;
  padding-left: 1rem;
  color: #555;
  font-style: italic;
}

code,
pre {
  padding: 10px;
  font-family: "Courier New", Courier, monospace;
  margin-bottom: 1.25rem;
}

@keyframes flashMessage {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  8% {
    opacity: 1;
    transform: translateY(0);
  }
  92% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}
