/* 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;
}

.container {
  display: grid;

  grid-template-areas:
    "header header header"
    "nav content side"
    "footer footer footer";

  grid-template-columns: 250px 500px 250px;
  grid-template-rows: auto 1fr auto;
  column-gap: 10px;
  background-color: #000000;
  justify-content: center;
}

header {
  grid-area: header;
  background-color: #000000;
}

nav {
  grid-area: nav;
  padding: 10px;
  background-color: #102514;
  box-shadow: 5px 5px 80px #00ff4c;
  
}

main {
  grid-area: content;
  z-index: 1;
}


aside {
  grid-area: side;
  margin-right: 0.1rem;
  padding: 10px;
  background-color: #102514;
  box-shadow: 5px 5px 100px rgb(0, 255, 76);
  
}

footer {
  grid-area: footer;
 
}

@media (max-width: 500px) {
  .container {
    grid-template-areas:
      "header header"
      "content content"
      "nav side"
      "footer footer";

    grid-template-columns: 1fr;
    grid-template-rows:
      auto /* Header */
      1fr /* Content */
      minmax(75px, auto) /* Nav */
      minmax(75px, auto) /* Sidebar */
      auto; /* Footer */
      
  }

  nav, aside {
    margin-bottom:5px;
    box-shadow: none;
    max-width: 200px;
  }
}


/* header image */
header img {
  width: 500px;
  max-width: 98%;
  justify-content: center;
}

.window {
  display: grid;
  grid-template-areas:
    "top"
    "message"
    "link";
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  row-gap: 5px;
  background-color: #00ff44;
  width: 200px;
  padding: 5px;
  margin-bottom: 5px
}

.top {
  display: grid;
  grid-template-columns: 1fr 20px;
 background-color: #055b05;
 outline: 1.2px solid #000000;
}

.button p{
  font-family: "Tiny5", sans-serif;
  font-size: small;
  color: #00ff08;
}


.message {
  height: auto;
}

.button {
  background-color: #055b05;
  width: 120px;
  height: 20px;
 outline: 1.2px solid #000000;
 margin: 5px;
}


.news-board {
  background-color: #000000;
  outline: 1px solid #00ff44;
  width: 200px;
}


/* 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: "Jersey 10", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #0dff00;
  font-size:20px
}


/* body font */
.subPage p, .aside, #authorNotes, .archiveTable, nav p, aside p{
  font-family: "Courier Prime", monospace;
  font-size: medium;
  color: #0dff00;
}

.greenBox p{
  font-family: "Courier Prime", monospace;
  font-size: medium;
  color: #000000;
  margin: 20px;
  }

.greenBox h1{
  font-family: "Courier Prime", monospace;
  font-size: x-large;
  color: #000000;
  }

.window h1{
  font-family: "Jersey 10", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #00ff08;
  font-size:15px
}

.message p{
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-size: small;
  color: #000000;
}

.message p2{
  font-family: "Courier Prime", monospcae;
  font-weight: 400;
  font-size: small;
  color: #00ff08;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.row {
  display: flex;
}

.column {
  flex: 33.33%;
  padding: 5px;
}

.subPage {
  width: 500px;
  max-width: 98%;
  background-color: #000000;
  outline: 2px solid #0dff00;
  margin: auto;
  margin-bottom: 10px;
  padding: 1px 12px 12px;
}

.subPage:not(.archivePage) {
  text-align: center;
}

.greenBox {
  width: 500px;
  max-width: 98%;
  background-color: #0dff00;
  outline: 2px solid #0dff00;
  margin: auto;
  margin-bottom: 10px;
  padding: 1px 12px 12px;
  }

  .subPagelineless {
  width: 500px;
  max-width: 98%;
  background-color: #000000;
  margin: auto;
}

/* for pictures displayed to the left */
.leftPic {
  clear: left;
  float:right;
  margin:5%;
}

/* for pictures displayed to the left */
.rightPic {
  clear: right;
  float:left;
  margin:5%;
}

/* specific to Characters */

.flex-container-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: auto;
  max-width: 98%;
  margin-bottom: 20px;
  margin-left: 5px;
}

.flex-container-table > div {
  width: 100px;
  height: 100px;
  margin-bottom: 40px;
  margin-top: 10px;
}

  .flex-container-table2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: auto;
  max-width: 98%;

}

.flex-container-table2 > div {
  width: 100px;
  height: 70px;
  
}
.flex-container-table > div:hover :not(.greenBox) {
  background-color: #1e3423;
  cursor: pointer;
}

/* link colors */
a {
      color: #0dff00;
    }

a:hover {
      color: #acffa8;
    }

.zoom:hover {
  -ms-transform: scale(1.1); /* IE 9 */
  -webkit-transform: scale(1.1); /* Safari 3-8 */
  transform: scale(1.1); 
  transition: transform .5s;
 } 

/* HEADER */
header #nav {
  font-size: 12px;
  width: 98%;
  margin: 10px;
}

/* HOMEPAGE */

/* 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 comic page image */
.comicPage img {
  width: 500px;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  background-color:#1e3423;
  outline: 3px solid #000000;
  margin: auto;
  padding: 3px;
  padding-top: 0px;
  width: 500px;
  max-width: 98%;
}

/* 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: #1e3423;
  cursor: pointer;
}

/* character page style */
.flex-character {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: auto;
  max-width: 98%;
  padding-top: 20px;
  padding-bottom: 9px;
  padding-left: 9px;
}
/* Sidebar/left column */
.side {
  flex: 10%;
  background-color: #15321b;
  padding: 20px;
}
/* Main column */
.main {
  flex: 90%;
  background-color: #021501;
  padding: 20px;
}

/* FOOTER */
footer {
  color: #1e34;
  margin-top: 12px;
  margin-bottom: 15px;
  float: left;
  width: 100%;
  font-size: 12px;
}

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;
}

