/* 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-image: url('../bg1.png');
  background-repeat: repeat;
  background-size: contain;
 
}

/* header image */
header img {
  height: 100px;
  width: 750px;
  margin: auto;
  display: flex;
  justify-content: center;
  background-image: url('../header2.png');
  background-size: contain;
}

#header {
  height: 100px;
  max-height: 100px;
  width: 750px;
  margin: auto;
  display: flex;
  justify-content: center;
  background-image: url('../header2.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  outline: 3px outset #000000;
}

p {
  font-family: 'Grenze';
  }

/* 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: 'New Rocker';
  color:#9a5006;
  text-shadow: -1px 0 #722e09, 0 1px #722e0900, 1px 0 #722e0900, 0 -1px #722e09;
}

#showComic {
  background-color: #fff8ef;
  background-image: url('../paper.png');
  width: 750px;
  outline: 3px outset #000000;
  z-index: -10;
  border: 5px none solid none solid transparent;
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-image-source: url('../border.png');
  border-image-repeat: round;  
  border-image-slice: 30;
  border-image-width: 10px;
  /*filter: sepia(25%);*/
}

/* body font */
.subPage footer, #authorNotes, .archiveTable {
  font-family: 'New Rocker';
  font-size: large;
}

.subPage p {
  font-family: 'Grenze';
  color:#000000;
  text-shadow: -0.1px 0 0px #3f1b08;
}

#showComic p {
  font-family: 'Grenze';
  color:#4d220a;
  text-shadow: -0.1px 0 10px #3f1b08;
}

.charTable  {
  background-color: #eee6db;
  background-image: url('../paper.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 30px;
  border: none;
  outline: none;
  background-color: #eee6db;
  background-image: url('../paper.png');
  background-repeat: no-repeat;
  color: #9a5006;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  outline: 3px outset #000000;
}

#myBtn:hover {
  background-color: #555;
}

#myBtn2 {
  display: block;
  position: fixed;
  bottom: 20px;
  left: 30px;
  z-index: 99;
  font-size: 20px;
  border: none;
  outline: none;
  background-color: #eee6db;
  background-image: url('../paper.png');
  background-repeat: no-repeat;
  color: #9a5006;
  padding: 5px;
  border-radius: 4px;
  outline: 3px outset #000000;
 text-align: center;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/
.subPage {
  width: 750px;
  max-width: 98%;
  background-color: #fff8ef;
  outline: 3px outset #000000;
  margin: auto;
  margin-bottom: 10px;
  /*padding: 0px 12px 12px;*/
  background-image: url('../paper.png');
  border: 5px none solid none solid transparent;
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-image-source: url('../border.png');
  border-image-repeat: round;  
  border-image-slice: 30;
  border-image-width: 10px;  
  /*filter: sepia(25%);*/
}

.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: #9a5006;
    }

a:hover {
      color: #722e09;
    }

/* HEADER */
header #nav {
  background-color: #fff8ef;
  outline: 3px outset #000000;
  font-size: 20px;
  width: 750px;
  margin: auto;
  margin-bottom: 10px;
  text-align: center;
  background-image: url('../paper.png');
  filter: sepia(25%);
}

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}
.comicNav img {
  width: 35px;
  max-width: 100%;
  padding-right: 30px;
}

/* style comic page image */
.comicPage img {
  width: 700px;
  border: #fff8ef 20px;
  outline: 2px outset #000000;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  background-color:#fff8ef;
  outline: 2px outset #000000;
  margin: auto;
  padding: 3px;
  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;
    max-height: 60px;
    overflow: hidden;
}
.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: #fff3f3;
  margin-top: 12px;
  margin-bottom: 15px;
  width: 100%;
  font-size: 12px;
  text-align: center;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

#footer {
  color: #fff3f3;
  margin-top: 12px;
  margin-bottom: 15px;
  width: 100%;
  font-size: 12px;
  text-align: center;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}


footer p {
  margin: auto;
}

footer a {
  color: #c8d32b
}

footer a:hover {
  color: #868d26
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

