/* =========================================================
   GLOBAL PAGE STYLING
   (fonts, body, headings, links)
========================================================= */
body {
  margin: 0;
  padding: 30px;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #FF6395;
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
}

/* Define one class per background tile */
.bg1 { background-image: url("images/bg1.png"); }
.bg2 { background-image: url("images/bg2.png"); }
.bg3 { background-image: url("images/bg3.png"); }
.bg4 { background-image: url("images/bg4.png"); }
.bg5 { background-image: url("images/bg5.jpg"); }
.bg6 { background-image: url("images/bg6.png"); }
.bg7 { background-image: url("images/bg7.jpg"); }
.bg8 { background-image: url("images/bg8.png"); }
.bg9 { background-image: url("images/bg9.png"); }
.bg10 { background-image: url("images/bg10.png"); }

h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.4rem;
  color: #1a1a1a;
}

p {
  max-width: 760px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
  font-weight: bold;
}

a {
  color: #0057d8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Make images feel clickable */
.para-with-list img {
  cursor: pointer;
}

/* =========================================================
   PARAGRAPH-WITH-GRID BLOCK
   (wraps the paragraph + list in the same visual box)
========================================================= */

.para-with-list {
  max-width: 900px;
  margin: 20px auto;
  padding: 18px;
  background: white;
  border: 3px solid #000000;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(255, 135, 60, 0.1);
  color: #222;
}

.para-with-list p {
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* =========================================================
   INLINE GRID FOR LIST ITEMS
   (makes <li> appear in a grid and removes bullets)
   ALSO: HIDE BY DEFAULT, SHOW ON .show-word
========================================================= */

.inline-grid {
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none; /* removes bullets */

  /* HIDDEN BY DEFAULT */
  display: none;
}

/* When the image is clicked, JS adds .show-word */
.inline-grid.show-word {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

/* Individual tile styling */
.inline-grid li {
  background: #D1FEB8;
  border: 2px solid rgba(255, 150, 70, 0.25);
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Hover effect */
.inline-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 141, 255, 0.27);
}
