/* 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/bg1.png');
    background-repeat: no-repeat;
    background-size: cover;
  background-color: #02172C; 
}

/* header image */
header img {
  text-align: center;
  width: 750px;
  max-width: 98%;
  margin: 20px auto;

}

/* 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: 'Fraunces', cursive;
  color: #fff;
}

/* body font */
.subPage p, .subPage2 p, footer, .flex-item, #authorNotes, .archiveTable {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  color: #fff;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 750px;
  max-width: 98%;
  background-color: transparent;
  outline: 0px solid #fff;
  margin: auto;
  margin-top: 0px;
  margin-bottom: 10px;
  padding: 10px 20px 20px;
}

.subPage2 {
  width: 950px;
  max-width: 98%;
  background-color: transparent;
  outline: 0px solid #fff;
  margin: auto;
  margin-top: -25px;
  margin-bottom: 0px;
  padding: 10px 20px 20px;
}

.flex-container {
  /* We first create a flex layout context */
  display: flex;
  width: 950px;
  
  /* Then we define the flow direction 
     and if we allow the items to wrap 
   * Remember this is the same as:
   * flex-direction: row;
   * flex-wrap: wrap;
   */
  flex-flow: row wrap;
  
  /* Then we define how is distributed the remaining space */
  justify-content: space-around;
  
  padding: 0;
  margin: 0;
  list-style: none;
}

.flex-item {
  background: #02172C;
  padding: 5px;
  width: 300px;
  height: 550px;
  margin-top: 10px;
  line-height: 16px;
  color: white;
  font-weight: normal;
  font-size: 12px;
  text-align: center;
}





.subPage:not(.archivePage) {
  text-align: center;
}

.center {
 
  margin-left: auto;
  margin-right: auto;
  width: 95%;
}

/* for pictures displayed to the left */
.leftPic {
  clear: left;
  float:right;
  margin-left:25px;
}

/* for pictures displayed to the left */
.rightPic {
  clear: right;
  float:left;
  margin-left:25px;
}

/* specific to Characters */
.charTable, .charTable td { 
  width: 100%;
}

/* link colors */
a {
      color: #ffffff;
      text-decoration: none;
    }

a:hover {
      color: #F1AD06;
      text-decoration: none;
    }

/* HEADER */
header #nav {
  color: #ffffff;
  position: relative;
  bottom: 50px;
  background-color: transparent;
  outline: none;
  border-top: solid thin #FFFFFF;
  font-size: 20px;
  width: 50%;
  margin: auto;
  padding: 20px;
}

/* 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: 900px;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  background-color:#02172C;
  outline: 1px solid #F1AD06;
  text-align: center;
  color: #fff;
  margin: auto;
  padding: 12px;
  padding-top: 12px;
  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: #F1AD06;
  cursor: default;
}

/* FOOTER */
footer {
  color: #fff;
  margin-top: 12px;
  margin-bottom: 15px;
  float: none;
  width: 100%;
  font-size: 12px;
}

footer p {
  margin: auto;
}

footer a {
  color: #ffffff
}

footer a:hover {
  color: #F1AD06
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

