/* 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 "https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css";
   @import url('https://fonts.googleapis.com/css2?family=M+PLUS+Code+Latin:wght@100..700&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
  @font-face {
  font-family: 'Jfills';
  src: url('/font/Jfills.woff2') format('woff2'); 
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body, div, main, section, article {
  box-sizing: border-box; 
}


/* universal background color */

body {
  background-image: url("../img/bg.webp");
  background-size: 600px;
  background-position: top left;
  background-repeat: repeat;
  color:lightgrey;
  background-color: #001E26; 
  padding-top: 0px;
  letter-spacing: 0.08em; 
  transition: background-color 0.3s
}
.dark-mode {
  background-image: none;
  background-size: 600px;
  background-position: top left;
  background-repeat: repeat;
  color:lightgrey;
  background-color: #000; 
  padding-top: 0px;
  letter-spacing: 0.08em; 
  transition: background-color 0.3s ease-in-out; /* Smooth transition for background change */
}
.dark-mode.half-gradient {
  background-size: 600px;
  background-position: top left;
  background-repeat: repeat;
  color:lightgrey;
  padding-top: 0px;
  letter-spacing: 0.08em; 
  transition: background-color 0.3s ease-in-out;
}

.dark-mode.full-gradient {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
    background-image: none;
    background-size: 600px;
    background-position: top left;
    background-repeat: repeat;
    color:lightgrey;
    background-color: #000; 
    padding-top: 0px;
    letter-spacing: 0.08em; 
    transition: background-color 0.3s ease-in-out;
}

.dark-mode.solid-dark {
    background-image: none;
    background-size: 600px;
    background-position: top left;
    background-repeat: repeat;
    color:lightgrey;
    background-color: #000; 
    padding-top: 0px;
    letter-spacing: 0.08em; 
    transition: background-color 0.3s ease-in-out;
}


/* header image */
header img {
  position: sticky;
  max-width: 10%;
  height: auto;
  margin: 10px;
}

/* 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: 'Jfills', sans-serif;
  padding-top: 10px;
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: "Roboto Mono", monospace;
  font-size: large;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/
/* glitch animation */
    @keyframes cblink {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 0;
    transform: scale(1.2);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  75% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes creepy-shake {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(5px);
  }
}

.socials{
    padding: 20px 0;
    border-width: 2px 0 2px 0;
    /* display: flex; */
    flex-wrap: wrap;
    justify-content: space-between;
    display: block;
    text-align: center;
    overflow: hidden;

}
.socials img{
  width: 4%;
  min-width: 50px;
  max-width: 100%;
  height: auto;
  text-align: center;
  margin-left: 5px;
  margin-right: 5px;
  display: inline-block;
  position: relative;
}
.imgLink {
    transition: transform 0.2s ease-in-out, border 0.2s ease;
    display: inline-block;
 
  }

.imgLink:hover {
  cursor: pointer;
  -webkit-transform: scale(1.01);
  transform: scale(1.05); 
  border: 1px solid #fff;
  transform-origin: center;
  position: relative;
  }

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: #000c2e42;
  outline: 3px solid #ffffff;
  margin: auto;
  margin-bottom: 10px;
  padding: 0px 12px 12px;
}

.subPage:not(.archivePage) {
  text-align: center;
}
/* secret button */
#cheatButton {
      position: relative;
      background-color: #000;
      color: white;
      font-size: 16px;
      padding: 15px 30px;
      text-transform: uppercase;
      border: 2px solid #fff;
      cursor: pointer;
      outline: none;
      transition: all 0.3s ease;
      border-radius: 5px;
      overflow: hidden;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#cheatButton:hover {
   animation: cblink 0.5s infinite, cshake 0.2s ease-in-out infinite;
}

/* 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: #fff;
    }

a:hover {
      color: #2E99A2;
    }

/* HEADER */
header #nav {
  background-color: #000;
  font-size: 1.5em;
  width: 100%;
  margin: auto;
}

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}
.comicNav img {
  width: 80px;
    height: auto;
  max-width: 100%;
}
.comicNav a img[data-button="first"]:hover {
    content: url('${navFolder}/nav_first_D.png');
    width: 80px;
    height: auto;
  max-width: 100%;
}
.comicNav a img[data-button="prev"]:hover {
    content: url('${navFolder}/nav_previous_D.png');
    width: 80px;
    height: auto;
  max-width: 100%;
}

.comicNav a img[data-button="next"]:hover {
    content: url('${navFolder}/nav_next_D.png');
    width: 80px;
    height: auto;
  max-width: 100%;
}

