/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
#root, #__next {
  isolation: isolate;
}
/*
  End Custom CSS Reset
*/ 

body {
  background-color: white;
  color: black;
  font-family: Verdana;
}

main {
  margin: 10px;
  /* so menu doesn't come up for mobile users */
  margin-bottom: 5em;
}

/* nav */
nav {
  border-bottom: 1px solid #FA2A55;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  padding: 0;
}

nav li a:hover {
  background-color: #ffadbd;
  color: white;
}

nav li a {
  padding: 0 10px;
  min-width: 100px;

  display: inline-block;
  text-align: center;

  font-size: larger;
  color: #FA2A55;
  text-decoration-line: none;
}

/* comic list page */
.comic-date {
  margin-left: 0.25em;
  color: gray;
  font-size: x-small;
}

/* comic page */
.comic {
  max-width: 500px;
}

.comic p {
  margin-bottom: 0.5em;
}

.comic__date {
  color: gray;
  font-size: x-small;
  width: fit-content;
  margin: 0 0.85em 0.25em auto;
}

.comic__description {
  padding: 0.25em 1em 0 1em;
}

.comic__tags {
  margin-block-start: 0;
  padding-inline-start: 0;
  margin: 0 0.5em 0.75em auto;
  display: block;
  width: fit-content;
}
.comic__tags li {
  display: inline-block;
  margin: 0.1em 0.1em;
}
.comic__tags li a {
  color: gray;
  text-decoration-line: none;
  border-radius: 10px;
  padding: 5px;
  box-sizing: border-box;
  font-size: small;
}
.comic__tags li a:hover {
  background: rgb(219, 230, 233);
}

.comic__nav {
  border-top: 1px solid #FA2A55;
  display: flex;
  justify-content: space-between;
}
.comic__nav__random {
  border: none;
  background-color: transparent;
  cursor: pointer;
  color: #FA2A55;
}
.comic__nav__random:hover {
  color: #b11930;
}
.comic__nav a {
  text-decoration-line: none;
  color: #FA2A55;
}
.comic__nav a:hover {
  color: #b11930;
}
