html {
  font-size: 100%;
}

main {
  display: block;
}

.title-block {
	text-align: center;
	top-padding: 25px;
	display: block;
}
.title-block img {
  display: block;
  max-width: 100%;
  margin: auto;
}

.CT {
	background: #46169f;
	color: white;
	text-align: center;
	padding: max(5px,.25em);
	max-width: 1080px;
	margin: auto;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"
}

.CT a {
  display: block;
  padding: 5px 5px;
  color: white;
	text-decoration: none;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"
}

.CT a:hover {
  background: #C25;
  color: white;
	text-decoration: none;
}

/* --- Existing Flexbox and Width Classes (No Change Needed) --- */
.comic-flex-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: flex-start; 
    gap: .5rem;
    padding: 5px;
    max-width: 1080px;
    margin: 0 auto;
}

.glow-link {
    display: block; 
    flex-grow: 0; 
    flex-shrink: 0; 
    box-sizing: border-box; 
    
    /* Remove 'position: relative' and 'overflow: hidden' as they are not needed for this effect */
    /* Keep transform transition if you want the slight scale */
    transition: transform 0.2s ease-in-out; 
}

/* Width Utility Classes */
.width-100 { width: calc(100% - .5rem * 0); }
.width-75  { width: calc(75% - .5rem * 3 / 4); }
.width-50  { width: calc(50% - .5rem * 1 / 2); }
.width-33  { width: calc(33.333% - .5rem * 2 / 3); }
.width-25  { width: calc(25% - .5rem * 3 / 4); }


/* --- Image Styles (Important Changes Here) --- */
.comic-thumb {
    display: block; 
    border-radius: 4px;
    border: none;
    width: 100%;
    height: auto;
    
    /* IMPORTANT: Add a transition for the filter property */
    transition: filter 0.3s ease-in-out, transform 0.2s ease-in-out; 
    
    /* Optional: Start with a slightly darker base if you want */
    /* filter: brightness(0.9); */ 
}

/* --- THE NEW LIGHTEN EFFECT ON HOVER --- */
.glow-link:hover .comic-thumb {
    filter: brightness(1.2); /* Makes the image 20% brighter */
    
    /* Optional: Keep the subtle scale for the image on hover */
    transform: scale(1.02); 
}

