
/* ===== GLOBAL ===== */
body {
  background-color: black;
  color: white;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ===== DARK PAGE ===== */
body.dark-page {
  background-color: #1a1a1a;
  color: white;
}

/* ===== BANNER ===== */
.banner-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: #111;
  padding: 10px;
  text-align: center;
}

.navbar a {
  margin: 0 10px;
  text-decoration: none;
  color: white;
}

.navbar a:hover {
  background: gold;
  color: black;
}

/* ===== GENERAL CONTAINERS ===== */
.container {
  text-align: center;
  padding: 20px;
}

.images img {
  width: 80%;
  max-width: 600px;
  margin: 15px auto;
  display: block;
}

/* ===== HISTORY PAGE ===== */
.history-layout {
  display: flex;
  flex-wrap: wrap;
}

/* TRIANGLE */
.triangle-section {
  width: 50%;
  height: 400px;
  background-color: #3498db;

  clip-path: polygon(0 0, 100% 0, 0 100%);

  background-image: url("cloud.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
}

.triangle-section img {
  width: 70%;
  border: 3px solid white;
}

/* BRICK TEXT */
.brick-section {
  width: 50%;
  padding: 30px;
  background-color: #3a3a3a;

  background-image: 
    linear-gradient(#2a2a2a 2px, transparent 2px),
    linear-gradient(90deg, #2a2a2a 2px, transparent 2px);

  background-size: 60px 30px;
}

/* ===== BRICK LAYOUT (OTHER PAGE) ===== */
.brick-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brick {
  width: 45%;
  min-height: 200px;
  background-color: #2b2b2b;
  border: 4px solid #444;
  padding: 15px;
  box-sizing: border-box;
}

.text-brick {
  color: white;
  font-size: 16px;
}

.image-brick {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-brick img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ===== FULL WIDTH IMAGE ===== */
.full-width-banner img {
  width: 100%;
  height: auto;
  margin: 30px 0;
}

/* ===== CHARACTER SECTION ===== */
.character-info {
  background-color: #1a1a1a;
  padding: 20px;
  border: 3px solid #444;
}

/* ===== WINDOW SECTION ===== */
.window-container {
  display: flex;
  justify-content: space-between;
  margin: 40px;
  padding: 20px;
  border: 10px solid #8b5a2b;
  background-color: #4da6ff;
  border-radius: 5px;
}

.window-left,
.window-right {
  width: 45%;
}

.window-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== FACTS PAGE ONLY ===== */
body.facts-page .window-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;

  margin: 40px;
  padding: 30px;

  border: 10px solid #8b5a2b;
  background-color: #4da6ff;
}

/* LEFT SIDE (TEXT) */
body.facts-page .window-left {
  width: 50%;
  display: flex;
  align-items: center;
}

/* TEXT BOX */
body.facts-page .cloud {
  background: url('cloud.png') no-repeat center;
  background-size: contain;

  padding: 40px 30px;
  width: 100%;

  color: black;
}

/* HEADING STYLE */
body.facts-page h2 {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.2em;
  margin-bottom: 15px;
}

/* LIST STYLE */
body.facts-page ul {
  font-size: 1.2rem;
  line-height: 1.8;
  padding-left: 20px;
}

/* RIGHT SIDE (IMAGES) */
body.facts-page .window-right {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* IMAGES */
body.facts-page .window-right img {
  width: 100%;
  max-width: 250px;
  height: auto;

  border: 3px solid #8b5a2b;
  border-radius: 8px;

  display: block;
  margin: 0 auto;
}

/* SEPARATORS */
body.facts-page .image-separator {
  width: 60%;
  height: 4px;
  background-color: #8b5a2b;
  margin: 10px auto;
}

/* CENTER LINE */
body.facts-page .window-middle-line {
  width: 4px;
  background-color: #8b5a2b;
}

.window-right img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border: 3px solid #8b5a2b;
  border-radius: 5px;
}

.cloud {
  background: url('cloud.png') no-repeat center;
  background-size: contain;
  padding: 30px 20px;
  min-height: 250px;
  color: black;
}

/* Divider line */
.window-middle-line {
  width: 4px;
  background-color: #8b5a2b;
  margin: 0 10px;
}

/* Image separator */
.image-separator {
  width: 80%;
  height: 4px;
  background-color: #8b5a2b;
  margin: 15px 0;
}

/* ===== GAMEPLAY PAGE ONLY ===== */
body.gameplay-page .spray-blob {
  position: relative;
  background: radial-gradient(circle, #ffd700, #e0b800);
  width: 70%;
  margin: 30px auto;
  padding: 60px 20px;
  border-radius: 50%;
  text-align: center;
}

/* Title */
body.gameplay-page .spray-blob h2 {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.5em;
  color: black;
}

/* GIF */
body.gameplay-page .gameplay-gif {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 4px solid #e0b800;
  border-radius: 12px;
  display: block;
  margin: 20px auto;
}

/* Hints layout */
body.gameplay-page .hints-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 40px 20px;
}

/* Hint bricks */
body.gameplay-page .hint-brick {
  flex: 1 1 200px;
  background-color: #222;
  border: 2px solid #555;
  padding: 15px;
  text-align: center;

  font-family: 'Permanent Marker', cursive;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {

  .history-layout {
    flex-direction: column;
  }

  .triangle-section,
  .brick-section {
    width: 100%;
  }

  .window-container {
    flex-direction: column;
    align-items: center;
  }

  .window-left,
  .window-right {
    width: 90%;
  }

  .window-middle-line {
    width: 100%;
    height: 4px;
    margin: 20px 0;
  }
}

/* ===== HISTORY PAGE ONLY (SAFE - DOES NOT AFFECT OTHER PAGES) ===== */

body.history-page .history-layout {
  display: flex;
  align-items: stretch;
}

/* LEFT COLUMN */
body.history-page .asset-column {
  width: 40%;
  padding: 20px;
  background-color: #111;

  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* TRIANGLE FIX */
body.history-page .triangle-section {
  width: 100%;
  height: 250px;

  clip-path: polygon(0 0, 100% 0, 0 100%);

  display: flex;
  align-items: center;
  justify-content: center;
}

body.history-page .triangle-section img {
  width: 70%;
  border: 3px solid white;
}

/* ASSET FIXES */
body.history-page .asset {
  text-align: center;
}

body.history-page .asset img {
  width: 100%;
  max-width: 220px;
  height: auto;

  display: block;
  margin: 0 auto 10px;

  border: 2px solid #555;
  border-radius: 6px;
}

body.history-page .asset p {
  font-size: 14px;
  color: #ccc;
}

/* RIGHT SIDE */
body.history-page .brick-section {
  width: 60%;
  padding: 40px;

  background-color: #2a2a2a;

  background-image: 
    linear-gradient(#1c1c1c 2px, transparent 2px),
    linear-gradient(90deg, #1c1c1c 2px, transparent 2px);

  background-size: 50px 50px;
}

/* TEXT STYLE */
body.history-page .brick-section h1 {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.8em;
  color: #ffd700;
  margin-bottom: 20px;
}

body.history-page .brick-section p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* MOBILE FIX */
@media (max-width: 800px) {
  body.history-page .history-layout {
    flex-direction: column;
  }

  body.history-page .asset-column,
  body.history-page .brick-section {
    width: 100%;
  }
}

/* ===== STORY PAGE ONLY ===== */
body.story-page .text-brick {
  font-size: clamp(18px, 2vw, 22px); /* responsive scaling */
  line-height: 1.6;
  padding: 20px;
}

/* Make bricks slightly taller so text has room */
body.story-page .brick {
  min-height: 220px;
}

/* Improve heading */
body.story-page h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
}

/* Character section readability */
body.story-page .character-info p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

/* ===== MOBILE FIXES (STORY PAGE ONLY) ===== */
@media (max-width: 800px) {

  body.story-page .brick-row {
    flex-direction: column;
    gap: 15px;
  }

  body.story-page .brick {
    width: 100%;
  }

  body.story-page .image-brick img {
    max-height: 200px;
  }

  body.story-page .text-brick {
    font-size: 18px; /* consistent readable size */
  }
}

/* ===== FACTS PAGE MOBILE IMPROVEMENTS ===== */
@media (max-width: 800px) {

  body.facts-page .window-container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 20px;
  }

  /* Make panels full width */
  body.facts-page .window-left,
  body.facts-page .window-right {
    width: 100%;
  }

  /* Fix divider line */
  body.facts-page .window-middle-line {
    width: 80%;
    height: 4px;
    margin: 20px 0;
  }

  /* Improve text readability */
  body.facts-page h2 {
    font-size: clamp(24px, 5vw, 32px);
    text-align: center;
  }

  body.facts-page ul {
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.6;
  }

  /* Improve cloud spacing */
  body.facts-page .cloud {
    padding: 30px 20px;
    text-align: center;
  }

  /* Better image sizing */
  body.facts-page .window-right img {
    max-width: 200px;
  }

  /* Center separators */
  body.facts-page .image-separator {
    width: 50%;
  }
}
/* ===== GAMEPLAY PAGE MOBILE IMPROVEMENTS ===== */
@media (max-width: 800px) {

  /* Spray blob becomes more rectangular (better for phones) */
  body.gameplay-page .spray-blob {
    width: 90%;
    padding: 30px 15px;
    border-radius: 25px;
  }

  /* Title scales nicely */
  body.gameplay-page .spray-blob h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  /* GIF scales better */
  body.gameplay-page .gameplay-gif {
    max-width: 100%;
    border-width: 3px;
  }

  /* Stack hint boxes vertically */
  body.gameplay-page .hints-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* ✅ AUTO-SIZING HINT BOXES */
  body.gameplay-page .hint-brick {
    width: 90%;
    font-size: 18px;
    padding: 14px;

    /* KEY FIXES */
    height: auto;              /* box grows with text */
    min-height: unset;         /* removes forced height */
    flex: none;                /* stops flex stretching */
    line-height: 1.5;          /* better spacing */
    word-wrap: break-word;     /* prevents overflow */
  }
}

/* ===== HISTORY PAGE MOBILE IMPROVEMENTS ===== */
@media (max-width: 800px) {

  /* Stack main layout cleanly */
  body.history-page .history-layout {
    flex-direction: column;
    align-items: center;
  }

  /* Make both sides full width */
  body.history-page .asset-column,
  body.history-page .brick-section {
    width: 100%;
  }

  /* Reduce padding for mobile */
  body.history-page .asset-column {
    padding: 15px;
    gap: 20px;
  }

  body.history-page .brick-section {
    padding: 20px;
  }

  /* Improve heading readability */
  body.history-page .brick-section h1 {
    font-size: clamp(24px, 6vw, 34px);
    text-align: center;
  }

  /* Improve paragraph spacing */
  body.history-page .brick-section p {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
  }

  /* Triangle section scales better */
  body.history-page .triangle-section {
    height: 180px;
  }

  body.history-page .triangle-section img {
    width: 60%;
  }

  /* Assets become cleaner cards */
  body.history-page .asset {
    width: 100%;
    text-align: center;
  }

  body.history-page .asset img {
    max-width: 180px;
  }

  body.history-page .asset p {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* ===== FACTS PAGE TEXT SIZE IMPROVEMENT ===== */

/* Bigger heading */
body.facts-page h2 {
  font-size: 2.6em; /* was 2.2em */
  letter-spacing: 1px;
}

/* Bigger list text */
body.facts-page ul {
  font-size: 1.35rem; /* increased from 1.2rem */
  line-height: 1.9;
}

/* Improve cloud readability + spacing */
body.facts-page .cloud {
  padding: 45px 35px;
  min-height: 300px;
}

/* Slightly stronger spacing between items */
body.facts-page ul li {
  margin-bottom: 8px;
}

/* Make right-side images feel less cramped */
body.facts-page .window-right img {
  max-width: 270px;
}