/* 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." */

body,
div,
main,
section,
article {
    box-sizing: border-box;
}



/* universal background color */
body {
    background-color: #000000;
    background-image: url("../img/bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* header image */
header img {
    width: 500px;
    max-width: 100%;
}
/* 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: "Helvetica", cursive;
    color: #8d7e52;
}
/* stuff i copied from chatgpt gulp */
.container {
    display: inline-block;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center; /* vertically align image + text */
    justify-content: center;
}
.full-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* centers content horizontally */
    padding: 20px;
    max-width: 600px; /* or any value you like */
    margin: 0 auto; /* this centers the container itself */
    width: 100%;
    box-sizing: border-box;
}
.containerbottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* <--- horizontally center the text inside */
    flex: 1; /* take remaining space */
}
.page-wrapper {
    display: block; /* default, but ensures vertical stacking */
    width: 100%;
}
.wrapper {
    display: flex;
    align-items: center; /* vertical alignment of children */
    font-family: verdana, arial, sans-serif, helvetica;
    font-size: 10pt;
    color: #000000;
}

.photo {
    width: 203px; /* or whatever size you need */
    height: auto;
}

/* character names */
.uName {
    color: #8d7e52;
    font-family: "Franklin Gothic Book";
}
/* 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: #ffffff00;
    outline: 5px solid #ffffff00;
    margin: auto;
    margin-bottom: 10px;
    padding: 0px 12px 12px;
    font-family: Helvetica;
}

.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: #4f5a32;
}

a:hover {
    color: #da5437;
    cursor: url("../img/cursorhover.png"), auto;
}

/* HEADER */
header {
    margin: 1em auto;
}
header #nav {
    font-size: 20px;
    font-weight: bold;
    margin: auto;
}
.headerRow {
    display: flex;
    flex-direction: horizontal;
    justify-content: center;
    padding: 0.5em 0;
    align-self: center;
    color: #4f5a32;
}
/* HOMEPAGE */

/* style nav button images */
.comicNav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 10px 0px;
    width: 900px;
    margin: auto;
}

.comicNavPadding {
    flex-grow: 1;
}

.comicNav img {
    width: 5em;
    max-width: 98%;
    margin: auto 15px;
}

/* style comic page image */
.comicPage img {
    width: 900px;
    max-width: 98%;
    margin: 0.2em auto;
    display: block;
}

/* style author notes */
#authorNotes {
    background-color: #ffffff;
    outline: 3px solid #000000;
    margin: auto;
    padding: 3px;
    padding-top: 0px;
    width: 900px;
    max-width: 98%;
}

/* ARCHIVE PAGE */

/* style table in which archive is displayed */
.archiveTable {
    width: 100%;
    border-collapse: collapse;
}

/* style archive table cells */
.archiveTable td {
    padding: 3px;
    vertical-align: center;
    color: #8d7e52;
}

/* style table cell in which page title is displayed */
.archiveCellTitle {
    max-width: 300px;
    font-weight: bold;
}

.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%;
}

/* highlight a table row and make pointer into hand when moused over */
.ChapterLink:hover {
    color: #da5437;
    cursor: url("../img/cursorhover.png"), auto;
}
.ChapterLink:hover td {
    color: #da5437;
}

/* FOOTER */
footer {
    color: white;
    margin: 1em auto 3em;
    font-size: 12px;
}

.footerRow {
    display: flex;
    flex-direction: horizontal;
    justify-content: center;
    padding: 0.5em 0;
    align-self: center;
}

footer p {
    margin: auto;
}

footer a {
    color: #c8d32b;
}

footer a:hover {
    color: #868d26;
}

.ChapterLink {
    width: 10em;
    color: #8d7e52;
    font-weight: bold;
    text-align: center;
    margin: 0.5em auto;
}

.ChapterContents {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.ChapterTitle {
    text-align: center;
}

.ChapterDate {
    text-align: center;
    min-width: 120px;
    color: #8d7e52;
}

/* Content warning pop-up */
#Popup{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgb(200, 200, 200);
    opacity: 0.8;
}

#ContentWarning {
    position: fixed;
    left: 50%;
    top: 50%;
    font-size: 25px;
    transform: translate(-50%, -50%);
}

/* take away margins from the edges of the screen */
html,
body,
button {
    margin: 0;
    cursor:
        url("../img/cursor.png") 17 8,
        auto;
}

@media (max-width: 800px) {
    .footerRow {
        flex-direction: column;
        align-items: center;
    }

    .comicNav {
      width: 100%;
    }

    #ContentWarning {
      width: 80%;
    }
}
