/* 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." */
:root {
--text: #f2f2f2;
--background: #181b1b;
--primary: #40595F;
--secondary: #169746;
--accent: #40c6e3;
--accentrbg: rgb(117, 65, 209);
--outer-radius: 60px;
--padding: 30px;
--inner-radius: calc(var(--outer-radius) - var(--padding));
--padding-comic: 50px;
--inner-radius-comic: calc(var(--outer-radius) - var(--padding-comic));
}


body, div, main, section, article {
  box-sizing: border-box; 
}

/* universal background color */
body {
  background-color: var(--background); 
}

/* header image */
header img {
  width: 900px;
  max-width: 98%;
  padding-top: 20px;
  padding-bottom: 20px;
}

td img  {
  border-radius: 50%;
  width:150px;
  zoom:1;
  outline: 2px solid var(--secondary);
  -webkit-transition: outline-color 0.5s;
  -moz-transition: outline-color 0.5s;
  -o-transition: outline-color 0.5s;
  transition: outline-color 0.5s;
  -webkit-transition: filter 0.5s;
  -moz-transition: filter 0.5s;
  -o-transition: filter 0.5s;
  transition: filter 0.5s;

}

td img:hover  {
  
  outline-color: var(--accent);
  filter: drop-shadow(0px 0px 2px rgba(64, 198, 227,0.5)) drop-shadow(0px 0px 16px rgba(17, 94, 111,0.3));
}

/* 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: "Faculty Glyphic", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: "Space Grotesk", sans-serif;
  font-size: large;
  font-weight: 400;
  color: var(--text);
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: var(--primary);
  
  margin: auto;
  margin-bottom: 10px;
  padding: var(--padding);
  border-radius: var(--outer-radius);
  filter: drop-shadow(1px 1px 8px black)
}

.subBox {
  max-width: 100%;
  background-color: var(--background);
  padding:30px;
  border-radius: var(--inner-radius);
  filter: drop-shadow(1px 1px 4px black)
}

.subPageComic {
  width: 1000px;
  max-width: 98%;
  background-color: var(--primary);
  
  margin: auto;
  margin-bottom: 10px;
  border-radius: var(--outer-radius);
  filter: drop-shadow(1px 1px 8px black)
}



.subPage:not(.archivePage) {
  text-align: left;
}

.subPageComic:not(.archivePage) {
  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-right:20px;
}

/* specific to Characters */
.charTable, .charTable td { 
  width: 100%;
  padding-bottom:15px;
}

/* link colors */
a {
      color: var(--secondary);
      text-decoration: none;
      -webkit-transition: color 0.25s;
      -moz-transition: color 0.25s;
      -o-transition: color 0.25s;
      transition: color 0.25s;
      -webkit-transition: filter 0.5s;
      -moz-transition: filter 0.5s;
      -o-transition: filter 0.5s;
      transition: filter 0.5s;
    }

header a:hover {
      color: var(--accent);
       
       filter: drop-shadow(0px 0px 2px rgba(64, 198, 227,0.5)) drop-shadow(0px 0px 16px rgba(17, 94, 111,0.3)) brightness(1.25);
    }

/* HEADER */
header #nav {

  font-size: 20px;
  padding: 10px;

  margin: auto;
  padding-bottom: 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 {
  margin: auto;
  width: 900px;
  max-width: 100%;
  filter: drop-shadow(1px 1px 4px black);
  border-radius: var(--inner-radius-comic);
}

/* style author notes */
#authorNotes {
  background-color: var(--primary);
  filter: drop-shadow(1px 1px 8px black);
  margin: auto;
  padding: 15px;
  padding-top: 1px;
  width: 900px;
  max-width: 98%;
  border-radius: 10px;
}


/* 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 {
  border-radius: 20%;
  -webkit-transition: background-color 0.25s;
  -moz-transition: background-color 0.25s;
  -o-transition: background-color 0.25s;
  transition: background-color 0.25s;
}

.archiveRow:hover {
  background-color: rgba(64, 198, 227,0.5);
  cursor: pointer;
  border-radius: 20%;
  
}


/* FOOTER */
footer {
  color: #421a1a;
  margin-top: 12px;
  margin-bottom: 15px;
  float: left;
  width: 100%;
  font-size: 12px;
}

footer p {
  margin: auto;
}

footer a {
  color: #c8d32b
}

footer a:hover {
  color: #dabafa
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

