/* ============================================================
   GLOBAL BUTTON COLOR FIXES
   ============================================================ */
.download-btn,
.contactMeButton,
.toggleDarkMode,
.followMeButton {
    color: #fff !important;
}

/* ============================================================
   DARK MODE BASE
   ============================================================ */
body.dark-mode {
    background-color: #121212 !important;
    color: #39ff14 !important;
}

/* ============================================================
   REMOVE CONSENT BANNERS
   ============================================================ */
[id*="consent"], [class*="consent"],
[id*="cookie"], [class*="cookie"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* ============================================================
   THEME VARIABLES
   ============================================================ */
:root {
  --primary-color: #4CAF50;
  --secondary-color: #007BFF;
  --text-color: #333;
  --background-color: #f4f4f4;
  --header-footer-bg: #333;
  --header-footer-text: #fff;
  --shadow-color: rgba(0,0,0,0.1);
  --dark-bg: #121212;
  --dark-text: #ffffff;
  --dark-header-footer: #1e1e1e;
}

/* ============================================================
   GLOBAL RESET (NO FLEX BODY)
   ============================================================ */
html, body {
  height: auto;
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--background-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ============================================================
   DARK MODE HEADER/FOOTER
   ============================================================ */
body.dark-mode header,
body.dark-mode footer {
  background-color: var(--dark-header-footer);
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
main {
  padding-bottom: 90px; /* matches footer height */
  box-sizing: border-box;
  min-height: calc(100vh - 90px);
}

/* ============================================================
   HEADER + FOOTER
   ============================================================ */
header, footer {
  background-color: var(--header-footer-bg);
  color: var(--header-footer-text);
  text-align: center;
  padding: 1rem;
}

/* ============================================================
   FIXED FOOTER (MATCHES PAGES 3, 4, BIBLE)
   ============================================================ */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  padding: 1rem 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  box-sizing: border-box;
}

footer img {
  height: 32px;
  width: 120px;
}

/* ============================================================
   SITE TITLE AREA
   ============================================================ */
.site-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.site-title .title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  line-height: 1.2;
}

/* ============================================================
   HEADER ICON
   ============================================================ */
.site-title .icon {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.site-title .icon:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .site-title .icon {
    max-width: 120px;
    max-height: 120px;
  }
}

/* ============================================================
   GIF LAYOUT — MATCH PAGES 3, 4, BIBLE
   ============================================================ */
.gif-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0 0 0;
  justify-content: center;
  border-bottom: none;
}

.gif-item {
  width: calc(33.33% - 1rem);
  min-width: 200px;
  max-width: 300px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: transparent;
  border: none;
  outline: none;
}

.gif-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: block;
}


/* ============================================================
   DOWNLOAD BUTTONS
   ============================================================ */
.download-container {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  margin-top: -0.5rem;
}

.download-btn,
#contactMeButton,
#toggleDarkMode,
#followMeButton {
  background-color: var(--primary-color);
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 0.35rem;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.download-btn:hover,
#contactMeButton:hover,
#toggleDarkMode:hover,
#followMeButton:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT ME BUTTON — CENTERED & CORRECT
   ============================================================ */
.contact-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto 1.5rem auto;
  width: 100%;
}

/* ============================================================
   PAGINATION — CLEANED & STABLE
   ============================================================ */
.pagination {
  width: 100%;
  padding: 14px 0;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
}

.pagination a,
.pagination span {
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  background: #fff;
  color: #0066cc;
  border: 1px solid #0066cc;
}

.pagination span {
  background: #004a99;
  color: #eee;
}

/* Dark mode pagination */
body.dark-mode .pagination {
  background-color: #fff !important;
}

body.dark-mode .pagination a {
  background: #fff;
  color: #009966;
  border-color: #009966;
}

body.dark-mode .pagination span {
  background: #007a43;
  color: #b4f3c8;
}

/* ============================================================
   UNIQUE INTRO BOX
   ============================================================ */
.unique-intro {
  margin: 40px auto 20px auto;
  max-width: 850px;
  font-size: 20px;
  background: #eaeecb;
  color: #222;
  border-radius: 16px;
  padding: 28px 34px;
  border: 3px solid #89A542;
  font-style: italic;
  box-shadow: 0 3px 14px rgba(0,0,0,0.14);
}

body.dark-mode .unique-intro {
  background: #282e18;
  color: #f4f4f4;
  border-color: #97cf53;
}

/* ============================================================
   FULLSIZE OVERLAY
   ============================================================ */
.fullsize-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000 !important;
  backdrop-filter: blur(4px);
}

.fullsize-overlay.active {
  display: flex !important;
}

.fullsize-image {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}
/* Center the theme toggle + follow buttons on all pages */
.header-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
.header-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem; /* Add this line */
}



/* --- End of CSS B --- */
