/* =======================
   BIBLE PAGE STYLES
======================= */
p {
  font-family: "Raleway", sans-serif;
  padding-left: 10%;
  padding-right: 10%;
  color: black;
}

hr {
  width: 75%;
  margin: auto;
}

.passage-paragraph {
  margin-bottom: 1em;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.75em;
  font-size: 1.05em;
}

.passage-paragraph::before {
  content: '';
}

.passage-paragraph sup {
  line-height: 0;
}

.passage-paragraph sup.verse {
  vertical-align: super;
  font-size: 0.75em;
  font-weight: 600;
  margin-right: 0.15em;
}

.passage-heading {
  font-size: .9em;
  font-weight: bold;
  text-align: left;
  margin-left: 12%;
  margin-top: 2em;
  margin-bottom: 0.5em;
  padding-bottom: 0.2em;
  text-decoration: underline;
}

.verse {
  vertical-align: super;
  font-size: 0.75em;
  font-weight: 600;
  margin-right: 0.15em;
}

.verse-footnote {
    font-size: 0.75em;
}

.verse-footnote a {
    text-decoration: none;
    color: #888;
}

.verse-footnote a:hover {
    color: #000;
}

/* Highlight the active bottom footnote */
.footnote:target {
  background-color: #e7f1ff;
  border-left: 4px solid #007bff;
  padding-left: 0.75em;
  transition: background-color 0.3s ease;
}

/* Highlight the inline footnote when returning */
.verse-footnote:target {
  background-color: #e7f1ff;
  border-radius: 4px;
  padding: 0 0.2em;
  transition: background-color 0.3s ease;
}

/* Optional: emphasize links while active */
.footnote:target a,
.verse-footnote:target a {
  color: #0056b3;
  font-weight: 600;
}

.footnote-number{
  vertical-align: sub;
  font-size: 0.7em;
  position: relative;
  bottom: -0.15em;
}

.footer {
  margin-top: 4em;
  font-size: 0.75em;
  color: #888;
  text-align: center;
}

#footnotes {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #ccc;
}

#footnotes h2 {
  font-size: 1.2em;
  margin-bottom: 1em;
  text-align: left;
  margin-left: 10%;
}

.footnote {
  font-size: 0.9em;
  color: #444;
  margin-bottom: 0.5em;
  text-align: justify;
}

sup {
  top: -0.5em;
}

sup, sub {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  color: gray;
}

sub a {
  font-size: .9em;
  bottom: -0.3em;
  text-decoration: none;
  color: gray;
}

.backref {
  text-decoration: none;
  font-size: 0.9em;
  margin-left: 0.5em;
  color: #888;
}

.backref:hover {
  color: #000;
}

.log-link {
  text-align: right;
  text-decoration: none;
  font-size: .9em;
  margin: 1em 0;
}

/* Bounce animation for current/missed day */
.bounce-hand {
  display: inline-block;
  animation: bounceHand 1s infinite;
  margin-left: 10px;
}

/* Flex layout for left/right alignment */
.day-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 1em;
    border-radius: 5px;
    /*margin: 5px 0;*/
}

/* Completed day: light green */
.day-content.done {
    background-color: #d4edda; /* light green */
}

/* Missed day: light red */
.day-content.missed {
    background-color: #f8d7da; /* light red */
}

/* Optionally make text wrap nicely on small screens */
.day-left, .day-right {
    max-width: 48%;
}

/* Optional: hover effect for the View link */
.day-right a {
    color: #007bff;
    text-align: right;
    text-decoration: none;
}

.day-navigation {
    width: 100%;
    margin-top: 20px;
    overflow: hidden; /* contains floated links */
}

.day-navigation a:first-child {
    float: left;
    text-decoration: none;
}

.day-navigation a:last-child {
    float: right;
    text-decoration: none;
}

@keyframes bounceHand {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

@keyframes footnotePulse {
  0% { background-color: #e7f1ff; }
  100% { background-color: transparent; }
}

.footnote:target,
.verse-footnote:target {
  animation: footnotePulse 1.5s ease-out;
}

/* Scrollable log wrapper */
#log-wrapper {
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#log {
  display: flex;
  flex-direction: column;
}

/* Progress bar */
#progress-container {
  border: 1px solid #ccc;
  height: 20px;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: #007bff;
}

.reset-btn {
    margin-top: 15px;
    padding: 6px 12px;
    font-weight: bold;
    background-color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

.reset-btn:hover {
    background-color: #d9534f;
    color: #fff;
}
