/* 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." */

@import url("https://fonts.googleapis.com/css2?family=Gidole&family=Rubik+Dirt&display=swap");

:root {
  --box-bg-color: rgba(213, 158, 219, 0.6);
}

body,
div,
main,
section,
article {
  box-sizing: border-box;
}

i {
  font-style: italic;
}

/* universal background color */
body {
  background: #202347;
  background: linear-gradient(
    163deg,
    rgba(32, 35, 71, 1) 0%,
    rgba(120, 40, 117, 1) 100%
  );
}

header {
  background-color: #05102e;
  text-align: center;
}

/* header image */
header img {
  width: 500px;
  max-width: 98%;
  margin: 2vh 0;
}

/* 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: "Rubik Dirt", system-ui;
  font-weight: 400;
  font-style: normal;
  color: #1e052e;
}

/* body font */
.subPage p,
footer,
#authorNotes,
.archiveTable,
.character li {
  font-family: "Gidole", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #220218;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: var(--box-bg-color);
  /* outline: 3px solid #000000; */
  margin: auto;
  margin-bottom: 10px;
  padding: 0px 12px 12px;
}

.subPage:not(.archivePage) {
  text-align: center;
}

/* for pictures displayed to the right */
.rightPic {
  clear: left;
  float: right;
  margin-left: 20px;
}

/* for pictures displayed to the left */
.leftPic {
  clear: right;
  float: left;
  margin-left: 20px;
}

/* specific to Characters */
.charTable,
.charTable td {
  width: 100%;
}

/* link colors */
a {
  color: #fafafa;
  text-decoration: none;
}

a:hover {
  color: #ff7253;
}

/* CHARACTER PAGE */

ul {
  list-style-type: none;
  /* margin: 0; */
}

.character {
  background-color: var(--box-bg-color);
  min-height: 420px;
}

.character img {
  margin: 20px 25px 20px 25px;
  max-width: 300px;
  /* border: 3px solid #220218; */
}

.character h2 {
  padding-top: 15px;
}

.character p {
  text-align: left;
  margin: 10px 25px;
}

.character ul {
  text-align: left;
}

.chara-text {
  padding-bottom: 25px;
}

.social {
  margin: 2vh 2vw;
  padding-top: 5vh;
}

.social i {
  padding: 15px;
  font-size: 30px;
  color: #790373;
}

.social i:hover {
  color: #ff7253;
}

/* HEADER */
header #nav {
  background-color: #6b4b8d;
  /* outline: 3px solid #000000; */
  font-size: 20px;
  /* width: 98%; */
  margin: auto;
}

/* 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%;
}

.writePageTitle h1 {
  color: #ffbe6a;
}

/* style author notes */
#authorNotes {
  background-color: var(--box-bg-color);
  /* outline: 3px solid #0f2043; */
  margin: auto;
  padding: 1vh 1vw;
  /* padding-top: 0; */
  width: 900px;
  max-width: 98%;
}

#authorNotes h2 {
  margin-top: 0;
}

/* 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;
}

.archiveImgs img {
  width: 180px;
}

/* FOOTER */
footer {
  background-color: #202347;
  color: #afb5eb;
  margin-top: 12px;
  float: left;
  width: 100%;
  font-size: 12px;
  padding: 2vh 0;
  text-align: center;
}

footer p {
  margin: 2px 0;
}

footer a {
  color: #e98514;
}

footer a:hover {
  color: #e64616;
}

footer img {
  width: 100px;
  margin-bottom: 2vh;
}

footer img:hover {
  opacity: 0.6;
}

/* take away margins from the edges of the screen */
html,
body {
  margin: 0;
}
