/* =========================
   General Reset
========================= */
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  
  box-sizing: border-box;
}


html {
  overscroll-behavior: none;
  overflow-x: hidden;
  scroll-padding-top: 70px; /* for fixed navbar smooth scrolling */
  height: 100%;
  margin: 0;
}

/* =========================
   Body Setup
========================= */
body {
  font-family: "Arial", "Helvetica", sans-serif;
  line-height: 1.6;
  background-color: white;
  color: rgb(44.7%, 26.4%, 14.5%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  height:auto;
}
/* =========================
   Navbar
========================= */
nav {
  display: flex;
  justify-content: space-between; /* space between logo and nav items */
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgb(44.7%, 26.4%, 14.5%);
  padding: 0 20px; /* small horizontal padding */
  z-index: 9999;
}

.navbar {
  display: flex;
  gap: 2.5rem;              /* space between items */
  list-style: none;
  justify-content: center; /* center nav links horizontally */
  flex: 1;                 /* take available space between logo and buttons */
  align-items: center;
  padding: 0;
  margin: 0;
}
.navbar li.donate {
  margin-left: 20px; /* optional spacing */
}
.navbar a {
  text-decoration: none;
  font-size: large;
  font-weight: bolder;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  color: beige;
}

.navbar li {
  margin-right: 2rem;
}

.navbar li:last-child {
  margin-right: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  left: 0; /* ensure it's anchored left */
}

/* Move the logo a bit left without affecting the nav */
.logo {
  height: 60px;
  width: auto;
  margin-left: 10px; /* 👈 adjust this slightly, e.g., -5px or -15px */
}

.lang-buttons {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: 10px;
}

.lang-buttons button {
  padding: 8px 12px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: beige;
  color: rgb(44.7%, 26.4%, 14.5%);
  transition: background-color 0.3s;
}

.lang-buttons button:hover {
  background-color: rgb(220, 220, 220);
}

/* =========================
   Hamburger Menu Styles
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  gap: 5px;
  position: absolute;
  left: 20px;
  top: 22px;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: beige;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* When menu is active (animated "X") */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hide navbar by default on mobile */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    background-color: rgb(44.7%, 26.4%, 14.5%);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    gap: 1.5rem;
    text-align: center;
  }

  /* Show navbar when active */
  .navbar.active {
    display: contents;  
  }

  .hamburger {
    display: flex;
  }
  .logo{
    margin-right: 9px;
    height: 50px;
  }


  .lang-buttons {
    position:fixed;
    margin-top: 10px;
    right: 10px;
  }
}

/* =========================
   Bible Page Layout
========================= */
main {
  margin-top: 100px; /* keeps navbar from covering content */
  background-color: white; /* restore background */
  color: rgb(44.7%, 26.4%, 14.5%); /* restore text color */
  flex: 1;
}

h1, h2, h3 {
  color: rgb(44.7%, 26.4%, 14.5%);
}



#controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px auto;
  width: 90%;
  max-width: 700px;
  text-align: center;
}

#controls label {
  font-weight: bold;
  color: rgb(44.7%, 26.4%, 14.5%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

#controls select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Search bar */
#search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px auto 40px;
  width: 90%;
  max-width: 500px;
}

#search-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

#search-button {
  padding: 8px 16px;
  border-radius: 6px;
  background-color:rgb(44.7%, 26.4%, 14.5%);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s ease-in-out;
}

#search-button:hover {
  background-color: #0056b3;
}

/* Breadcrumbs */
#breadcrumbs {
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
  color: #555;
}

/* Verse container */
#verse-content {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 80px auto;
  padding: 20px;
  border: 4px solid rgb(44.7%, 26.4%, 14.5%);
  border-radius: 10px;
  background-color: #fafafa;
  margin-bottom: 88px;
 

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


#verse-content h3{
  margin: 30px;
}

#verse-content li{
  margin-top: 30px;
  list-style: none;
}

#view-full-chapter{
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: rgb(44.7%, 26.4%, 14.5%);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.verse-paragraph {
  margin: 6px 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #222;
}

.verse-number {
  font-weight: bold;
  color:rgb(44.7%, 26.4%, 14.5%);
}

/* Pagination (Next/Previous buttons) */
#pagination button{
  margin-top: 30px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 30px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: rgb(44.7%, 26.4%, 14.5%);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
#chapter-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

#chapter-pagination button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: rgb(44.7%, 26.4%, 14.5%);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#chapter-pagination button:hover {
  background-color: #0056b3;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  #controls {
    flex-direction: column;
    align-items: center;
  }

  #verse-content {
    width: 95%;
    padding: 15px;
  }

  #search-container {
    flex-direction: column;
  }

  #chapter-pagination {
    flex-direction: column;
    gap: 15px;
  }
}

/* Style for the verse number */



.bible-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
}

.bible-controls select,
.bible-controls input {
  padding: 10px;
  border: 1px solid rgb(44.7%, 26.4%, 14.5%);
  border-radius: 5px;
  font-size: 16px;
  color: rgb(44.7%, 26.4%, 14.5%);
  background-color: #f7f3ef;
  min-width: 150px;
}

