/* 
OLD COLORS
#d188f7 - light purple
#a415ef - dark purple
f8b4b4 - light red
e3342f  - deep red
77DD77 - light green
228B22 - dark green
*/

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600&display=swap');


/* Reset some defaults */
body {
  margin: 0;
  padding: 0;
  font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
  background-color: #fefaf0;
  color: #222;
  text-align: center;
  white-space: normal;   /* ✅ allow wrapping */
  overflow-x: hidden;    /* ✅ prevent sideways scroll if something still overflows */
  line-height: 1.2;

}


/* Headings */
h2 {
  margin: 0.4rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0.3rem auto;
  width: 80%;
}

/* Buttons */
button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 0.2rem;
  transition: background-color 0.2s ease;
}

button:hover {
  color: #ffffff;
  background-color: #000;
}

#rules{
  font-size: 1.15rem;
  margin: 0.2rem 0;
}

/* Score sections — force onto their own line */
#score_best{
  display: block;       /* ensures they sit on their own line */
  font-size: 0.95rem;
  margin: 0.2rem 0;
  color: #444;
}

#score_current {
  display: block;       /* ensures they sit on their own line */
  font-size: 2.0rem;
  margin: 0.2rem 0;
  color: #444;
}

#quoteContainer {
  min-height: 160px;
  height: auto;
}

#quote {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  max-width: 400px;
  width: 100%;
  margin: 0rem auto;
  padding: 0.5rem;

  border-radius: 5px;

  /* base parchment look */
  background-color: #fff;
 
  background-image:
    url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAY'),
    linear-gradient(to bottom, rgba(0,0,0,0.03), transparent 25%, rgba(0,0,0,0.03));
  background-blend-mode: overlay, normal;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 0 0 0px rgba(255, 255, 240, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.15);

  
  /* text styles */
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: center;
  color: #4b3621;
}

#quote::before,
#quote::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.08),
    transparent 100%
  );
  filter: blur(4px);
  pointer-events: none;
}

#quote::before {
  top: 10px;
  left: 15px;
}

#quote::after {
  bottom: 10px;
  right: 15px;
}



/* Bold labels */
b {
  color: #000;
}

#guess {
  /*margin-left: calc(50% - 100px);*/
  font-size: 25px;
  text-align: center;
}

#submit_button_text button {
  background-color: #222; /* light red */
  color: white;              /* text color */
  border: none;              /* remove default border */
  padding: 6px 12px;         /* some spacing */
  border-radius: 4px;        /* rounded corners */
  cursor: pointer;           /* pointer on hover */
  font-size: 14px;
}

#submit_button_text button:hover {
  background-color: #000; /* deeper red on hover */
}

#next_button_text button {
  background-color: #000; /* light red */
  color: white;              /* text color */
  border: none;              /* remove default border */
  padding: 6px 12px;         /* some spacing */
  border-radius: 4px;        /* rounded corners */
  cursor: pointer;           /* pointer on hover */
  font-size: 14px;
}

#next_button_text button:hover {
  background-color: #000; /* deeper red on hover */
}

#play_again_button_text button {
  background-color: #000; /* light red */
  color: white;              /* text color */
  border: none;              /* remove default border */
  padding: 6px 12px;         /* some spacing */
  border-radius: 4px;        /* rounded corners */
  cursor: pointer;           /* pointer on hover */
  font-size: 14px;
}

#play_again_button_text button:hover {
  background-color: #000; /* deeper red on hover */
}

#score_best {
  display: block;
  font-size: 1.2rem;
  margin: 0.5rem auto;       /* ✅ auto left/right centers it */
  color: #444;
  max-width: 400px;          /* ✅ limit width */
  text-align: center;        /* ✅ center text inside */
  cursor: pointer;           /* ✅ make it feel clickable */
  box-sizing: border-box;
}

#score_best button {
  background-color: #333; /* light grey */
  color: white;              /* text color */
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#score_best button:hover {
  background-color: #000; /* dark grey on hover */
  color: white;              /* optional: invert text for contrast */
}

#score_best summary {
  max-width: 400px;
  cursor: pointer;
}

