@import url("https://fonts.googleapis.com/css2?family=Forum&display=swap");

:root {
  --text: #30001a;
  --bg: #ffdcdc;
  --body: #fff8f9;
  --footer: #f9dede;
  --link: #ac284e;
  --link-hov: #ff004c;
  --link-ani: 0.15s ease-in;
  --border: #dc1b7f;
}

/* Pink Rose Flower - https://www.cursors-4u.com/cursor/pink-rose-flower */
* {
  cursor:
    url("https://cdn.cursors-4u.net/previews/pink-rose-flower-e61b4b6e-32.webp") 32 32,
    auto !important;
}
/* End www.Cursors-4U.com Code */

hr {
  color: var(--border);
  border-style: dashed;
  border-width: 0.5px;
}

body {
  min-height: 100%;
}

body,
div,
main,
section,
article {
  box-sizing: border-box;
}

/* universal background color */
body {
  background-color: var(--body);
  background-image: url(../img/wallpaper.gif);
}

/* header image */
header img {
  width: 300px;
  max-width: 98%;
  display: block;
  margin: 0 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: "Forum", serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 10px;
}

/* body font */
.subPage p,
footer,
#authorNotes,
.archiveTable {
  font-family: "Forum", serif;
  font-size: large;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  max-width: 98%;
  background-color: var(--body);
  border-color: var(--border);
  border-width: 1px;
  border-style: dashed;
  margin: auto;
  margin-bottom: 10px;
  padding: 10px;
}

.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;
  width: 200px
}

/* specific to Characters */
.charTable,
.charTable td {
  width: 100%;
}

/* link colors */
a {
  color: var(--link);
  transition: var(--link-ani);
}

a:hover {
  color: var(--link-hov);
}

/* HEADER */
header #nav {
  background-color: var(--body);
  border-color: var(--border);
  border-width: 1px;
  border-style: dashed;
  font-size: 1.15em;
  width: 98%;
  margin: 0 auto 10px;
  padding: 15px 0;
  text-align: center;
}

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.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(--body);
  margin: 20px auto;
  padding: 10px 15px;
  max-width: 98%;
  border-style: dashed;
}

/* ARCHIVE PAGE */

/* style table in which archive is displayed */
.archiveTable {
  width: 100%;
  border-collapse: collapse;
}

/* style archive table cells */
.archiveTable td {
  padding: 10px;
  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;
}

.archiveRow {
  transition: var(--link-ani);
}

/* highlight a table row and make pointer into hand when moused over */
.archiveRow:hover {
  background-color: var(--bg);
  cursor: pointer;
}

/* FOOTER */
footer {
  color: var(--text);
  background-color: var(--footer);
  width: 100%;
  font-size: 12px;
  padding: 5px 0;
  text-align: center;
}

footer p {
  margin: auto;
}

footer a {
  color: var(--link);
}

footer a:hover {
  color: var(--link-hov);
}

/* take away margins from the edges of the screen */
html,
body {
  margin: 0;
}

textarea {
  margin: 5px 0;
  display: block;
  width: 200px;
  height: 200px;
  font-size: medium;
  overflow: auto;
  text-wrap: wrap;
  line-break: normal;
  padding: 5px;
  background-color: var(--footer);
  font-family: monospace;
  border-color: var(--border);
  border-width: 1px;
  border-style: dashed;
}