.bible-controls input[type="text"] {
  width: 220px;
}

.bible-controls button {
  padding: 10px 16px;
  border: none;
  background-color: rgb(44.7%, 26.4%, 14.5%);
  color: beige;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
}

.bible-controls button:hover {
  background-color: rgb(70%, 55%, 40%);
}

/* =========================
   Bible Content
========================= */
#bible-content {
  margin-top: 30px;
  padding: 25px;
  background-color: #fdfaf7;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(44.7%, 26.4%, 14.5%, 0.2);
  font-size: 18px;
  line-height: 1.7;
}

#bible-content h3 {
  margin-bottom: 15px;
  color: rgb(44.7%, 26.4%, 14.5%);
}

#bible-content p {
  margin-bottom: 12px;
  text-align: justify;
}

/* =========================
   Search Results
========================= */
#search-results {
  margin-top: 30px;
}

.search-result {
  background-color: #fff;
  border-left: 5px solid rgb(44.7%, 26.4%, 14.5%);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(44.7%, 26.4%, 14.5%, 0.1);
}

.search-result h4 {
  margin-bottom: 8px;
  color: rgb(44.7%, 26.4%, 14.5%);
}

.search-result p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* =========================
   Language Buttons (reuse)
========================= */
.lang-buttons {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: 10px;
}

.lang-buttons button {
  padding: 8px 12px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: beige;
  color: rgb(44.7%, 26.4%, 14.5%);
  transition: background-color 0.3s;
}

.lang-buttons button:hover {
  background-color: rgb(220, 220, 220);
}

/* === Donate Modal === */
.donate-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.donate-content {
  background: #fff;
  padding: 25px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;       /* 👈 key fix */
  overflow-y: auto;       /* 👈 enables scrolling */
  text-align: center;
  border-radius: 12px;
  position: relative;
}


.zelle-qr {
  width: 100%;
  max-width: 400px;  /* large but safe */
  height: auto;
  margin: 15px auto;
  display: block;
  border: 3px solid #444; /* dark gray border */
  border-radius: 8px;     /* optional rounded corners */
}


.zelle-email {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.zelle-email:hover {
  text-decoration: underline;
}

.divider {
  margin: 15px 0;
  font-weight: bold;
  color: #777;
}

.donate-btn {
  background: beige;
  color: rgb(44.7%, 26.4%, 14.5%);
  border: none;
  padding: 8px 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

.donate-btn:hover {
  background: #e5e5e5;
}

/* Close button for Donate Modal */
.close-donate {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #eee;           /* subtle background */
    color: #333;                /* text color */
    border: none;               /* remove default border */
    font-size: 20px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;         /* circular button */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* subtle shadow */
    transition: background 0.3s, transform 0.2s;
}

.close-donate:hover {
    background: #ddd;
    transform: scale(1.1);       /* slight zoom on hover */
}


@media (max-width: 768px) {
  .donate-content {
    padding: 20px 15px;
    border-radius: 20px 20px 0 0;
  }

  .zelle-qr {
    max-width: 280px;
  }
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  main {
    padding: 15px 5%;
  }

  .bible-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .bible-controls select,
  .bible-controls input,
  .bible-controls button {
    width: 100%;
  }

  #bible-content {
    font-size: 16px;
  }
}
/* Tablet */
@media (max-width: 1024px) {
  .container { max-width: 80%; }
  .navbar li { margin-right: 1.5rem; }
  .navbar { padding-left: 0; gap: 2rem; }
  .title-container { margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
  nav {
    height: auto;
    padding: 10px 0;
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-left: 0;
  }

  .lang-buttons {
    margin: 10px 0;
    justify-content: center;
  }

  .home { height: 60vh; padding: 20px; }
}
footer {
  background-color: #222;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* evenly distribute columns */
  flex-wrap: wrap;
  padding: 40px 10%;
  gap: 30px; /* smaller spacing */
}

.footer-section h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section p,
.footer-section a {
  margin-bottom: 10px;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-section a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  padding: 20px 10%;
  background-color: #111;
  font-size: 13px;
  margin-top: 20px;
}

footer li {
  font-size: larger;
}
footer ul {
  list-style-type: disc;   /* show bullets */
  padding-left: 1.2rem;    /* space for bullets */
  margin: 0 0 10px 0;       /* optional spacing */
}
#social ul {
  display: flex;
  flex-direction: column; /* stack vertically on desktop */
  gap: 5px;              /* spacing between items */
  padding: 0;
  margin: 0;
}


/* Responsive for mobile */
@media (max-width: 768px) {
  footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
    #social ul {
    flex-direction: row;      /* stack horizontally on mobile */
    justify-content: center;  /* center the row */
    gap: 30px;                /* spacing between items */
  }
}



/* =========================
   Responsive Layout
========================= */

/* Tablet */
@media (max-width: 1024px) {
  .container { max-width: 80%; }
  .navbar li { margin-right: 1.5rem; }
  .navbar { padding-left: 0; gap: 2rem; }
  .title-container { margin-left: auto; margin-right: auto; }
}