/* 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/background.png);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center bottom;
  background-color: #8DE2FF; 
}

/* header image */
header img {
  width: 500px;
  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, h2, h3, h4, h5 {
  font-family: "Averia Libre", system-ui;
  font-weight: 400;
  font-style: normal;
  padding: 15px 30px 0px 30px;
}

.homeheader {
	font-family: "Averia Libre", system-ui;
	font-weith: 400;
	font-style: normal;
	text-shadow: 0px 2px 5px #9cff2b;
	margin-bottom: 30px;
}

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

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

/*general*/

p {
	padding: 30px 30px 0px 30px;
	line-height: 1.75 ;
}

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: #ffffff;
  outline: 5px solid #9CFF2B;
  border-radius:10px;
  margin: auto;
  margin-top: 50px;
  margin-bottom: 10px;
  padding: 15px 12px 30px;
}

.subPage:not(.archivePage) {
  text-align: center;
}

/* for pictures displayed to the left */
.leftPic {
  clear: left;
  float:right;
  margin-left:20px;
  margin-right:20px;
}

/* for pictures displayed to the right */
.rightPic {
  clear: right;
  float:left;
  margin-left:20px;
  margin-right:20px;
}

.homeblock {
	margin-top: 10%;
}
.homeimage {
	width: 60%;
	min-width: 320px;
}

.homebutton {
	box-shadow: 0px 10px 18px -13px #00455e;
	background:linear-gradient(0.52turn, #d5ff7a 5%, #9cff2b 100%);
	background-color:#d5ff7a;
	border-radius:10px;
	border:2px solid #ffffff;
	display:inline-block;
	cursor:pointer;
	color:#000000;
	font-family: "Averia Libre", system-ui;
	font-size:26px;
	font-weight:bold;
	padding:5px 31px;
	margin-left:25px;
	margin-right:25px;
	margin-bottom: 15px;
	text-decoration:none;
	transition: 0.1s;
}
.homebutton:hover {
	background:linear-gradient(0.52turn, #9cff2b 5%, #d5ff7a 100%);
	background-color:#9cff2b;
	color:#ffffff;
}
.homebutton:active {
	position:relative;
	top:1px;
}

/* specific to Characters */
.charTable, .charTable td { 
  width: 100%;
}

/* link colors */
a {
      color: #000000;
	  text-decoration: none;
    }

a:hover {
      color: #24B1FF;
    }

/* HEADER */
header #nav {
  background-color: #9CFF2B;
  /*outline: 5px solid #00C35D;*/
  font-size: 26px;
  width: 100%;
  margin-top: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
}

/* 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:#ffffff;
  outline: 5px solid #9CFF2B;
  border-radius:10px;
  margin: auto;
  padding: 3px;
  padding-top: 0px;
  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: #9CFF2B;
  cursor: pointer;
}

/* FOOTER */
footer {
  color: #421a1a;
  margin-top: 1px;
  margin-bottom: 1px;
  float: left;
  width: 100%;
  font-size: 12px;
}

footer p {
  margin: 1px;
}

footer a {
  color: #c8d32b
}

footer a:hover {
  color: #868d26
}

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

