/* FONTS */
@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500&display=swap");

@font-face {
  font-family: creatorCredits;
  src: url("../fonts/creatorcredits-bb.regular.otf");
}

* {
  transition: all 200ms ease;
}
/* includes padding and border in the total width and height of elements */
body,
div,
main,
section,
article {
  box-sizing: border-box;
}

/* universal background color */
body {
  background-color: #050505;
  background-image: linear-gradient(#2e0014, #3d0f23);
}

/* header image */

header {
  background-color: #7c212d;
  text-align: center;
}

header img {
  width: 500px;
  max-width: 98%;
}

/* clearfix hack to prevent image overflow. check out the W3Schools page on it. */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/*FONTS*/

/* header font */
h1,
h2,
h3,
h4,
h5 {
  font-family: "creatorCredits", sans-serif;
}

#showComic,
header,
nav {
  font-family: "Zen Maru Gothic", sans-serif;
}

/* body font */
.subPage p,
p,
ul,
li,
footer,
#authorNotes,
.archiveTable {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: large;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: #ffffff;
  outline: 3px solid #000000;
  margin: auto;
  margin-bottom: 10px;
  padding: 0px 12px 12px;
}

.subPage:not(.archivePage) {
  text-align: center;
}

/* for pictures displayed to the left */
.leftPic {
  clear: left;
  float: right;
  margin-left: 20px;
}

/* for pictures displayed to the left */
.rightPic {
  clear: right;
  float: left;
  margin-left: 20px;
}

/* specific to Characters */
.charTable,
.charTable td {
  width: 100%;
}

/* link colors */
a {
  color: #000000;
}

a:hover {
  color: #da5437;
}

/*=============================================================================================================================================*/
/* Nav bar of main page */

.topnav {
  /* navigation menu */
  overflow: hidden;
  background-color: #050505;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.topnav #myLinks {
  /* to hide the links inside the nav menu */
  display: none;
}

.topnav a {
  color: #faffff;
  padding: 14px 16px;
  font-size: 20px;
  display: block;
}

.topnav a.icon {
  /* hamburger icon styling */
  background: #1a0000;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

.topnav a:hover {
  /* Add a background color on mouse-over */
  background-color: #50a387;
  color: #151e3d;
}

@media only screen and (min-width: 768px) {
  /* Tablets */

  #logo {
    /* hide logo on not-mobile devices */
    display: none;
  }

  .topnav {
    /* center the nav elements */
    text-align: center;
  }

  .topnav #myLinks {
    display: inline-block;
  }

  .topnav a {
    display: inline-block;
  }

  .topnav a.icon {
    /* hide hamburger icon on not-mobile devices */
    display: none;
  }
}

/*=============================================================================================================================================*/

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}
.comicNav img {
  max-width: 98%;
  padding-right: 30px;
}

/* style comic page image */
.comicPage img {
  width: 900px;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  display: none; /*to hide the author notes*/
  background-color: #ffffff;
  outline: 3px solid #000000;
  margin: auto;
  padding: 3px;
  padding-top: 0px;
  width: 900px;
  max-width: 98%;
}

/* ARCHIVE PAGE */

/* style table in which archive is displayed */
.archiveTable {
  width: 90%;
  border-collapse: collapse;
}

/* style archive table cells */
.archiveTable td {
  padding: 3px;
  vertical-align: center;
}

/* style table cell in which page title is displayed */
.archiveCellTitle:not(.leftAlignTableText) {
  max-width: 300px;
  text-align: center;
}

.archiveCellDate {
  text-align: right;
  min-width: 120px;
}

.archiveCellNum {
  text-align: center;
  min-width: 30px;
}

/* style the thumbnails on the archive page */
.archiveCellThumb {
  width: 500px;
  max-width: 60px;
}
.archiveCellThumb img {
  max-width: 100%;
}

/* for left aligning the text in a table cell */
.leftAlignTableText td {
  text-align: left;
}

/* highlight a table row and make pointer into hand when moused over */
.archiveRow:hover {
  background-color: #da5437;
  cursor: pointer;
}

/* FOOTER */
footer {
  background-color: #1f0005;
  color: #c9b3b3;
  border-top: 2px solid #f0f0f0;
  padding-top: 2vh;
  float: left;
  width: 100%;
  font-size: 12px;
  text-align: center;
}

footer p {
  margin: auto;
  font-size: 14px;
}

footer a {
  color: #25b27c;
}

footer a:hover {
  color: #25757c;
}

.copyright {
  padding: 10px;
}

/* take away margins from the edges of the screen */
html,
body {
  margin: 0;
}
