.content-container {
  width: 90%;
  max-width: 1170px;
  min-height: 300px;
  margin: 20px auto;
  background-color: #e6ccff;
  border: 3px solid #5a007a;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.page-title {
  color: #6f087d;
  border-bottom: 2px solid #6f087d;
  margin-bottom: 30px;
}

.arc-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 85px;              /* bigger gap between posters */
  justify-content: center; 
}

.arc-item {
  flex: 0 0 35%;          /* smaller posters */
  max-width: 35%;
  margin-bottom: 24px;
  text-align: center;
}


.arc-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.arc-poster {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.arc-title {
  margin-top: 10px;
  font-family: "Book Antiqua", "Times New Roman", Arial, sans-serif;
  font-weight: bold;
  font-size: 1.25rem;
  color: #5a007a;
  transition: color 0.2s ease;
}

.arc-item:hover .arc-poster {
  transform: scale(1.03);
}

.arc-item:hover .arc-title {
  color: #a100cc;
}

.poster-wrapper {
  position: relative;
  display: inline-block;
}

.poster-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
}

.chapter-box {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 80%;
  margin: 0 auto;
  height: 160px;
  border: 2px solid #651579;
  background-color: #EFE3FF;
}

.chapter-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-color: #fff9e6;
}

.chapter-thumb {
  width: 150px;
  margin-right: 16px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 2px solid #651579;
}

.chapter-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
}

.chapter-title {
  font-family: "Book Antiqua", "Times New Roman", Arial, serif;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 4px;
  color: #651579;
}

.chapter-subtitle {
  font-family: "Chalkboard SE", "Comic Sans MS", Arial, sans-serif;
  font-size: 1.25em;
  color: #ae8bbc;
}

.chapter-divider {
  height: 2px;
  width: 50%;
  background-color: #651579;
  margin: 8px auto;
  border-radius: 2px;
}

/* comic pages */

.chapter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.comic-image {
  width: 800px;
  max-width: 90vw;
  display: block;
}

/* nav buttons */

.chapter-nav {
  display: flex;
  flex-direction: column;
  width: 800px;
  max-width: 100vw;
  margin: 0 auto;
}

.chapter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.chapter-row div {
  width: 100%;
  height: 100px;
}

.chapter-row a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  text-decoration: none;
  font-family: "Chalkboard SE", "Comic Sans MS", sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  background-color: #5a007a;
}

/* Slim comic header */
.comic-header-wrapper {
  width: 100%;
  height: 100px;
  background-color: #0d0234;
  border-bottom: 3px solid #baa2f9;
  padding: 10;
}

.comic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px;
}

.home-link {
  font-family: "Chalkboard SE", "Comic Sans MS", sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: #baa2f9;
  text-decoration: none;
}

.home-link:hover {
  color: #ffffff;
}

.comic-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-link img.moon-home {
  width: 60px;   /* adjust to your liking */
  height: auto;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

img.moon-home {
  width: 60px !important;   /* force it */
  height: auto !important;
  display: inline-block;
}

.home-link img.moon-home:hover {
  transform: scale(1.1);
}

/* ðŸ“± Chapter list adjustments for phones */
@media screen and (max-width: 768px) {
  .chapter-box {
    width: 95%;
    height: auto;
    padding: 10px;
  }

  .chapter-thumb {
    width: 100px;
    margin-right: 20px;
  }

  .chapter-title {
    font-size: 1.5em;
  }

  .chapter-subtitle {
    font-size: 1.1em;
    color: #6f4a8e;
  }

  .page-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
}


/* 🌙 Moon button */
.moon-link {
  display: inline-block;
}

.moon-home {
  width: 40px;      /* default desktop size */
  height: auto;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.moon-home:hover {
  transform: scale(1.1);
}


.poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* correct ratio for 2160x2700 posters */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
}


.poster-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* let clicks pass through */
}

.poster-wrapper:hover .poster-frame {
  content: url('/public/images/marquee/poster_arc_001_colorattempt_live.gif');
}




/* Phones */
@media screen and (max-width: 480px) {
  .moon-home {
    width: 25px;
    height: auto;
  }
  img.moon-home {
  width: 25px !important;   /* force it */
  height: auto !important;
  display: inline-block;
}

.comic-header-wrapper {
  height: 50px;
}

}

/* Tablets */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .moon-home {
    width: 48px;
    height: auto;
  }
}


.comic-header {
  display: flex;
  justify-content: space-between; /* pushes moon left, user/cart right */
  align-items: center;
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px;
}

.comic-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* pin all the way left */
}

.comic-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;    /* pin all the way right */
  gap: 12px;
}


