/* 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 {
  --bg-color: #103140;
  --text-color: #00633d;
  --text-glow-color: #7b8383;
  --link-color: #109e3d;
  --link-glow-color: #00633d;
  --special-color: #e8492c;
  --special-glow-color: #894ad3;
}

@font-face {
font-family: 'goose';
font-weight: normal;
font-style: normal;
src: url("/files/fonts/Rabbid.otf");
}

body, div, main, section, article {
  box-sizing: border-box; 
}

/* universal background color */
body {
  background-color: #103140; 
  text-shadow: 2px 2px 2px #000000;
  color: var(--text-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover {
  color: var(--link-color);
  text-decoration: underline;
  animation-name: glowlink;
  animation-duration: 4500ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
@keyframes glowlink {
0% {
  color: var(--link-color);
  }
50% {
  color: var(--link-glow-color);
  }
100% {
  color: var(--link-color);
  }
}

/* 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: goose;
  color: #00633d;
}

/* 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(--bg-color);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3), inset 0 2px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 1px rgba(0, 0, 0, 0.4);
  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%;
}

/* HEADER */
header #nav {
  background-color: var(--bg-color);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3), inset 0 2px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 1px rgba(0, 0, 0, 0.4);
  font-size: 20px;
  width: 98%;
  margin: auto;
  padding: 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%;
}

/* style author notes */
#authorNotes {
  background-color: var(--bg-color);
  margin: auto;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3), inset 0 2px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 1px rgba(0, 0, 0, 0.4);
  width: 900px;
  max-width: 98%;
  padding: 10px;
}

/* ARCHIVE PAGE */

.archivePage {
  padding: 10px;
}

/* style table in which archive is displayed */
.archiveTable {
  width: 90%;
  border-collapse:collapse;
}

/* style archive table cells */
.archiveTable td {
  padding: 3px;
  vertical-align: center;
  color: #00633d;
}

/* 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(--link-color);
  cursor: pointer;
}

/* FOOTER */
footer {
  color: #00633d;
  margin-top: 12px;
  float: left;
  width: 100%;
  font-size: 12px;
}

footer p {
  margin: auto;
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