#score_best[open] summary {
  max-width: 400px;
  white-space: normal;   /* allow wrapping when expanded */
}


.floating-plus {
  position: absolute;
  color: #000;       /* green for positive */
  font-weight: bold;
  animation: floatUp 1s ease-out forwards;
  pointer-events: none; /* don’t block clicks */
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

#pick_chapter {
  font-size: 16px;   /* or larger */
}

#chapter_buttons {
  display: flex;          /* lay out children in a row */
  justify-content: space-around; /* spread buttons evenly */
  align-items: center;
  width: 100vw;           /* full viewport width */
  margin: 0;              /* no margins */
  padding: 0.5rem;        /* optional padding */
  box-sizing: border-box; /* include padding in width */
}


hr {
  border: none;
  border-top: 1px solid black;
}

.responsive-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.responsive-img-short {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.responsive-img-tiny {
  width: 100%;
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

#quote {
  font-family: 'Playfair Display', 'IM Fell English SC', Georgia, serif;
}

#backspace {
  /* enforce exact dimensions and remove default padding */
  width: 40px;
  height: 40px;
  font-size: 1.1rem;            /* small enough to fit */
}

.keypad button {
  /* enforce exact dimensions and remove default padding */
  width: 30px;
  height: 30px;
  padding: 0;
  box-sizing: border-box;

  /* circle styling */
  color: #000;                /* black font */
  background-color: #fefaf0;    /* cream interior */
  border: 3px solid #000;       /* thick black ring */
  border-radius: 50%;           /* makes it a perfect circle */

  /* center the digit */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;               /* prevents text from stretching the height */

  /* typography & interactivity */
  font-size: 0.8rem;            /* small enough to fit */
  font-weight: 800; 
  cursor: pointer;
  transition: background-color 0.4s;
}

.keypad button:hover {
  background-color: #f9e1b9;    /* subtle hover effect */
}


.stat_text {
  font-size: 0.9rem;            /* small enough to fit */  
}

.stat_value {
  font-size: 1.5rem;            /* small enough to fit */  
}

/* the mask covers the entire container and intercepts pointer events */
.mask {
  position: absolute;
  inset: 0;                     /* top:0; right:0; bottom:0; left:0 */
  z-index: 10;                  /* above buttons inside the container */
  pointer-events: auto;         /* mask receives pointer events and blocks underlying items */
}

/* hide the mask when not blocking */
.mask.hidden {
  display: none;
}


summary {
  list-style: none; /* Removes default arrow in Firefox */
}

summary::-webkit-details-marker {
  display: none; /* Removes default arrow in Chrome/Safari */
}

summary::before {
  content: "";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.5s ease;
}

details[open] summary::before {
  transform: rotate(90deg); /* Rotates arrow when open */
}

.fake-button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  font-size: 1.3rem;
  cursor: pointer;
  margin: 0.2rem;
  transition: background-color 0.2s ease;

  display: inline-block;
  border-radius: 4px;
  cursor: default;
  user-select: none;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s ease;
}


.stats-section {
  padding: 1rem;
  text-align: center;
}

.stats-table {
  margin: 0 auto;
  border-spacing: 30px 0;
}

.stat-value {
  font-weight: bold;
  font-size: 1.5rem;  
}



.bar-chart {
    margin: 0.5em auto;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: 400px;
    width: 100%;
    padding: 0.25em;
    box-sizing: border-box;
    background: transparent;
    color: #000;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
    width: 100%;
}

.bar-label {
    flex-shrink: 0;
    width: 150px;
    font-weight: 700;
    text-align: right;
    color: #000;
}

.bar-track {
    flex: 1;
    height: 20px;
    background: transparent;
    border: 0px solid #000;
    border-radius: 0;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #000;
    border-radius: 0;
    transition: width 400ms ease;
}

.bar-value {
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.2rem;  
    width: 100px;
    text-align: left;
    color: #000;
    font-weight: 600;
}

@media (max-width: 360px) {
    .bar-label { width: 80px; font-size: 0.9rem; text-align: left; }
    .bar-value { width: 40px; font-size: 0.9rem; }
    .bar-track { height: 16px; }
}







/*
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
*/


