* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --nav-font: "IM Fell English SC", serif;
}

html {
  font-size: 16px;
  font-family: var(--nav-font);
}

body {
  background-color: black;
  background-image: url("https://www.noumenoncomic.com/img/bg.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: white;
}

.button {
  background-color: #E63007;
  border: none;
  color: white;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: none;
}
.button3 
{
  border-radius: 8px;
  }

p {
  text-shadow: 1px 1px black;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header img:first-child {
  max-inline-size: 100%;
  margin-top: 1rem;
  }

main {
  min-inline-size: min-content;
}

.comic-page {
  container-type: inline-size;
}

.comic-page:not(:last-child) {
  margin-bottom: 1em;
}

.comic-page > img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.comic-page > h2 {
  text-align: center;
  font-family: "Vend Sans", sans-serif;
  font-size: 7cqi;
  color: #E63007;
}

nav {
  position: sticky;
  top: 0;
  padding: 0.5em 0;
  overflow-y: hidden;
  & a {
    text-decoration: none;
  }
}

#nav-sections {
  display: none;
  & a {
    font-size: 1rem;
    font-family: var(--nav-font);
	color: #fff;
	}
}

.menu {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-evenly;
}

.menu:has(input:checked) ~ #nav-sections {
  display: flex;
}
.menu:has(input:checked) {
  & label::before {
    content: "CLOSE ";
  }
}

nav:has(input:checked) {
  width: 100%;
}

#nav-toggle {
  appearance: none;
  width: 0px;
  height: 0px;
  display: none;
}

label[for="nav-toggle"] {
  cursor: pointer;
  font-family: var(--nav-font);
  &::before {
    content: "OPEN ";
  }
}

#comic-nav {
  display: flex;
  justify-content: space-around;
  font-family: var(--nav-font);
  container-type: inline-size;
  & a {
    font-size: 4cqi;
  }
  
}

article {
  font-family: "Vend Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 1rem;
  font-style: normal;
  & p {
    margin-inline: 1.5rem;
    margin-block: 1.5rem;
    line-height: 1.2rem;
  }
}

article:empty {
  display: none;
}

footer {
  margin-block-start: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  font-family: "Vend Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 0.5rem;
  font-style: normal;
}

/* widescreen overrides ------------------------------------*/

@media (width > 45em) {

  body {
    margin: 1em;
  }

  .outer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-inline: auto;
    max-inline-size: 60ch;
    line-height: 1rem;
  }

  header {
    grid-column-end: span 2;
  }


  nav {
    margin-top: 1em;
    grid-row-start: 2;
    grid-row-end: span 3;
    position: relative;
  }

  #nav-sections {
    display: flex;
    align-items: flex-start;
  }

  .menu {
    display: none;
  }
  
  main {
    grid-row-end: span 2;
  }

  #notes {
    grid-column-start: 2;
  }

  footer {
    grid-column-end: span 2
  }
}