html,
body {
  height: 100%;
  margin: 0;
  font-family: "Georgia", serif;
  background-color: #e6f2ff; /* Light blue */
}

/* 🟠 Main content box (Homepage, Collection, Content) */
main,
.main-page,
.page-main {
  background-color: #fff7e6 !important; /* Light orange inside the border */
  border: 2px solid #99ccff !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  max-width: 800px !important;
  width: 90% !important;
  margin: 2rem auto !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
}

/* Default: left align main content */
main {
  text-align: left;
}
.page-main {
  text-align: left;
}

/* ✍️ Homepage intro styles */
.homepage-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-left: 3px solid #ccc;
  border-right: 3px solid #ccc;
  color: #333;
}

/* 🏷️ Title */
.site-title {
  text-align: center;
  font-size: 2.5rem;
  color: #5a3e2b;
  margin-bottom: 1rem;
}

/* 🌿 Tagline block */
.tagline blockquote {
  font-style: italic;
  text-align: center;
  color: #4a3c2a;
  margin: 1rem auto;
  padding: 1rem;
  background-color: #fdf6f0;
  border-left: 4px solid #d8a56f;
  border-radius: 4px;
}

/* 📌 Header & Footer */
.site-header,
.site-footer {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}
/* 🧭 Navigation section */
.navigation {
  margin-top: 2rem;
  text-align: center;
}

.navigation h2 {
  font-size: 1.5rem;
  color: #5a3e2b;
  margin-bottom: 1rem;
}

.navigation ul {
  list-style: none;
  padding: 0;
}

.navigation li {
  display: inline-block;
  margin: 0 1rem;
}

.navigation a {
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
}

.navigation a:hover {
  text-decoration: underline;
  color: #004999;
}
/* Blue bubble styling */
.blue-bubble {
  text-align: center !important;
  font-weight: bold !important;
  font-size: 1.2rem !important;
  background: linear-gradient(135deg, #4a90e2, #357abd) !important;
  color: white !important;
  padding: 15px 25px !important;
  border-radius: 25px !important;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
  margin: 20px auto !important;
  max-width: 600px !important;
  border: 2px solid #2e5a8a !important;
  display: block !important;
}

/* Ensure squiggly lines display properly */
.squiggly {
  text-align: center !important;
  font-weight: bold !important;
  font-size: 1.2rem !important;
  margin: 10px 0 !important;
}

/* 🟦 Bubble button links for homepage */
.bubble-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.bubble-buttons a {
  display: inline-block;
  padding: 0.4em 0.9em;
  border-radius: 2em;
  background: #e0f0ff;
  color: #1a3a5e;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 2px solid #b3d8ff;
}

.bubble-buttons a:hover,
.bubble-buttons a:focus {
  background: #b3d8ff;
  color: #0a223a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.detour-highlight {
  font-size: 1.5rem !important;
  color: #d7263d !important; /* Bright contrasting red */
  font-weight: bold !important;
  text-align: center !important;
  margin: 1rem 0 !important;
  letter-spacing: 0.02em !important;
  background: #fffbe6 !important; /* Optional: pale yellow background for even more contrast */
  padding: 0.5em 0 !important;
  border-radius: 0.5em !important;
  display: block !important;
}
/* Tooltip dictionary styles */
.dictionary-tooltip {
  border-bottom: 1px dotted #d7263d;
  cursor: help;
  position: relative;
}

.dictionary-tooltip[data-definition]:hover::after {
  content: attr(data-definition);
  position: absolute;
  left: 0;
  bottom: 120%;
  background: #fffbe6;
  color: #333;
  border: 1px solid #d7263d;
  border-radius: 6px;
  padding: 0.5em 1em;
  white-space: pre-line;
  font-size: 0.95em;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  max-width: 320px;
  pointer-events: none;
}

/* Center content for collection index pages ONLY */
body.collection-index main,
body.collection-index .main-page {
  text-align: center !important;
}

/* Center headings and paragraphs, but NOT lists */
body.collection-index main > h1,
body.collection-index main > h2,
body.collection-index main > h3,
body.collection-index main > h4,
body.collection-index main > h5,
body.collection-index main > h6,
body.collection-index main > p,
body.collection-index main > div,
body.collection-index main > section {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Keep lists left-aligned and nicely formatted */
body.collection-index main ul,
body.collection-index main ol {
  display: inline-block !important;
  text-align: left !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.collection-index main li {
  text-align: left !important;
}
/* Center homepage intro and psalm verse */
.homepage-intro {
  text-align: center;
  margin: 2rem auto 1.5rem auto;
  max-width: 600px;
}

.psalm-verse {
  text-align: center;
  margin: 1.5rem auto;
  max-width: 700px;
}
