@media (prefers-color-scheme: dark) {
:root {
--bg: #2a0d01;
--bg2: #111;
--t: #fff;
--a: #fff;
--bord: #AAA;
--reverse-text: #fff;
--accent: #edac66;
--hover: #fff;
--hover2: #333;
}
}
@media (prefers-color-scheme: light) {
:root {
--bg: #9a9a9a;
--bg2: #fff;
--t: #000;
--a: #fff;
--bord: #000;
--reverse-text: #fff;
--accent: #da7e1c;
--hover: #2c2c2c;
--hover2: #cdcccc;
}
}
@font-face {
font-family: 'Haunt';
src: url(../css/Haunt.ttf);
}
::selection {
background: var(--accent);
color: var(--reverse-text);
}
body, div, main, section, article {
  box-sizing: border-box; 
}

/* universal background color */
body {
  background-color: var(--bg); 
  background-image: url(../img/bg.png)
}
header {
text-align:center;
}
/* header image */
header img {
  width: 500px;
  max-width: 98%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 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: 'Haunt', 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: var(--bg2);
  outline: 3px solid var(--bord);
  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: var(--accent);
}

a:hover {
      color: var(--hover);
    }

/* HEADER */
header #nav {
  background-color: var(--bg2);
  outline: 3px solid var(--bord);
  font-size: 20px;
  width: 98%;
  margin: auto;
  padding-bottom: 4px;
}

/* 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: var(--bg2);
  outline: 3px solid var(--bord);
  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: var(--hover2);
  cursor: pointer;
}

/* FOOTER */
footer {
  color: var(--t);
  margin-top: 12px;
  margin-bottom: 15px;
  margin-right: auto;
  margin-left: auto;
  width: 80%;
  font-size: 12px;
  text-align: center;
  background: var(--bg2);
  outline: 3px solid var(--bord);
  float:none;
}

footer p {
  margin: auto;
}

footer a {
color: var(--accent)
}

footer a:hover {
  color: var(--hover)
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
  color: var(--t);
}