/*-- FONTS --*/
@import url('https://fonts.googleapis.com/css2?family=Silkscreen&family=Bitcount+Prop+Double:wght@100..900&family=Bitcount+Prop+Single:wght@100..900&family=Cormorant:ital,wght@0,300..700;1,300..700&family=Josefin+Slab:ital,wght@0,100..700;1,100..700&family=Cabin+Sketch&family=DotGothic16&display=swap');

body .comicPage {
  transition: opacity 0.2s ease;
}

body.comic-page-loading .comicPage,
body.comic-page-leaving .comicPage,
body.comic-page-entering .comicPage {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-content.master-power-off .comicPage {
  opacity: 1 !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body .comicPage {
    transition: none;
  }

  body.comic-page-loading .comicPage,
  body.comic-page-leaving .comicPage,
  body.comic-page-entering .comicPage {
    opacity: 1;
  }
}

body, div, main, section, article {
  box-sizing: border-box; 
}

body {
    font-family: 'Handjet', sans-serif;
    font-weight: normal;
    font-size: 18px;
    min-height: 100vh;
    text-shadow: none;
    overflow-x: hidden;
    scrollbar-color: var(--text-color) var(--container-color);
    scrollbar-width: thin;
}

header img {
  margin-top:58.9px;
  width: 500px;
  max-width: 98%;
}

#bg-no-lag {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    background-color: var(--background-color);
    background-image: url('/art/rainbow-baby.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: var(--background-blend-mode), overlay;
}

.box-box-btn  {
  border-bottom: 5px solid var(--highlight-color);
    border-right: 5px solid var(--button-hover);
    border-left: 5px solid var(--button-hover);
    border-top: 2px solid var(--border-color);
    background-size: cover;
    background-blend-mode: normal;
    background-repeat: no-repeat;
    color: var(--tv-color);
    background-color: var(--tv-b-color);
    position: relative;
    margin: auto;
    gap:2px;
}

.button-box {
    overflow: auto;
    overflow-x: hidden;
    max-height: 500px;
    position: static;
    padding: 1%;
    border-right: 7px solid #000000;
    border-left: 7px solid #000000;
    border-bottom: 5px solid #000000;
    border-top: 3px solid #000000;
}

.comic-header {
    border: 3px var(--border-color);
    border-style: solid solid none solid;
    background-image: url('/graphics/textures/bluesky.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--container-color);
    margin-bottom:-33px;
    position: relative;
    text-align: center;
    width: 68%;
    overflow-x: hidden;
    z-index: 2;
}

/* clearfix hack to prevent image overflow. check out the W3Schools page on it. */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

strong {
  font-weight:bolder;
  font-family:'Handjet', system-ui;
}


img.s-n-j {
  position: relative;
  z-index: 10;
  margin:-5px;
  width:40%;
  transition: filter 0.3s linear;
}

img.s-n-j:hover {
  filter: brightness(1.5);
  animation: twitch 0.2s linear; 
}

@keyframes twitch {
  0%   { transform: translate(0); }
  35%  { transform: translate(-2px); }
  50%  { transform: translate(8px); }
  85%  { transform: translate(-4px); }
  95%  { transform: translate(3px); }
  100% { transform: translate(0); }
}

/*FONTS*/

/* header font */
#showComic, header, h1, h2, h3, h4, h5 {
  font-family: 'Bitcount Prop Double', system-ui;
  font-weight:normal;
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family:'Handjet', system-ui;
}

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

/*general*/

.subPage {
  width: 68%;
  max-width: 98%;
  color: var(--text-color);
  background-color: var(--container-color);
  border-left: 3px solid var(--border-color);
  border-right: 3px solid var(--border-color);
  border-top: 3px solid var(--highlight-color);
  border-bottom: 3px solid var(--shadow-color);
  margin: auto;
  margin-bottom: 10px;
  padding: 0px 12px 12px;
}

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

/* for pictures displayed to the left */
.leftPic {
  position:relative;
  clear: left;
  float:right;
  z-index:10;
}

.flex-left {
  display:flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

/* for pictures displayed to the left */
.rightPic {
  clear: right;
  float:left;
  margin-left:20px;
}

.comic-box {
    width: 800px;
    height: 100%;
    max-width: 100%;
    border-bottom: 5px solid var(--highlight-color);
    border-right: 5px solid var(--button-hover);
    border-left: 5px solid var(--button-hover);
    border-top: 2px solid var(--border-color);
    background-size: cover;
    background-blend-mode: var(--background-blend-mode);
    background-repeat: no-repeat;
    color: var(--tv-color);
    background-color: var(--tv-b-color);
    position: relative;
    margin: auto;
}

.author-notes-box-box {
  border-bottom: 5px solid var(--highlight-color);
    border-right: 5px solid var(--button-hover);
    border-left: 5px solid var(--button-hover);
    border-top: 2px solid var(--border-color);
    background-size: cover;
    background-blend-mode: var(--background-blend-mode);
    background-repeat: no-repeat;
    color: var(--tv-color);
    background-color: var(--tv-b-color);
    position: relative;
    margin: auto;
    width: 60%;
}

.box-lable {
        text-transform:uppercase;
        text-shadow:0px -1px 0px rgba(0, 0, 0, 0.50);
        background-color:var(--container-color);
        text-align: center;
        border-top:3px solid var(--highlight-color);
        border-right: 3px solid var(--shadow-color);
        border-left: 3px solid var(--border-color);
        border-bottom: 4px solid var(--shadow-color);
        padding: 14px 16px;
        width:400px;
        text-decoration: none;
        font-size: 28px;
  }
  
  .box-box h1, .box-box h2, .box-box h3 {
    height:100%;
    margin-top:15px;
  }
  
  .box-box h2 {
    font-size:26px;
  }
  
   .c-info-banner-inside {
     background-color:var(--container-color);
     margin-top:-15px;
     margin-bottom:-10px;
   }
  
  .c-info-banner {
  width:100%;
  margin-top:15px;
  margin-bottom:15px;
  margin-left:0 auto;
  margin-right:0 auto;
  border: 2px solid var(--border-color);
  border-image-source: url('/graphics/r-hr.png');
  border-image-slice:0;
  border-image-repeat: stretch;
  }
  
    .c-info-banner img {
    margin-top:-5px;
  }

/* link colors */
a {
      color: var(--link-color);
      font-family:'Handjet', system-ui;
    }

a:hover {
      color: var(--link-hover);
    }

/* HEADER */
header {
    margin-top:55px;
}

header img {
  margin-bottom:40px;
}
/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.comicNav img {
  width: 80px;
  max-width: 98%;
  padding-right: 30px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.comicNav img:hover {
  filter: brightness(3);
}

/* style comic page image */
.comicPage img {
  width: 100%;
  max-width: 100%;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* style author notes */
.author-notes-container {
    overflow-x: hidden;
    font-size: 16px;
    font-family: 'DotGothic16', sans-serif;
    background-color: var(--container-color);
    border-top: 2px solid var(--highlight-color);
    border-left: 3px solid var(--border-color);
    border-right: 3px solid var(--border-color);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 60%;
    position: relative;
    margin: 20px auto;
    top:20px;
    padding: 20px;
}

.writeAuthorNotes p {
  color:var(--tv-color);
  text-align:left;
}

#authorNotes {
  padding-left:10px;
}

  .scrolling-content {
    overflow-y: auto;
}

.scrolling-content p, h1, h2, h3, h4, h5, h6 {
  margin-top:-10px;
}

/* ARCHIVE PAGE */

/* style table in which archive is displayed */
.archiveTable {
  width: 90%;
  border-collapse:collapse;
}

/* style archive table cells */
.archiveTable td {
  color:var(--tv-color);
  padding: 10px 10px 0 3px;
  vertical-align: center;
}

.archiveTable td:hover {
  color:var(--navi-color);
}

/* 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: 90px;
}
.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:rgba(34, 35, 38, 0.50);
  cursor:url('/graphics/cursors/magic-cursor-pointer.png') 10 0, pointer;
}
/* LISTS */

ul li {
  list-style-type: square;
  margin-bottom:-10px;
  color:var(--navi-color);
  font-family:'Handjet', system-ui;
}

ul li p {
  list-style-type: square;
  font-family:'Handjet', system-ui;
  color:var(--tv-color);
  text-transform:uppercase;
  padding:5px;
}

/* FOOTER */
footer {
  color: var(--header-colors);
  float: left;
  width: 100%;
  margin-top:10px;
  font-size: 12px;
}

footer a {
  font-family:'Silkscreen', sans-serif;
  font-size: 12px;
  color: var(--link-color);
}

footer a:hover {
  color: var(--link-hover);
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

#myTopnav-b,
#myTopnav-c {
  margin-bottom:-10px;
  margin-top:-8px;
}

/* LIGHTBOX */
.comic-lightbox-trigger {
  cursor: url('/graphics/cursors/magic-cursor-pointer.png')0 10, pointer !important;
}

.comic-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgb(0 0 0 / 88%);
}

.comic-lightbox.is-open {
  display: flex;
}

.comic-lightbox-figure {
  max-width: 95vw;
  max-height: 95vh;
  margin: 0;
  text-align: center;
}

.comic-lightbox-image {
  display: block;
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  margin: auto;
}

.comic-lightbox-caption {
  margin-top: 0.75rem;
  color: white;
}

.comic-lightbox button {
  position: fixed;
  z-index: 100000;
  border: 0;
  padding: 0.5rem;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
}

.comic-lightbox button:hover,
.comic-lightbox button:focus {
  color: #ffb6e6;
}

.comic-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.comic-lightbox-prev {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.comic-lightbox-next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

body.comic-lightbox-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .comic-lightbox {
    padding: 1rem;
  }

  .comic-lightbox-image {
    max-width: 84vw;
    max-height: 78vh;
  }

  .comic-lightbox button {
    font-size: 2rem;
  }
}

/* SMALL SCREENS */

@media screen and (max-width: 950px) {
  .author-notes-box-box {
    width: 100%;
    margin-left:0%;
  }
    .bottom-labels {
      margin-left:-5px;
    }
}

@media screen and (max-width: 750px) {
  .comic-header {
  width:100%;
  }
}


@media screen and (max-width: 500px) {
    .artshow-container {
        width: 120%;
        left: -10%;
        margin: 0;
    }

    .artshow-hbanner {
        margin: 0;
        height: auto;
        padding: 10px 0;
    }

    .artshow-hbanner h2 {
        font-size: 24px;
    }

    .tablink {
        width: 50%;
        font-size: 14px;
        padding: 15px 5px;
        box-sizing: border-box;
    }

    .tabcontent {
        height: 600px;
        min-height: 300px;
    }
}

@media screen and (max-width: 400px) {
  .t-b-c {
    margin-left:-20px;
  }
}

@media screen and (max-width: 333px) {
  .author-notes-box-box {
    width: 110%;
    margin-left:-5%;
    
  }
}