/* Base layout */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
}

/* Main bordered container */
.border {
  width: 95%;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 10px solid #007bff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  background: white;
  padding: 20px;
}

/* Inner containers */
.bb_container,
.container {
  text-align: center;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  background-image: url('splash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Cross-reference layout */
.cr_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.container-row {
  display: flex;
  justify-content: space-between;
  margin: 20px;
}

.sub-container {
  flex: 1;
  background-color: #eaeaea;
  color: #333333;
  padding: 20px;
  margin: 0 10px;
  border-radius: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Query box styling */
.query-details .box {
  width: 100%;
  max-width: 400px;
  padding: 15px;
  background-color: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: center;
}

.query-details .box:nth-child(odd) {
  background-color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .border {
    width: 100%;
    border-width: 5px;
  }

  .container {
    max-width: 90%;
  }

  .query-details .box {
    width: 100%;
    font-size: 1em;
    padding: 10px;
  }

  .modal-content {
    margin: 20% auto;
    padding: 16px;
    font-size: 16px;
  }
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  position: relative;
}

/* Scripture text scrollable */
#scripture-text {
  max-height: 70vh;
  overflow-y: auto;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Scripture link styling */
.scripture-link {
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
  margin-right: 8px;
}

/* A–Z filter styling */
.az-filter {
  margin: 10px 0;
  text-align: center;
}

.az-link {
  display: inline-block;
  margin: 2px;
  padding: 4px 8px;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.az-link:hover {
  background-color: #ccc;
}

/* Pagination styling */
.pagination {
  text-align: center;
  margin: 20px 0;
}

.page-link {
  display: inline-block;
  margin: 2px;
  padding: 6px 10px;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.page-link:hover {
  background-color: #ccc;
}