/* simple hidden class (removed from layout) */
.u-hidden { display: none !important; visibility: hidden !important; pointer-events: none !important; }

.button_unselected { 
  color: #000;
  background-color: #fefaf0;
  border: 1px solid #000;
}

#Pick_Book_Chapter_Verse ,
#Pick_Book_OT ,
#Pick_Book_NT  {
  text-align: center;
  max-width: 600px;

  margin: 0 auto;               /* center the table */
  border-collapse: collapse;

}

/* table centered inside container */

#Pick_Book_Chapter_Verse table,
#Pick_Book_OT table,
#Pick_Book_NT table {
  margin: 0 auto;               /* center the table */
  border-collapse: collapse;
}
  
#Pick_Book_OT button,
#Pick_Book_NT button {
  color: #000;
  background-color: #fefaf0;
  border: 0px solid #000;
  font-size: 1.0rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.4s;
  margin: 1px;
  padding: 0px;
  padding-left: 5px;
  padding-right: 5px;
}

#Pick_Book_OT button:hover,
#Pick_Book_NT button:hover {
  background-color: #f9e1b9;
}


#header_menu {
  display: flex;
  justify-content: center; /* center children horizontally */
  align-items: center;     /* center children vertically */
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 0;
  box-sizing: border-box;
  z-index: 999;
  gap: 16px;               /* optional spacing between items */
}

/* Base button used inside #header_menu */
#header_menu button {
  font-size: 14px;
  line-height: 1;
  color: #ffffff;                     /* text color */
  background: transparent;            /* transparent to show header bg */
  border: 0;                          /* no default border */
  padding-top: 4px;
  padding-bottom: 0px;
  margin: 0;                          /* margins controlled by layout */
  display: inline-flex;
  align-items: center;                /* vertical centering of icon + text */
  justify-content: center;
  gap: 8px;                           /* space between icon and text */
  cursor: pointer;
  border-radius: 6px;                 /* subtle rounding */
  transition: background-color .12s ease, transform .06s ease, box-shadow .12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Hover state */
#header_menu .btn:hover {
  background-color: rgba(255,255,255,0.2);   /* gentle highlight */
  transform: translateY(-1px);
}

#choice_container {
  display: block;        /* ensure block-level */
  min-height: 260px;
}


  summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
  }

  /* Add our own arrow using ::after */
  summary::after {
    content: " ▼";
    font-weight: 600;
  }

  /* When the details is open, switch arrow to up */
  details[open] > summary::after {
    content: " ▲";
  }

  /* prevent focus events */
  /* Ensure buttons don't show focus outline and don't trigger Safari tap highlight */
#keypad button {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}



/* ensure it's treated as a list-item so marker pseudo-elements are present */

#parallel_passage details {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  max-width: 400px;
  width: 100%;
  margin: 0rem auto;
  padding: 0.5rem;
} 

#parallel_passage details > summary {
  display: list-item !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* Chrome / Safari / Edge */
#parallel_passage details > summary::-webkit-details-marker {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  color: transparent !important;
}

/* Firefox and modern browsers */
#parallel_passage details > summary::marker {
  content: none !important;
  color: transparent !important;
  font-size: 0 !important;
}

/* your custom arrow via ::after */
#parallel_passage details > summary::after {
  content: "" !important;
  font-weight: 600 !important;
  pointer-events: none !important;
}

/* arrow for open state */
#parallel_passage details[open] > summary::after {
  content: "" !important;
}

/* ensure it's treated as a list-item so marker pseudo-elements are present */

#progress_bar details {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  max-width: 400px;
  width: 100%;
  margin: 0rem auto;
  padding: 0.5rem;
} 

#progress_bar details > summary {
  display: list-item !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* Chrome / Safari / Edge */
#progress_bar details > summary::-webkit-details-marker {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  color: transparent !important;
}

/* Firefox and modern browsers */
#progress_bar details > summary::marker {
  content: none !important;
  color: transparent !important;
  font-size: 0 !important;
}

/* your custom arrow via ::after */
#progress_bar details > summary::after {
  content: "" !important;
  font-weight: 600 !important;
  pointer-events: none !important;
}

