@font-face {
  font-family: 'Zilla Slab';
  font-weight: 500;
  src: url(../fonts/ZillaSlab-Regular.ttf);
}
@font-face {
  font-family: 'Zilla Slab';
  font-weight: 600;
  src: url(../fonts/ZillaSlab-SemiBold.ttf);
}
@font-face {
  font-family: 'Zilla Slab';
  font-weight: 700;
  src: url(../fonts/ZillaSlab-Bold.ttf);
}

@font-face {
  font-family: 'IM Fell DW Pica';
  src: url(../fonts/FePIrm2.ttf);
  font-style: normal;
}
@font-face {
  font-family: 'IM Fell DW Pica';
  src: url(../fonts/FePIit2.ttf);
  font-style: italic;
}
@font-face {
  font-family: 'IM Fell DW Pica';
  src: url(../fonts/FePIsc2.ttf);
  font-weight: bold;
}

@font-face {
  font-family: 'Alfa Slab';
  src: url(../fonts/AlfaSlabOne-Regular.ttf);
}

body, div, main, section, article {
  box-sizing: border-box; 
}

/* universal background color */
body {
  background-color: #000;
}

/* header image */
header img {
  width: 800px;
  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 */
#showComic, header, h1, h2, h3, h4, h5 {
  font-family: 'Zilla Slab', serif;
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: 'IM Fell DW Pica', sans-serif;
  font-size: large;
}

h1 {
  font-family: 'Alfa Slab';
  font-weight: 400;
  text-transform: uppercase;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 800px;
  max-width: 98%;
  background-color: #ffffff;
  margin: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  
  border: 20px solid transparent;
  border-image: url(../img/anborder.png) 50 stretch;
}

.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: #ff0000;
      text-decoration: none;
    }

a:hover {
      color: #ff0000;
    }

/* HEADER */
header {
  background: url(../img/headerbg.jpg);
  background-size: contain;
}

header #nav {
  background-color: #000;
  font-size: 1.3rem;
  font-weight: 600;
  width: 98%;
  margin: auto;
}

header #nav a {
  color: #fff;
}

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}
.comicNav img {
  width: 80px;
  max-width: 98%;
  padding-right: 30px;
}

/* style comic page image */
.comicPage img {
  width: 1000px;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  background-color:#ffffff;
  color: #000;
  font-family: 'IM Fell DW Pica';
  font-size: 1rem;
  margin: auto;
  padding: 0rem 1rem 0.5rem 1rem;
  width: 960px;
  max-width: 98%;
  border: 20px solid transparent;
  border-image: url(../img/anborder.png) 50 stretch;
}
#authorNotes h2 {
  margin-bottom: 0;
}
#authorNotes img {
  max-width: 100%;
}
.anDate {
  font-size: 80%;
  margin-top: 0;
  font-family: 'IM Fell DW Pica';
  font-style: italic;
  font-weight: 500;
}
hr {
  background: url(../img/hr.png) no-repeat top center;
  background-size: contain;
  height: 10px;
  border: 0;
}


/* ARCHIVE PAGE */

.archivePage {
  color:#000;
  
  border: 20px solid transparent;
  border-image: url(../img/anborder.png) 50 stretch;
}

/* 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 {
  color: #7f726a;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 15px;
  float: left;
  width: 100%;
  font-size: 0.8rem;
}

footer p {
  margin: auto;
}

footer a {
  color: #fcbeb2
}

footer a:hover {
  color: #ff0000;
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

