/* 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: #23233d;
  color: #fbe52d;
  text-shadow: #fbe52d 0px 0px 16px;
  /*background: linear-gradient(180deg, #000000 10%, #fafafa 100%);*/
  background-image: url(../img/Bg_Stars.png);
}

/* header image */
header img {
  width: 500px;
  max-width: 98%;
}

.fadeStars img {
  position:absolute;
  z-index:-1;
  display:block;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  opacity:1;
  animation: fade 5s linear;
  animation-iteration-count:infinite;
}

@keyframes fade {
  0%,100% {opacity:0}
  50% {opacity:1}
}

/* 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: Hoefler Text, Baskerville Old Face, Garamond, Times New Roman, serif;
  font-weight:lighter;
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: Hoefler Text, Baskerville Old Face, Garamond, Times New Roman, serif;
  font-size: large;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: #ffffff;
  outline: 3px solid #000000;
  margin: auto;
  margin-bottom: 10px;
  padding: 0px 12px 12px;
}

.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: #fbe52d;
  text-shadow: #fbe52d 0px 0px 16px;
    }

a:hover {
  color: #fff;
  text-shadow: #fff 0px 0px 16px;
    }

/* HEADER */
header #nav {
  color: #fbe52d;
  font-size: 20px;
  text-shadow: #fbe52d 0px 0px 16px;
  margin: 10px;
}

/* 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%;
  box-shadow: 5px 5px #00000087
}

/* style author notes */
#authorNotes {
  background-color:#ffffff6b;
  border-radius: 15px;
  box-shadow: 0 0 15px #ffffff6b;
  color: #fbe52d;
  font-size: 20px;
  text-shadow: #fbe52d 0px 0px 16px;
  margin: auto;
  padding: 3px;
  padding-top: 0px;
  width: 900px;
  max-width: 98%;
}

#authorNotes input[type='checkbox'] {
  display: none;
}

.toggleLabel {
  display: block;

  font-weight: bold;
  font-size:30px;

  padding: 1rem;

  cursor: pointer;

  border-radius: 7px;
  transition: all 0.25s ease-out;
}

.toggleLabel:hover {
  color: #7C5A0B;
}

.writeAuthorNotes {
  max-height: 0px;
  overflow: hidden;

  transition: max-height .25s ease-in-out;
}

.toggle:checked + .toggleLabel + .writeAuthorNotes {
  max-height: 100vh;
}

.toggle:checked + .toggleLabel::before {
  transform: rotate(90deg) translateX(-3px);
}

.toggle:checked + .toggleLabel {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}



/* 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: #376bda;
  cursor: pointer;
}

/* FOOTER */
footer {
  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: #868d26
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

