
:root {
  --background: #122857;
  --navy: #1D234E;
  --purple: #6940AB;
  --lightpurple: #B687FF;
  --paleblue: #3266AD;
}

body, div, main, section, article {
  box-sizing: border-box;
}

/* universal background color */
body {
  background-color: var(--background);
  background-image: url("../img/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
  color: #ffffff;
}
cj,
/* header image */
header img {
  height: auto;
  max-width: 100%;
}

/* clearfix hack to prevent image overflow. check out the W3Schools page on it. 
  content: "";c
  clear: both;
  display: table;
} 
*/

/*FONTS*/


/* header font */
#showComic, header, h1, h2, h3, h4, h5 {
  font-family: "Nunito", Tahoma, Verdana, sans-serif;
  font-weight: 900;
  text-align: center;
  font-style: normal;
  color: #ffffff;
}

/* body font */
.subPage p, #authorNotes, .archiveTable {
  font-family: "Nunito", Tahoma, Verdana, sans-serif;
  font-weight: 400;
  font-style: normal;
}


/* STYLING FOR SUBPAGES (about, characters, etc) */

/*scaling images*/

.responsive {
  max-width: 100%;
  height: auto;
}

/*general*/

.subPage {
  border-radius: 10px;
  background: var(--navy);
  padding: 20px 50px;
  margin: auto;
  height: auto;
  width: 900px;
  max-width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: left;
}


/* 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;
}

.thumbnail {
    border-radius: 8px;
    width: 150px;
    transition-duration: 0.4s;
}

.thumbnail:hover {
    opacity: 0.5;
}

/* specific to Characters */
.charTable, .charTable td { 
  width: 100%;
}

/* link colors */
a {
      color: var(--lightpurple);
      text-decoration: none;
    }

a:hover {
      color: var(--purple);
    }

/* button */

.button {
  border-radius: 25px;
  padding: 10px;
  width: 150px;
  margin: 10px 5px 10px 5px;
  color: var(--purple);
  font-size: 20px;
  text-transform: uppercase;
  box-shadow: 0px 7px var(--purple);
  display: inline-block;
  background-color: white;
  text-align: center;
  text-decoration: none;
  transition-duration: 0.4s;
  cursor: pointer;
}

.button:hover {
  background-color: var(--purple);
  color: white;
  box-shadow: 0px 7px var(--navy);
}


/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.comicNav img {
  max-width: 80%;
  height: auto;
  padding: 15px;
  transition-duration: 0.4s;
}

.comicNav img:hover {
  opacity: 0.5;
}

/* style comic page image */
.comicPage {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* style comic page image */
.comicPage img {
  
}

@media screen and (max-width: 800px) {

  .subpage {
    width: 100%; /* The width is 100%, when the viewport is 800px or smaller */
    padding: 0px;
  }
  
  .subpage p{
    padding: 20px 50px;
  }
  
  header #nav {
    width: 100%; /* The width is 100%, when the viewport is 800px or smaller */
  }
}

@media screen and (max-width: 1500px) {
  .comicPage img {
    max-width: 100%;
  }
}

/* style author notes */
#authorNotes {
  background: var(--navy);
  padding: 0px;
  margin: auto;
  height: auto;
  width: 600px;
  max-width: 100%;
  margin-bottom: 20px;
  text-align: left;
}


/* FOOTER */
footer {
  color: var(--paleblue);
  margin-top: 50px;
  margin-bottom: 15px;
  width: auto;
}

footer a {
  color: var(--purple);
}

footer a:hover {
  color: var(--lightpurple);
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

