html, body {margin: 0 auto;}
body {max-width: 1920px;  overflow-x: hidden;}

    .bible-section {
  max-width: 1222px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  padding: 10px;
}

header {
  position: absolute;
  top: 0;
  left: 50%; /* center horizontally */
  transform: translateX(-50%); /* offset to truly center */
  text-align: center;
  font-size: 4vw;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 0;
  z-index: 10;
  width: 100%;
  max-width: 1920px;
}

.answers {
  display: none; /* hide answers by default */
}

img {width: 100%;height:auto; }

summary {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  list-style: none;
  color: blue;
  margin-top: 25px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
  justify-items: center;
  margin-top: 10px;
}

.grid a {
  display: block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.grid a:hover {
  background: #d88ed0;
}

a:hover:not(.grid a) {
  color: hotpink;
}


.content  {margin: 0 auto; max-width: 1222px; padding: 15px; font-size: 1.25em; line-height: 2em; font-family:'Courier New', Courier, monospace;}

.columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto;
  max-width: 1222px;
  padding: 15px;
}

.columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.columns li {
  margin: 4px 0; font-size: 1.25em; line-height: 1.75em; font-family:'Courier New', Courier, monospace;
}

.columns li a {
  text-decoration:  none;
}

.columns li a:visited {
  color: slategray;
}

.columns li a:hover {color: hotpink;}


h1 {margin-bottom: 0em;}

.centered-div {
  min-height: 100vh; /* ensures it fills at least the viewport, but grows with content */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5vw;
  padding: 20px;
  margin: 0 auto;
  max-width: 1222px;
  line-height: 2em;
  border-radius: 10px;
  font-family: 'Courier New', Courier, monospace;
}

    .centered-div p:first-of-type {
    text-indent: 2em; /* adds indent only to the first paragraph */
}

/* Show desktop version on large screens */
.desktop { display: block; }
.mobile { display: none; }

form.bible-quiz {
  margin-bottom: 50px;   /* desired space after the form */
  display: block;         /* ensure it behaves like a block */
}

form.bible-quiz::after {
  content: "";            /* clearfix to ensure container contains floats */
  display: table;
  clear: both;
}

.bible-quiz {
  max-width: 1222px;      /* maximum width */
  margin: 0 auto;          /* center horizontally */
  padding: 20px;           /* optional spacing inside */
  font-family: Arial, sans-serif;
  background-color: #f9f9f9; /* optional light background */
  border-radius: 8px;      /* optional rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* optional subtle shadow */

}

.bible-quiz .question {
  margin-bottom: 20px;     /* spacing between questions */
}

.bible-quiz p {
  font-weight: bold;
}

.bible-quiz label {
  display: block;          /* stack options vertically */
  margin-bottom: 5px;
}

.bible-quiz button {
  padding: 10px 20px;
  background-color: #0077cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.bible-quiz button:hover {
  background-color: #005fa3;
}


.see-answers {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #0077cc;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  max-width: 180px;
}

.answers {
  display: none;
  margin-top: 20px;
  background: #f0f0f0;
  padding: 15px;
  border-radius: 6px;
}

#show-answers:checked ~ .answers {
  display: block;
}

/* On mobile, hide desktop, show mobile */
@media (max-width: 1221px) {
  .desktop { display: none; }
  .mobile { display: block; }
  .columns {display: block; line-height: 1.75em;}  
  .centered-div {font-size: 1.15em; font-family: 'Courier New', Courier, monospace;}

    }



@media (prefers-color-scheme: dark) {
  body, .bible-quiz, .answers {
    background-color: #222;
    color: #ffffff;
  }
  a, summary, .columns li a {
        color: #bb86fc;
      }


    }