/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
  HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */


body, div, main, section, article {
  box-sizing: border-box;
}

/* universal background color */
body {
  background-color: #212121;
  color: #ababab;
}

/* header image */
header img {
  width: 600px;
  max-width: 98%;
}

header {
background-image: url("../img/bg-particles.png");
background-color: #121212;
}
/* clearfix hack to prevent image overflow. check out the W3Schools page on it. */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/*FONTS*/

/* judson-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Judson';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/judson-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* judson-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Judson';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/judson-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* judson-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Judson';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/judson-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* header font */
#showComic, header, h1, h2, h3, h4, h5 {
  font-family: 'Judson';
  font-weight: 700;
  }

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: 'Judson', sans-serif;
  font-size: large;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */
/*general*/

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: #aaaaaa;
  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: #dcdcdc;
      text-decoration: none;
    }

a:hover {
      color: #F4391B;
      text-decoration: none;
    }

/* HEADER */
header #nav {
  background-color: #212121;
  border-top: #666666 2px dotted;
  border-bottom: #666666 2px dotted;
  padding-top:10px;
  padding-bottom:10px;
  color: #dcdcdc;
  font-size:25px;
  width: 100%;
  font-weight: 700;
  margin: auto;

}

/* 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;
}

.comicNav img:hover {
  filter: invert(91%) sepia(100%) saturate(5597%) hue-rotate(359deg) brightness(106%) contrast(106%);
  opacity: 0.6;
}

/* style comic page image */
.comicPage {
  margin-top:20px;
}


.comicPage img {
  width: 750px;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  color: #ababab;
  font-size: 20px;
  line-height: 1.5;
  border-top: #666666 2px dotted;
  margin: auto;
  margin-bottom: 20px;
  padding: 8px;
  padding-top: 0px;
  width: 750px;
  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 {

color: #ababab;
  background: #121212;
  background-image: url("../img/bg-particles.png");
  padding-top: 25px;
  padding-bottom: 25px;
  float: center;
  width: 100%;
  line-height: 1.5;
  font-size: 18px;
}

footer p {
  margin: auto;
}

footer a {
color: #aaaaaa;
}

footer a:hover {

}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}
