/* 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('BlinkBackground.png');
  background-size: 600px 600px;
  /*background-color: #3c376f;*/
}

/* 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: 'Anta', sans-serif;
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: 'Open Sans', sans-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: #3dc6c2;
      text-decoration: none;
    }

a:hover {
      color: #f06597;
    }

/* HEADER */
header #nav {
  background-color: #000033;
  font-size: 28px;
  width: 98%;
  padding: 6px;
  margin: auto;
}

/* HOMEPAGE */

/* style the header on every nav page */
.comicHeader {
  text-align: center;
  margin: 0 auto 20px auto;
}

.comicHeader img {
  display: block;
  margin: 0 auto;
}

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  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: 3px solid #e061a4;
  margin: auto;
  padding: 1.25rem;
  padding-top: 0.2rem;
  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: #DA5437;
  cursor: pointer;
}

/* Comment Section */
/* ================================
   RETRO COMMENT SECTION (BCH)
   ================================ */

#comment-section {
  width: 900px;
  max-width: 98%;
  margin: 3rem auto;
  padding: 1.25rem;
  background: #fffdf8; /* warm off-white */
  border: 3px solid #3dc6c2;
  box-shadow: 5px 5px 0 #000033;
}

/* Title matches comic headers */
#comment-section h2 {
  font-family: "Anta", sans-serif;
  font-size: 1.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #000;
  color: #000;
  letter-spacing: 1px;
}

/* Comment list container */
#comment-list {
  margin-bottom: 1rem;
}

/* Individual comments */
.comment {
  background: #f2f2f2;
  border: 2px solid #000;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 3px 3px 0 #000033;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Comment input box */
#comment-input {
  width: 100%;
  min-height: 90px;
  padding: 0.6rem;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #000033;
  resize: vertical;
  background: #ffffff;
}

/* Submit button */
#comment-submit {
  margin-top: 0.6rem;
  padding: 0.4rem 1.2rem;
  font-family: "Anta", sans-serif;
  font-size: 1.0rem;
  border: 2px solid #000;
  background: #e061a4; /* soft comic yellow */
  cursor: pointer;
  box-shadow: 3px 3px 0 #000033;
}

/* Button hover */
#comment-submit:hover {
  background: #3dc6c2;
}

/* Button active (pressed) */
#comment-submit:active {
  box-shadow: 1px 1px 0 #000033;
  transform: translate(2px, 2px);
}

/* Mobile tweaks */
@media (max-width: 600px) {
  #comment-section {
    margin: 2rem 1rem 3rem;
  }
}

/* FOOTER */
footer {
  color: #3dc6c2;
  margin-top: 12px;
  margin-bottom: 15px;
  text-align: center;
  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;
}

