/* 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(../img/backgroundNew.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* header image */
header img {
  width: 560px;
  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{
  font-family: 'Ranchers';
  font-size: 48px;
}

#showComic, h2, h3, h4, h5 {
  font-family: 'Ranchers';
  font-size: 32px;
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: #EFEBDE;
  outline: 6px solid #000000;
  border: 12px solid #BADE23;
  margin: auto;
  margin-bottom: 16px;
  padding: 0px 12px 12px 0px;
  border-radius: 48px;
  box-shadow: 4px 4px 16px 12px rgba(0, 0, 0, 0.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: #000000;
    }

a:hover {
      color: #5E9900;
    }

/* HEADER */
header #nav {
  background-color: #EFEBDE;
  outline: 6px solid #000000;
  border: 12px solid #BADE23;
  font-size: 32px;
  width: 50%;
  border-radius: 48px;
  box-shadow: 4px 4px 16px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
  padding: 2px;
  margin: 32px;
  word-spacing: 4px;
}

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 30%;
  background-color: #EFEBDE;
  outline: 6px solid #000000;
  border: 12px solid #BADE23;
  margin-bottom: 32px;
  padding: 12px;
  border-radius: 32px;
  box-shadow: 4px 4px 16px 4px rgba(0, 0, 0, 0.4);
  word-spacing: 4px;
}
.comicNav img {
  width: 80px;
  max-width: 98%;
  padding-right: 30px;
}

/* style comic page image */
.comicPage img {
  width: 900px;
  max-width: 98%;
  background-color: #EFEBDE;
  outline: 6px solid #000000;
  border: 12px solid #BADE23;
  margin-bottom: 32px;
  padding: 12px;
  border-radius: 32px;
  box-shadow: 4px 4px 16px 4px rgba(0, 0, 0, 0.4);
}

/* style author notes */
#authorNotes {
  background-color:#EFEBDE;
  outline: 6px solid #000000;
  border: 12px solid #BADE23;
  margin-bottom: 16px;
  padding: 4px;
  width: 960px;
  max-width: 98%;
  border-radius: 24px;
  box-shadow: 4px 4px 16px 4px rgba(0, 0, 0, 0.4);
}

/* 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: #BADE23;
  cursor: pointer;
}

/* FOOTER */
footer {
  margin-top: 32px;
  margin-bottom: 16px;
  float: left;
  width: 100%;
  font-size: 16px;
}

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;