/* ========================
   MAIN CSS – Comic Book Theme
   Shared styles across all pages
========================= */

/* ---- FONT IMPORT ---- */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

/* ---- RESET & BASE ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Andale Mono', 'Segoe UI', sans-serif;
  background-color: #e6a74c;
  color: #333;
  line-height: 1.6;
}

body, html {
  height: 100%;
}

/* ---- COMIC BOOK CONTAINER ---- */
.comic-book {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.comic-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  background-color: #f7f2e4;
  min-height: 100vh;
}
.full-page-comic {
    width: 100vw;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    /*border: 3px solid #000;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.3);*/
  }

  
/* ---- SPREAD LAYOUT ---- */
.two-page-spread {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  min-height: calc(100vh - 100px);
  background-color: #f2e7c9 
}


@media (max-width: 768px) {
    .comic-illustration {
      padding: 0; /* Remove extra padding */
      margin: 0 auto; /* Center horizontally if needed */
    }
  
    .full-page-comic {
      width: 100vw;  /* Use full viewport width */
      height: auto;
      max-width: 100%;
      display: block;
    }
  }
  

/* ---- NAVIGATION ---- */
.page-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  gap: 15px;
}
.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #e6a74c;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-button:hover {
  transform: scale(1.1);
  background-color: #d95e40;
}

.nav-button:active {
  transform: scale(0.95);
}

.nav-icon {
  width: 24px;
  height: 24px;
  fill: #333;
}

.page-indicator {
  font-family: 'Bangers', cursive;
  font-size: 18px;
  padding: 0 15px;
}

/* ---- TITLES ---- */
.title-box {
  background-color: #e6a74c;
  color: #000;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  border: 4px solid #000;
  position: relative;
}

.title-text {
  font-family: 'Bangers', cursive;
  font-size: 48px;
  letter-spacing: 2px;
  text-shadow: 4px 4px 0 #000, 7px 7px 0 rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.starburst {
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: #d95e40;
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(15deg);
  font-family: 'Bangers', cursive;
  font-size: 20px;
  z-index: 2;
}

/* ---- SECTIONS / PANELS ---- */
.section {
  margin-bottom: 25px;
  padding: 15px;
  background-color: #86b6c6;
  border: 3px solid #000;
  position: relative;
}

.section.alt-color {
  background-color: #9a7bb8;
  color: #fff;
}

.section.highlight {
  background-color: #d95e40;
  color: #fff;
}

.section-title {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  margin-bottom: 10px;
  background-color: #e6a74c;
  display: inline-block;
  padding: 5px 15px;
  border: 2px solid #000;
  transform: rotate(-2deg);
  position: relative;
  top: -25px;
  left: -5px;
}

.section-content {
  font-size: 16px;
  line-height: 1.5;
  padding: 1rem 1.25rem;
}
@media (max-width: 600px) {
    .section-content {
      padding: 0.75rem 1rem;
    }
  }
/* ---- COMIC VISUAL ELEMENTS ---- */
.comic-panel {
  margin: 20px 0;
  background-color: #86b6c6;
  border: 3px solid #000;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ---- BUBBLES ---- */
.speech-bubble,
.thought-bubble {
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 10px;
  position: relative;
  max-width: 250px;
}

.speech-bubble.alt {
  background-color: #f2e7c9;
}

.speech-bubble::after,
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  margin-left: -15px;
  border: 15px solid transparent;
  z-index: 1;
}

.speech-bubble::after {
  border-top-color: #fff;
}

.speech-bubble::before {
  bottom: -18px;
  border: 17px solid transparent;
  border-top-color: #000;
  z-index: 0;
}

.thought-bubble::before,
.thought-bubble::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #000;
}

.thought-bubble::before {
  bottom: -30px;
  left: 30px;
  width: 20px;
  height: 20px;
}

.thought-bubble::after {
  bottom: -45px;
  left: 20px;
  width: 10px;
  height: 10px;
}

