/* ----- */
/* Imports */
/* ----- */
@import url(fonts.css);
@import url(color-modes.css);
/* ----- */
/* Root parameters that other things point at when they need to*/
/* ----- */
:where(:root) {
  font-size: 6mm;
  hyphens: auto;
  font-family: bord, Georgia, "Times New Roman", Times, serif;
  margin: 0;
  padding: 0;
  /* high contrast color of the sky (fallback) */
  --color-sky-base: white;
  --color-sky-pale: white;
  --color-sky-deep: white;
  /* fallback high-contrast */
  --color-main-fill: white;
  --color-main-border: black;
  --color-main-ink: black;
  --color-main-faded: darkgray;
  --color-main-erased: gray;
  --color-main-accent: #414141;
}
/* ----- */
/* Organization of items for the desktop viewport */
/* ----- */
@media (min-width: 1010px) {
  /* Container is a box with smaller boxes tetris'd inside! */
  .container {
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    width: 100%;
  }
  /* Navbar is on the right */
  nav {
    text-align: right;
    margin: 0;
    padding: 0;
  }
  /* Header should span the whole page */
  header {
    grid-column: span 12;
  }
  /* Shift super jumbo size titles to be even MORE biggerer */
  h1 {
    font-size: 3rem;
  }
  /* Articles and sections inside the body are next to the nav */
  article,
  section {
    grid-column: 3 / span 8;
    grid-row: 2;
  }
  /* Give the cute card a drop shadow */
  .card {
    border: solid 0.1rem var(--color-main-border);
    border-radius: 5mm;
    background-color: var(--color-main-fill);
    color: var(--color-main-ink);
    box-shadow: var(--color-main-border) 0.1rem 0.1rem;
  }
}
/* ----- */
/* Organization of items for tablets and smaller desktop viewports */
/* ----- */
@media (min-width: 567px) and (max-width: 1009px) {
  .container {
    grid-template-columns: repeat(12, [col-start] 1fr);
    width: 100%;
    margin: 0;
    padding: 0;
  }
  nav {
    grid-column: col-start / 2;
    grid-row: 2;
    text-align: right;
  }
  article,
  section {
    grid-column: 3 / span 8;
    grid-row: 2;
    margin: 0.5rem 1rem;
  }
}
/* ----- */
/* Design choices regardless of the size of viewport */
/* ----- */
/* Put the navbar as a stack to the left of the main stuff and
     underneath the header. */
/* ---Can I make it sticky?--- */
nav {
  display: block;
  font-family: thinly, cursive, sans-serif;
  grid-column: col-start / span 2;
  grid-row: 2;
}
/* All list items in a navbar have a little box around it */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
/* What links look like in the Navbar.
   Since there won't be anything other than links in the navbar, there 
   is no need to specify what non-link elements look like. */
nav li a {
  display: block;
  color: var(--color-main-accent);
  padding: 0.7rem;
  background-color: var(--color-main-fill);
}
/* Make the background of the button with a link in it change colors
   When hovered over. */
nav li a:hover {
  background-color: var(--color-main-accent);
  color: var(--color-sky-base);
  font-style: italic;
}
/* Mode change button on the other side */
button {
  display: block;
  color: var(--color-main-accent);
  background-color: var(--color-main-fill);
  font-family: thinly, cursive, sans-serif;
  grid-column: col-start 11 / span 2;
  grid-row: 2;
  height: fit-content;
  padding: 1rem;
  place-self: auto;
}
/* A cute little piece of paper or blackboard */
.card {
  border: solid 0.1rem var(--color-main-border);
  border-radius: 5mm;
  background-color: var(--color-main-fill);
  color: var(--color-main-ink);
  padding: 0.7rem;
  margin: 0 0 0.5rem 0;
}
/* Headings sizes, styles, and colors */
/* Super extra jumbo titles */
h1 {
  font-family: juice, sans-serif;
  color: var(--color-main-accent);
  text-align: center;
  font-size: 2.2rem;
  margin: 1rem auto 0;
}
/* Main titles but slightly smaller than the super extra jumbo ones */
h2 {
  font-family: juice, sans-serif;
  color: var(--color-main-faded);
  text-align: center;
  font-size: 2rem;
  margin: 1rem auto 0;
}
/* Handwritten titles, chunkier than the other handwriting fonts */
h3 {
  font-family: wolf, sans-serif;
  color: var(--color-main-faded);
  text-align: center;
  font-size: 1.8rem;
  font-weight: bolder;
  margin: 1rem auto 0;
}
/* Skinny, handwritten subtitles */
h4 {
  font-family: thinly, cursive, sans-serif;
  color: var(--color-main-faded);
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  padding: 0;
}
/* Smaller, less visible subtitles, for gags */
h5 {
  font-family: thinly, cursive, sans-serif;
  color: var(--color-main-erased);
  text-align: center;
  font-size: 1.4rem;
  font-style: italic;
  margin: 0;
  padding: 0;
}
/* Barely-bigger basic serif text for extreme shouting */
h6 {
  font-family: bord, Georgia, serif;
  color: var(--color-main-accent);
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
}
/* Paragraphs get a leading indent */
p {
  text-indent: 2em;
}
/* Footer is a lone wolf flush at the bottom for Style Points */
footer {
  grid-column: span 12;
  grid-row: 3;
  background-color: var(--color-main-erased);
  color: var(--color-main-accent);
  padding: 1rem;
  margin: 0;
}
/* Asides and parentheticals that look like hastily written notes */
.sillyNote {
  font-family: thinly, cursive, sans-serif;
  color: var(--color-main-faded);
}
/* What do links look like outside of nav? */
a {
  color: var(--color-main-accent);
}
a:visited {
  color: var(--color-main-erased);
}
/* Decorative color for special text */
em,
strong,
sup,
sub {
  color: var(--color-main-accent);
}
/* Cited media titles are red and italic */
cite {
  color: var(--color-main-accent);
  font-style: italic;
}
/* Looks like I crossed out a handwritten note */
del {
  font-family: thinly, cursive, sans-serif;
  color: var(--color-main-erased);
}

/* Marginless and Padding-less presentation of 
   a big long comic strip for mobile viewports */
.webtoon {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0;
  padding: 0;
  align-content: center;
}

/* Comic covers arranged like a comic shelf. When you hover
   over one, it lifts up like you're picking it up off a shelf! */
.comic {
  margin: auto;
  width: 300px;
  padding: 1rem;
  align-content: center;
}
.comic img {
  width: 300px;
  cursor: pointer;
}
.comic img:hover {
  translate: 0 -10%;
  transition: all 0.1s;
}

/* Trying to make the background look nice */
body {
  background: linear-gradient(
    var(--color-sky-deep),
    var(--color-sky-base),
    var(--color-sky-pale)
  );
  height: 100%;
  margin: 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