/* REMOVE the ::before pseudo-element and its hover state for the old glow effect */
/* .glow-link::before { ... } */
/* .glow-link:hover::before { ... } */

 .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    padding: 1.25em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px; 

    /* Centering and Width Constraints */
    max-width: 1080px;      /* Limits the width */
    margin: 0 auto;         /* Centers the container itself */
    justify-content: center; /* Centers the buttons inside the container */
    width: 100%;            /* Ensures it takes up space up to the max-width */
  }
  .pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em; /* Scales with text */
    padding: 0.6em 1.25em; /* Scales with text */
    font-size: 0.9em; /* Becomes 90% of the container size */
    font-weight: 600;
    text-decoration: none;
    border-radius: 3em; /* Always stays a pill shape */
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #dadce0;
    background-color: #f1f3f4;
    color: #3c4043;
    outline: none;
    line-height: 1;
  }

  /* Keep icons proportional */
  .pill-icon {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
    flex-shrink: 0;
  }

  .pill-link:visited { color: #3c4043; }
  .pill-link:hover {
    background-color: #e8eaed;
    border-color: #bdc1c6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .pill-link:active { transform: scale(0.96); }

  /* Success state */
  .pill-link.success {
    background-color: #e6f4ea !important;
    color: #137333 !important;
    border-color: #137333 !important;
  }

  /* MOBILE SCALING: Automatically shrinks everything on small screens */
  @media (max-width: 600px) {
    .button-group {
      font-size: 13px; /* Everything inside shrinks proportionally */
      justify-content: center; /* Centers buttons on mobile */
    }
  }

.ribbon {
	white-space: nowrap;
	background-color: #000000;
	color: #c1e0ff;
	text-align: center;
	padding: max(.5em, .2em);
	max-width: 1080px;
	margin: auto;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"
}

.ribbon a:link, a:visited {
color: #c1e0ff;
	text-decoration: none;

}
.ribbon a:hover {
color: #ffffff;
text-decoration: none;
}

h1 {
  font-size: min(5vw, 48px);
  margin: 5px 0;
}
h2 {
  font-size: min(4.5vw, 40px);
  margin: 5px;
}

h4 {
  font-size: min(3vw, 24px);
  margin: 3px 0;
}

h5 {
  font-size: min(2vw, 18px);
  margin: 3px;
}

.comic-title {
	color: midnightblue;
	text-align: center;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
}
.comic-credits {
	color: #6E88C2;
	text-align: center;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
}

.comic-source {
	background-color: #000000;
	max-width: 1080px;
	text-align: center;
	margin: auto;
	color: #86C7FF;
    padding: 5px;
}

.comic-source a {
  color: #ffffff;
  text-decoration: none;
}

.comic-source a:hover {
  color: #B4CFF6;
}



.comic-indicia {
background-color: #ffffff;
	max-width: 1080px;
	text-align: center;
	margin: auto;
}

.comic-indicia a {
  color: #4A6AB0;
  text-decoration: none;
}

.comic-indicia a:hover {
  color: #6E88C2;
}

div.gallery {
  border: 0px solid #fff;
}

div.gallery:hover {
  border: 0px solid #fff;
}

div.desc {
  font-size: 2vw;
  padding: 5px;
  text-align: center;
}

div.desc a {
  font-size: 2vw;
  padding: 5px;
  text-align: center;
  color: #0066ff;	
}
div.desc a:hover {
  font-size: 2vw;
  padding: 5px;
  text-align: center;
  color: #0099ff;	
}

* {
  box-sizing: border-box;
}

div.gallery img {
  width: 100%;
  height: auto;
}


a {
  background-color: transparent;
}

img {
  border-style: none;
}


body {
  font-family: 'Work Sans', -apple-system, Helvetica, Arial, sans-serif;
  color: #444;
  background-image: url('https://www.talesofilluminatus.com/IMAGES/TOI_STARS.gif');

  margin: 0;
  padding: 0;
}

.export body { font-family: -apple-system, Helvetica, Arial, sans-serif; }



/* article
------------------------- */

.article {
  margin-bottom: 10px;
}

.article img {
  display: block;
  max-width: 100%;
  margin: auto;
}

/* site nav
------------------------- */

ul {
  display: flex;
  justify-content: center; /* Center the items inside */
  padding: 0; /* Remove default padding */
  width: 100%; /* Ensures ul spans the full width of .site-nav */
}

.site-nav {
  font-size: min(1.75vw, 18px);
  display: flex;
  justify-content: center; /* Ensures ul is centered */
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  max-width: 1080px; /* Keeps the container limited */
  margin: 0 auto; /* Centers the entire nav container */
  background-color: #1e0b39;
}

.site-nav__item a {
  display: block;
  padding: .75vw 1.25vw;
  color: #c1e0ff;
  text-decoration: none;
  text-align: center; /* Ensures text inside links is centered */
}

.site-nav__item a:hover {
  background: #663399;
  color: white;
}



/* container
------------------------- */

.covers {
  padding-left: 5px;
  padding-right: 5px;
  margin: auto;
  margin-bottom: 10px;
  max-width: 1080px;
}

.container {
  padding-left: 5px;
  padding-right: 5px;
  margin: auto;
  max-width: 100%;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* RESIZE SETTINGS */

.responsive {
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 10px;
  float: left;
  width: 49%;
	background-color:white;
}



@media screen and (max-width: 700px) {

.site-nav__item a {
	padding: 10px 15px;}
.responsive {
    width: 49%;
    margin: 6px 0;
}
	
}

@media screen and (max-width: 500px) {
.site-nav__item a {
	padding: 5px 10px;}
	.responsive {
    width: 49%;
    margin: 6px 0;
}
}

@media screen and (max-width: 320px) {
.site-nav__item a {
	padding: 5px 10px;}
	.responsive {
    width: 32.99999%;
    margin: 6px 0;
}
}


/* INFINITE SCROLL CODE
---------------------------------------------------------------------------
---------------------------------------------------------------------------
*/

/* loader-ellips
------------------------- */

.loader-ellips {
  font-size: 20px;
  position: relative;
  width: 4em;
  height: 1em;
  margin: 10px auto;
}

.loader-ellips__dot {
  display: block;
  width: 1em;
  height: 1em;
  border-radius: 0.5em;
  background: #555;
  position: absolute;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.loader-ellips__dot:nth-child(1),
.loader-ellips__dot:nth-child(2) {
  left: 0;
}
.loader-ellips__dot:nth-child(3) { left: 1.5em; }
.loader-ellips__dot:nth-child(4) { left: 3em; }

@keyframes reveal {
  from { transform: scale(0.001); }
  to { transform: scale(1); }
}

@keyframes slide {
  to { transform: translateX(1.5em); }
}

.loader-ellips__dot:nth-child(1) {
  animation-name: reveal;
}

.loader-ellips__dot:nth-child(2),
.loader-ellips__dot:nth-child(3) {
  animation-name: slide;
}

/* stylelint-disable-next-line no-duplicate-selectors */
.loader-ellips__dot:nth-child(4) {
  animation-name: reveal;
  animation-direction: reverse;
}

/* loader-wheel
------------------------- */

.loader-wheel {
  font-size: 64px; /* change size here */
  position: relative;
  height: 1em;
  width: 1em;
  padding-left: 0.45em;
  overflow: hidden;
  margin: 0 auto;
  animation: loader-wheel-rotate 0.5s steps(12) infinite;
}

.loader-wheel i {
  display: block;
  position: absolute;
  height: 0.3em;
  width: 0.1em;
  border-radius: 0.05em;
  background: #333; /* change color here */
  opacity: 0.8;
  transform: rotate(-30deg);
  transform-origin: center 0.5em;
}

@keyframes loader-wheel-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* scroller
------------------------- */

.scroller {
  height: 400px;
  padding: 10px 10px 100px;
  overflow-y: scroll;
  border: 1px solid #DDD;
  border-radius: 5px;
}

/* ---- scroller-item ---- */

.scroller-item {
  height: 200px;
  margin-bottom: 10px;
  padding: 20px;
  background: #19F;
  border-radius: 5px;
  color: white;
  font-size: 3rem;
  line-height: 1;
}

.scroller-item--height2 { height: 250px; }
.scroller-item--height3 { height: 300px; }

.scroller-item--magenta { background: #C25; }
.scroller-item--red { background: #E21; }
.scroller-item--gold { background: #EA0; }
.scroller-item--green { background: #6C6; }

/* ---- prefill ---- */

.scroller--prefill { height: 500px; }

.scroller--prefill .scroller-item,
.scroller--prefill .scroller-item--height2,
.scroller--prefill .scroller-item--height3 { height: 80px; }

/* scroller-status
------------------------- */

.scroller-status {
  display: none;
  padding: 20px 0;
}

.scroller-status__message {
  text-align: center;
  color: #777;
}