/* ---- LIST STYLING ---- */
.bullet-list {
  list-style: none;
  padding-left: 5px;
}

.bullet-list li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 30px;
}

.bullet-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Bangers', cursive;
  background-color: #d95e40;
  color: #fff;
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 50%;
  line-height: 20px;
  font-weight: bold;
  border: 2px solid #000;
}

/* ---- CHARACTERS ---- */
.character {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.robot-body {
  width: 120px;
  height: 170px;
  background-color: #86b6c6;
  border: 2px solid #000;
  border-radius: 30px 30px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.robot-head {
  background-color: #333;
  width: 100px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.robot-eye {
  background-color: #e6a74c;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #000;
  margin: 5px;
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-large { font-size: 1.2em; }
.text-small { font-size: 0.8em; }
.bold { font-weight: bold; }
.italic { font-style: italic; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---- ANIMATIONS ---- */
.hover-grow {
  transition: transform 0.2s ease;
}
.hover-grow:hover {
  transform: scale(1.05);
}
.rotate-1 { transform: rotate(1deg); }
.rotate-neg-1 { transform: rotate(-1deg); }

/* ---- COLORS ---- */
.bg-yellow { background-color: #e6a74c; }
.bg-red { background-color: #d95e40; }
.bg-blue { background-color: #86b6c6; }
.bg-purple { background-color: #9a7bb8; }
.bg-green { background-color: #5b8a71; }
.bg-beige { background-color: #f2e7c9; }

/* ---- TOC GRID ---- */
.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.toc-item {
  background-color: #fff;
  border: 3px solid #000;
  padding: 15px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toc-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toc-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background-color: #d95e40;
  color: #fff;
  font-family: 'Bangers', cursive;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toc-title {
  font-family: 'Bangers', cursive;
  font-size: 22px;
  margin-bottom: 10px;
}

/* ---- COVER PAGE ---- */
.comic-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  background-color: #e6a74c;
  background-image: linear-gradient(45deg, #e6a74c 0%, #d95e40 100%);
  padding: 20px;
}

.cover-title {
  font-family: 'Bangers', cursive;
  font-size: 72px;
  color: #fff;
  text-shadow: 4px 4px 0 #000;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.cover-subtitle {
  font-family: 'Bangers', cursive;
  font-size: 36px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 40px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .comic-page { padding: 15px; }
  .title-text { font-size: 36px; }
  .comic-panel { flex-direction: column; }
  .section-title { font-size: 20px; }
  .cover-title { font-size: 48px; }
  .cover-subtitle { font-size: 24px; }
  .page-navigation { padding: 5px; }
  .nav-button { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .comic-page { padding: 10px; }
  .title-text { font-size: 28px; }
  .section-content { font-size: 14px; }
  .cover-title { font-size: 36px; }
  .section-title { font-size: 18px; left: 0; }
  .starburst { width: 50px; height: 50px; font-size: 16px; }
}

/* ---- PRINT ---- */
@media print {
  body { background-color: #fff; }
  .comic-page { box-shadow: none; margin: 0; padding: 0; max-width: 100%; }
  .page-navigation { display: none; }
  .two-page-spread { page-break-inside: avoid; }
  .comic-panel, .section { break-inside: avoid; }
}

/* ---- FEEDBACK BUTTONS ---- */
.feedback-button,
.feedback-button1 {
  position: fixed;
  top: 20px;
  background-color: red;
  color: #fff;
  font-family: 'Courier New', cursive;
  font-size: 16px;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 8px 15px;
  z-index: 10;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-button {
  right: 20px;
  left: auto;
}

.feedback-button1 {
  left: 20px;
  right: auto;
}

.feedback-button:hover,
.feedback-button1:hover {
  transform: translateY(-3px);
  background-color: #e6a74c;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.4);
}

.feedback-button:active,
.feedback-button1:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