/* arrow for open state */
#progress_bar details[open] > summary::after {
  content: "" !important;
}


/* 
-------------------------------------------------------------------------------------------
  OUTLINE formatting 
-------------------------------------------------------------------------------------------
*/
#outline {
  max-width: 400px;
  margin: 0 auto;          /* center container horizontally */
  text-align: left;        /* ensure text inside is left-aligned */
  box-sizing: border-box;
  padding: 16px;
}

/* Summary and chapter styling */
#outline summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  outline: none;
  display: flex;
  padding: 2px;
  align-items: baseline;
}

/* your custom arrow via ::after */
#outline details > summary::after {
  content: "" !important;
}

/* arrow for open state */
#outline details[open] > summary::after {
  content: "" !important;
}
/* your custom arrow via ::after */
#book_outline details > summary::after {
  content: "" !important;
}

/* arrow for open state */
#book_outline details[open] > summary::after {
  content: "" !important;
}

/* Chapter label */
#outline .chapter {
  color: black;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 8px;
  min-width: 45px;

}

/* Short chapter summary text */
#outline .summary {
  color: black;
  font-size: 1.2rem;
  font-weight: 700;
}


/* Verse list */
#outline .verses {
  color: #777;
  margin-top: 2px;
  padding-left: 0px;
  display: grid;
  gap: 3px;
}

#outline .verse_summary {
  font-weight: 700;
}

/* Individual verse row */
#outline .verse {
  display: flex;
  gap: 3px;
  align-items: flex-start;
}

/* Verse range */
#outline .vrange {
  margin-left: 20px;
  min-width: 50px;
  color: #777;
  font-weight: 600;
}

/* Verse title/content */
#outline .vtitle {
  color: #777;
  flex: 1;
}

/* Responsive tweak */
@media (max-width: 250px) {
  #outline .vrange {
    min-width: 130px;
    font-size: 0.95rem;
  }
}


