/* 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 {
  --dark: #473845;
  --gray: #887e83;
  --light: #b4acac;
  --white: #d4ceca;
}

body,
div,
main,
section,
article {
  box-sizing: border-box;
}

/* universal background color */
body {
  background-color: var(--white);
}

/* header image */
header img {
  width: 700px;
  max-width: 98%;
  padding: 15px;
}

/* 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 {
  color: var(--dark);
  font-family: "Gamja Flower", serif;
}

/* body font */
.subPage p,
footer,
#authorNotes,
.archiveTable {
  color: var(--dark);
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 800px;
  max-width: 98%;
  background-color: var(--white);
  border: 14px solid transparent;
  border-image: url("../img/deco/border-horiz-1.png") 20 stretch;
  margin: auto;
  margin-bottom: 10px;
  padding: 0 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%;
}

h1 {
  color: var(--dark);
  font-size: 46px;
  font-family: "Zeyada", sans-serif;
  margin: 10px 40px;
}

h2 {
  font-family: "Zeyada", sans-serif;
  color: var(--dark);
  font-size: 36px;
  line-height: 0;
}

h3 {
  font-family: "Gamja Flower", sans-serif;
  color: var(--dark);
  font-size: 24px;
  line-height: 18px;
}

p {
  font-size: 16px;
  font-family: "Mali", sans-serif;
  text-indent: 15px;
  color: var(--dark);
}

body {
  font-size: 18px;
  font-family: "Mali", sans-serif;
  color: var(--dark);
}

/* Link styles */
a {
  color: var(--gray);
  text-decoration: none;
}

a:hover {
  color: var(--light);
}

/* Selection styles */
::selection {
  background: var(--light);
  color: var(--white);
}

/* p::first-letter {
  font-family: "Princess Sofia";
  font-size: 22px;
  vertical-align: bottom;
} */

/* HEADER */
header #nav {
  
  background-color: var(--white);
  text-align: center;
  border: 10px solid transparent;
  border-image: url("../img/deco/border-horiz-2.png") 20 stretch;
  color: var(--dark);
  font-size: 30px;
  width: 30%;
  margin: auto;
}

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}
.comicNav img {
  padding: 20px;
}

/* style comic page image */
.comicPage img {
  width: 1200px;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  background-color: var(--white);
  border: 14px solid transparent;
  border-image: url("../img/deco/border1.png") 14 stretch;
  margin: auto;
  padding: 3px;
  padding-top: 0;
  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: 100px;
}
.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(--light);
  cursor: pointer;
}

/* FOOTER */
footer {
  color: var(--dark);
  margin-top: 12px;
  margin-bottom: 15px;
  margin-left: 25%;
  margin-right: 25%;
  bottom: 5px;
  text-align: center;
  width: 50%;
  font-size: 12px;
}

footer p {
  margin: auto;
}

footer a {
  color: var(--gray);
}

footer a:hover {
  color: var(--light);
}

/* take away margins from the edges of the screen */
html,
body {
  margin: 0;
}