.comicNav a img[data-button="last"]:hover {
    content: url('${navFolder}/nav_last_D.png');
    width: 80px;
    height: auto;
  max-width: 100%;
}


/* style comic page image */
.comicPage img {
  width: 900px;
  max-width: 98%;
  height: auto;
}

/* style author notes */
#authorNotes {
  background-color:#00000077;
  outline: 3px solid #66666600;
  margin: auto;
  padding: 3px;
  padding-top: 0px;
  width: 900px;
  max-width: 98%;
}

/* ARCHIVE PAGE */

/* style table in which archive is displayed */
.archiveTable {
   color: #FFFFFF;
   width: 90%;
   border: 0px;
   border-collapse: collapse;
}

/* style archive table cells */

.archiveTable td {
   display: table-cell;
   vertical-align: middle;
   padding: 7px;
   padding-bottom: 0px;
}

.archiveTable td:hover {
   background-color: #666666;
   cursor: pointer;
}

/* style table cell in which page title is displayed */

.archiveCellTitle:not(.leftAlignTableText) {
   max-width: 95px;
   text-align: center;
}

.archiveCellDate {
   text-align: right;
}

.archiveCellNum {
   padding: 0px; 
   text-align: center;
}

/* style the thumbnails on the archive page */

.archiveCellThumb {
   vertical-align: middle;
   width: 90px;
   height: 110px;
}

/* for left aligning the text in a table cell */

.leftAlignTableText td {
   text-align: left;
}

.archiveRow {
   max-height: 100px;
   margin: 0px;
}

/* highlight a table row and make pointer into hand when moused over */

.archiveRow:hover {
   background-color: #666666;
   cursor: pointer;
}

.archiveThumb {
   display:inline-block;
   padding: 3%;
}


/* FOOTER */
footer {
  color: #fff;
  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;
}

/*cool Scrollbar thingy*/
::-webkit-scrollbar-thumb {
    background: transparent;
    border: 2px solid #2BC1CE;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar {
    width: 20px;
}

.switchimg {
  position: relative;
  display: inline-block; }
  .switchimg .img-top {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99; }

.switchimg:hover .img-top {
  display: inline; }

.imglink img {
  transition: 0.2s; }

.imglink img:hover {
  -webkit-transform: scale(1.01);
  transform: scale(1.05);
  cursor: pointer; }
  
  .disqusContainer { 
    width: 100%; 
    margin: 0 auto; 
    max-width: 900px; 
    padding: 10px;
}

/* MOBILE CSS */
@media (max-width: 768px) {

  body, div, main, section, article {
    box-sizing: border-box; 
  }
  
  /* universal background color */
  body {
    background-color: #001E26; 
  }
  
  /* header image */
  header img {
  position: sticky;
  max-width: 50%;
  height: auto;
  margin: 5px;
  }
  
  /* 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: 'Jfills', sans-serif;
  }
  
  /* body font */
  .subPage p, footer, #authorNotes, .archiveTable {
    font-family: "Roboto Mono", monospace;
    font-size: large;
  }
  
  /* STYLING FOR SUBPAGES (about, characters, etc) */
  
  /*general*/
   .disqusContainer { 
    max-width: 90%; 
    height: auto; 
    overflow-x: hidden; 
  
  .subPage {
    width: 1000px;
    max-width: 98%;
    background-color: #000c2e42;
    outline: 3px solid #ffffff;
    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%;
  }
  
  /* link colors */
  a {
        color: #000000;
      }
  
  a:hover {
        color: #DA5437;
      }
  
  /* HEADER */
  header #nav {
    background-color: #ffffff;
    outline: 3px solid #000000;
    font-size: 20px;
    width: 98%;
    margin: auto;
  }
  
  /* HOMEPAGE */
  
  /* style nav button images */
 #comicNav {
  display: flex;
  flex-wrap: nowrap;
  transition: 0.2s;
  width: 100%;
  height: 70px; }
  #comicNav img {
    max-width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px; }
  #comicNav .navBorder img {
    height: 100%; }

  
  /* style comic page image */
  .comicPage img {
    width: 900px;
    max-width: 98%;
  }
  
  /* style author notes */
  #authorNotes {
    background-color:#00000077;
    outline: 3px solid #66666600;
    margin: auto;
    padding: 3px;
    padding-top: 0px;
    width: 900px;
    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: #DA5437;
    cursor: pointer;
  }
  
  /* FOOTER */
  footer {
    color: #fff;
    margin-top: 3px;
    margin-bottom: 5px;
    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;
  }

    


}