/* 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; 
}

/* non-repeating background */
/* body {
/*   background-image: url("../images/background1.png");
/*   background-color: #545250;
/*   background-attachment: fixed;
/*   background-position: center top;
/*   background-repeat: no-repeat;
/*   background-size: 100%;
/*   color: #1a1918;
/* }

/* repeating background */
body {
  background-image: url("../images/background4c.png");
  background-color: #545250;
  background-attachment: fixed;
  color: #1a1918;
}

/* repeating background, top only */
/*   body {
/*     background-image: url("../images/background4.png");
/*     background-color: #545250;
/*     background-attachment: fixed;
/*     background-position: center top;
/*     background-repeat: repeat-x;
/*     color: #1a1918;
/*   }

/* header image */
.logo {
  width: 900px;
  max-width: 98%;
  padding: 10px 0px 10px 0px;
}

/* 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: 'Proza Libre', sans-serif;
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: 'Open Sans', sans-serif;
  font-size: large;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 900px;
  max-width: 98%;
  background-color: #b3aeaa;
  outline: 0px solid #000000;
  color: #4d4946;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 5px 30px 10px 30px;
}

.subPage:not(.archivePage) {
  text-align: justify;
}

/* for pictures displayed to the left */
.leftPic {
  clear: left;
  float: right;
  padding: 0px 0px 10px 20px;
}

/* for pictures displayed to the right */
.rightPic {
  clear: right;
  float: left;
  padding: 0px 20px 10px 0px;
}

/* specific to Characters */
.charTable, .charTable td {
  text-align: left; 
  vertical-align: top;
}

.charTable img {
  padding: 0px 30px 10px 0px;
  width: 200px;
  height: auto;
}

.biobox {
  background-color: #e5e0da;
  padding: 10px 20px 10px 20px;
  margin-bottom: 30px;
}

/* link colors */
a {
  color: #19191a;
}

a:hover {
  color: #ffffff;
}

/* HEADER */
header #headerbuttons {
  background-color: #434240;
  outline: 0px solid #000000;
  color: #1a1918;
  font-size: 20px;
  width: 900px;
  max-width: 98%;
  margin: auto;
  padding-top: 5px;
  padding-bottom: 5px;
}

header img {
  padding: 0px 20px 0px 20px;
}

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}
.comicNav img {
  width: 50px;
  max-width: 98%;
  padding-left: 20px;
  padding-right: 20px;
}

/* style comic page image */
.comicPage img {
  width: 900px;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  background-color: #434240;
  outline: 0px solid #000000;
  color: #1a1918;
  margin: auto;
  padding: 5px 20px 5px 20px;
  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: #9d9fa1;
  cursor: pointer;
}

/* FOOTER */
footer {
  color: #1a1918;
  margin-top: 12px;
  margin-bottom: 15px;
  float: left;
  width: 100%;
  font-size: 12px;
}

footer p {
  margin: auto;
}

footer a {
  color: #e6ecf2;
}

footer a:hover {
  color: #ffffff;
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

.switchimage {
  position: relative;
  display: inline-block;
}

.switchimage .topimage {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
}

.switchimage:hover .topimage {
  display: inline;
}