/* 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." */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Macondo+Swash+Caps&display=swap');
* {
  box-sizing: border-box;
}
.macondo-swash-caps-regular {
  font-family: "Macondo Swash Caps", cursive;
  font-weight: 400;
  font-style: normal;
}


:root {
  --dusty-pink: #d49bae;
  --bright-red: #ed205a;
  --lightest-pink: #ffeef1;
  --dark-brown: #241c19;

  --body-bg: var(--dusty-pink);
  --body-text: var(--dark-brown);

  --nav-btn-bg: var(--dusty-pink);
  --nav-btn-color: var(--dark-brown);

  --nav-btn-bg-hover: var(--lightest-pink);
  --nav-btn-color-hover: var(--bright-red);
}


body, div, main, section, article {
  box-sizing: border-box; 
}

/* universal background color */
body {
  background-color: var(--body-bg); 
  color: var(--body-text);
}

.writeHeader {
  width: 100%;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 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: "Macondo Swash Caps", cursive;
}

/* 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: 75%;
  background-color: var(--lightest-pink);
  margin: auto;
  padding: 1rem;
  margin-bottom: 10px;
  border-radius: 3px;
}

@media screen and (max-width: 992px) {
  .subPage {
    width: 98%;
  }
}

.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(--dark-brown);
    }

a:hover {
      color: var(--bright-red);
    }

/* HEADER */
header #nav {
  background-color: var(--lightest-pink);
  
  width: 98%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  border-radius: 3px;
  padding: 0.2rem;
  margin-bottom: 1rem;
}

header #nav a {
  padding: 1rem 0.5rem;
  text-decoration: none;
}

header #nav a:hover {
  background-color: white;
  border-radius: 5px;

}

/* HOMEPAGE */
#showComic {
  height: 100vh;
  width: 100%;
}

.comicPage {
  height: 93%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* align-items: center; */
}

.comicPage a {
  display: flex;
justify-content: center;
}
.comicPage img {
  /* max-height: 100%;
  max-width: 100vh; */
  height: 100%;
  width: 100%;
  object-fit: scale-down;
}

.comicNav {
  height: 7%;
  display: flex;
  justify-content: center;
  padding-block: 0.2rem;
}
.comicNav a {
  display: flex;
  justify-content: center;
  width: fit-content;
}
.comicNav img {
  max-height: 100%;
}


/* #showComic {
  margin-block: 1rem;
  max-height: 100vh;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  row-gap: 1rem;
}

.writePageClickable { 
  flex-grow: 1;
  width: 100%;
}
.comicPage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}
#showComic .comicPage img {
  max-height: 100%;
  max-width: 100vw;
}

.comicNav {
  flex-shrink: 1;
} */

/* style nav button images */
/* .comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}
.comicNav img {
  width: 50px;
  max-width: 98%;
  padding-right: 30px;
} */



/* style author notes */
#authorNotes {
  background-color:var(--lightest-pink);
  border-radius: 3px;
  margin: auto;
  padding: 0.7rem;
  width: 900px;
  max-width: 98%;
}

#authorNotes h2 {
  margin-block: 0.5rem;
}

/* 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(--bright-red);
  cursor: pointer;
}

/* FOOTER */
footer {
  color: var(--dark-brown);
  margin-top: 12px;
  margin-bottom: 15px;
  width: 100%;
  font-size: 12px;
  
  display: flex;
  flex-direction: row;
  justify-content: center;
}

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;
}

