/* ========================================
   Bible‑It.com Custom Styles
   ======================================== */

/* ✅ Input wrapper keeps spinner and preview aligned */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* ✅ Input stretches full width and is unaffected by preview */
#searchInput {
  flex: 1;
}

/* ✅ Spinner aligns to right side, vertically centered */
#searchSpinner {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  display: none;
  z-index: 20;
}

/* ✅ Preview container floats below input, doesn't push layout */
#parentPreview {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 15;
}

/* ✅ Preview box hidden by default */
#previewDiv {
  display: none;
  visibility: hidden;
  position: relative;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* ✅ When shown */
.show_pre {
  display: block !important;
  visibility: visible !important;
}

/* ✅ “No results” message stays inside preview area */
#noResultsMsg {
  background-color: #fff;
  padding: 0.5rem;
}

/* ✅ Subtle golden pulse for logo */
@keyframes goldenPulse {
  0%, 100% {
    background-color: rgba(255, 215, 0, 0);
  }
  50% {
    background-color: rgba(255, 215, 0, 0.08);
  }
}

.bible-logo-pulse {
  animation: goldenPulse 15s ease-in-out infinite;
  display: inline;
  border-radius: 0.25rem;
}

/* ✅ Preview suggestion hover effect */
.search-bar-results div:hover {
  background-color: #e2e6ea;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

/* ✅ Clear bottom border class */
.clear_bottom {
  border-bottom: none;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* ✅ Focus cleanup */
.form-control:focus {
  box-shadow: none;
  border: 1px solid #ced4da;
}

/* ✅ Custom “X” icon in search input */
input {
  -webkit-appearance: searchfield;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button;
  height: 10px;
  width: 10px;
  display: inline-block;
  background: blue;
}

/* ✅ Global layout and style */
body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 18px;
}

.float {
  position: fixed;
  width: 48px;
  height: 48px;
  bottom: 45px;
  right: 25px;
  background-color: #034748;
  color: white;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
}

.my-float {
  margin-top: 15px;
}

.set-border {
  border-style: ridge;
}

#answerPreview {
  text-align: start;
}