/* 
-------------------------------------------------------------------------------------------
  Progress Bar
-------------------------------------------------------------------------------------------
*/

  :root{
    --card-bg: #f6f6f8;
    --card-border: #ececec;
    --accent: #2b7fff;
    --muted: #9b6da1;
    --text: #102027;
    --dot-size: 14px;
    --big-dot-w: 96px;
    --radius: 16px;
    --ring: rgba(16,32,39,0.06);
    --shadow: 0 6px 18px rgba(16,32,39,0.06);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }

  .glimmer-table {
/*
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 0px 10px;
    box-shadow: var(--shadow);
    font-family: var(--font);
*/
    display: inline-table;
  }

  .glimmer-row { vertical-align: middle; }

  .cell {
    padding: 1px 1px;
    min-width: 22px;
    min-height: 22px;
    text-align: center;
  }

  .dot {
    display: inline-block;
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 0 rgba(0,0,0,0.03), inset 0 -2px 6px rgba(255,255,255,0.06);
  }

  .dot::after{
    content: "";
    position: absolute;
    inset: -0px;
    border-radius: 9999px;
    box-shadow: 0 0 0 2.5px var(--ring);
    pointer-events: none;
  }

  .dot.big {
    width: var(--big-dot-w);
    min-width: 100px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 20px rgba(43,127,255,0.12);
  }

  /* palette */
  .c1{ background: #050505; }
  .c2{ background: #063045; }
  .c3{ background: #1859a0; }
  .c4{ background: #2b7fff; }
  .c5{ background: #9b6da1; }
  .c6{ background: #d84c4a; }
  .c7{ background: #ff8f5a; }
  .c8{ background: #ffd86b; }
  .c9{
    background: #ffffff;
    border: 1px solid rgba(16,32,39,0.06);
  }
  .c_grey{ background: #cccccc; }

  @media (max-width:420px){
    :root{ --big-dot-w: 76px; --dot-size: 12px; }
    .dot.big{ font-size: .95rem; height: 30px; }
  }
  
  
  
/* make table a positioning context */
.glimmer-table { position: relative; }

/* connector across the whole row */
.glimmer-row {
  position: relative;
  /* ensure connector sits behind dots */
  z-index: 0;
}

 .glimmer-row::before {
  content: "";
  position: absolute;
  left: 12px;                 /* space from left edge; tweak to match cell padding */
  right: 12px;                /* space from right edge */
  top: 50%;                   /* center through dot row */
  height: 2px;                /* line thickness */
  background: #ddd;        	  /* grey line color */
  transform: translateY(-50%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
} 
  


/* 
-------------------------------------------------------------------------------------------
  Calendar
-------------------------------------------------------------------------------------------
*/

:root {
  --length: 15px;
  --stroke: 2px;
  --stroke-color: #000;
}

.calendar_cell {
  width: var(--length);
  height: var(--length);
  background: #eee;
  box-sizing: border-box;
  position: relative;
  /* default: no inner strokes */
  box-shadow: none;
  border: 1px solid #000;
}

/* single-side utilities */
.calendar_cell.right {
  box-shadow: inset calc(-1 * var(--stroke)) 0 0 0 var(--stroke-color);
}
.calendar_cell.left {
  box-shadow: inset calc(1 * var(--stroke)) 0 0 0 var(--stroke-color);
}
.calendar_cell.top {
  box-shadow: inset 0 calc(1 * var(--stroke)) 0 0 var(--stroke-color);
}
.calendar_cell.bottom {
  box-shadow: inset 0 calc(-1 * var(--stroke)) 0 0 var(--stroke-color);
}

/* two-side combinations (adjacent and opposite) */
/* left + right (opposite) */
.calendar_cell.left.right {
  box-shadow:
    inset calc(1 * var(--stroke)) 0 0 0 var(--stroke-color),
    inset calc(-1 * var(--stroke)) 0 0 0 var(--stroke-color);
}
/* top + bottom (opposite) */
.calendar_cell.top.bottom {
  box-shadow:
    inset 0 calc(1 * var(--stroke)) 0 0 var(--stroke-color),
    inset 0 calc(-1 * var(--stroke)) 0 0 var(--stroke-color);
}
/* left + right + top (example triple) */
.calendar_cell.left.right.top {
  box-shadow:
    inset calc(1 * var(--stroke)) 0 0 0 var(--stroke-color),
    inset calc(-1 * var(--stroke)) 0 0 0 var(--stroke-color),
    inset 0 calc(1 * var(--stroke)) 0 0 var(--stroke-color);
}
/* left + right + bottom (example triple) */
.calendar_cell.left.right.bottom {
  box-shadow:
    inset calc(1 * var(--stroke)) 0 0 0 var(--stroke-color),
    inset calc(-1 * var(--stroke)) 0 0 0 var(--stroke-color),
    inset 0 calc(-1 * var(--stroke)) 0 0 var(--stroke-color);
}

.calendar_cell.top-right,
.calendar_cell.top.right { /* alternative forms supported */
  box-shadow:
    inset 0 calc(1 * var(--stroke)) 0 0 var(--stroke-color),
    inset calc(-1 * var(--stroke)) 0 0 0 var(--stroke-color);
}

.calendar_cell.right-bottom,
.calendar_cell.right.bottom {
  box-shadow:
    inset calc(-1 * var(--stroke)) 0 0 0 var(--stroke-color),
    inset 0 calc(-1 * var(--stroke)) 0 0 var(--stroke-color);
}

.calendar_cell.bottom-left,
.calendar_cell.bottom.left {
  box-shadow:
    inset 0 calc(-1 * var(--stroke)) 0 0 var(--stroke-color),
    inset calc(1 * var(--stroke)) 0 0 0 var(--stroke-color);
}

.calendar_cell.left-top,
.calendar_cell.left.top {
  box-shadow:
    inset calc(1 * var(--stroke)) 0 0 0 var(--stroke-color),
    inset 0 calc(1 * var(--stroke)) 0 0 var(--stroke-color);
}



/* 
-------------------------------------------------------------------------------------------
  Progress Line Graph
-------------------------------------------------------------------------------------------
*/

canvas{
  width:300px!important;
  height:150px!important;
  display:block;
  border-radius:6px
}

#progress_line_graph_wrapper {
  width:300px;
  margin: 0 auto; /* centers the element horizontally in its parent */  
}