
/* ============================================
   KING JAMES BIBLE - INDEX STYLESHEET
   JesusIsTheWayToGod.com

   Designed for index.htm
   Does not modify Bible chapter content
   ============================================ */


/* GENERAL PAGE SETTINGS */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 20px 16px 48px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.6;

    color: #242424;

    background-color: #f5ead0;
    background-image: url("Image1.jpg");
    background-repeat: repeat;
    background-position: top left;
}


/* MAIN CONTENT CONTAINER */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* GENERAL LINKS */

a {
    color: #124c83;
    text-decoration: none;
}

a:hover {
    color: #082f52;
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #94651d;
    outline-offset: 3px;
}


/* TOP NAVIGATION */

.topnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px 22px;

    margin-bottom: 35px;
    padding: 15px;

    background: rgba(255, 250, 235, 0.75);
    border: 1px solid #c9b58c;
    border-radius: 10px;
}

.topnav a {
    font-size: 16px;
    font-weight: bold;
}


/* MAIN PAGE HEADING */

.heading {
    text-align: center;
    margin: 25px 0 35px;
}

.heading p {
    margin: 0 0 8px;

    font-size: 21px;
    font-style: italic;
    font-weight: bold;

    color: #5a4933;
}

.heading h1 {
    margin: 0;

    font-size: 38px;
    line-height: 1.3;
    font-weight: bold;

    color: #242424;
}


/* OLD / NEW TESTAMENT NAVIGATION */

.jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;
    margin: 25px 0 35px;
}

.jump a {
    display: inline-block;

    padding: 10px 18px;

    background: rgba(255, 250, 235, 0.85);
    border: 1px solid #bba37a;
    border-radius: 8px;

    font-size: 16px;
    font-weight: bold;
}

.jump a:hover {
    background: #f5dfae;
}


/* TESTAMENT HEADINGS */

.testament {
    margin: 40px 0 22px;
    padding: 12px 0;

    text-align: center;
    font-size: 29px;
    font-weight: bold;

    color: #332819;

    border-bottom: 2px solid #b9a27d;
    scroll-margin-top: 20px;
}


/* INDIVIDUAL BIBLE BOOKS */

.book {
    margin-bottom: 12px;
    padding: 20px 15px;

    background: rgba(255, 250, 235, 0.45);

    border-bottom: 1px solid #c9b58c;
    border-radius: 6px;

    scroll-margin-top: 20px;
}

.book h3 {
    margin: 0 0 15px;

    font-size: 23px;
    line-height: 1.4;
    font-weight: bold;

    color: #2b241b;
}


/* CHAPTER NUMBER GRID */

.chapters {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(50px, 1fr));

    gap: 10px;

    width: 100%;
}


/* INDIVIDUAL CHAPTER BUTTONS */

.chapters a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 8px 4px;

    background: rgba(255, 252, 243, 0.9);

    border: 1px solid #b8a17a;
    border-radius: 7px;

    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;

    color: #124c83;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.chapters a:hover {
    background: #f5dfae;
    border-color: #94713b;
    color: #082f52;
    text-decoration: underline;
}

.chapters a:active {
    background: #e9cb8e;
}


/* BIBLE SEARCH SECTION */

.search {
    margin-top: 45px;
    padding: 25px;

    background: rgba(255, 250, 235, 0.85);

    border: 1px solid #bba37a;
    border-radius: 10px;
}

.search h2 {
    margin: 0 0 15px;

    font-size: 26px;
    color: #242424;
}

.search p {
    margin: 10px 0;
}

.search form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;

    gap: 15px;
}

.field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.field label {
    font-size: 16px;
    font-weight: bold;
}

.field.query {
    flex: 1 1 260px;
}

.field input,
.field select {
    width: 100%;
    max-width: 100%;

    padding: 10px 12px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;

    color: #242424;
    background: #fffdf6;

    border: 1px solid #a48b65;
    border-radius: 6px;
}

.search button {
    min-height: 44px;
    padding: 10px 22px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: bold;

    color: #242424;
    background: #f2dcaa;

    border: 1px solid #a48b65;
    border-radius: 7px;

    cursor: pointer;
}

.search button:hover {
    background: #e9cb8e;
}


/* FOOTER */

.footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 15px;

    margin-top: 35px;
    padding-top: 20px;

    border-top: 1px solid #bba37a;

    font-size: 16px;
}


/* TABLET SCREENS */

@media (max-width: 900px) {

    .container {
        max-width: 100%;
    }

    .heading h1 {
        font-size: 33px;
    }

    .chapters {
        grid-template-columns:
            repeat(auto-fill, minmax(48px, 1fr));
    }

    .book {
        padding: 16px 12px;
    }
}


/* MOBILE PHONES */

@media (max-width: 600px) {

    body {
        padding: 12px 10px 30px;
        font-size: 17px;
    }

    .topnav {
        gap: 10px;
        padding: 12px;
        margin-bottom: 25px;
    }

    .topnav a {
        font-size: 15px;
    }

    .heading {
        margin: 20px 0 25px;
    }

    .heading p {
        font-size: 18px;
    }

    .heading h1 {
        font-size: 28px;
    }

    .jump {
        gap: 8px;
        margin: 20px 0;
    }

    .jump a {
        font-size: 15px;
        padding: 9px 12px;
    }

    .testament {
        font-size: 25px;
        margin-top: 30px;
    }

    .book {
        padding: 14px 8px;
    }

    .book h3 {
        font-size: 21px;
    }

    .chapters {
        grid-template-columns:
            repeat(auto-fill, minmax(46px, 1fr));

        gap: 8px;
    }

    .chapters a {
        min-height: 46px;
        font-size: 17px;
    }

    .search {
        padding: 15px;
    }

    .search h2 {
        font-size: 23px;
    }

    .search form {
        align-items: stretch;
    }

    .field {
        width: 100%;
    }

    .search button {
        width: 100%;
    }

    .footer {
        font-size: 15px;
    }
}


/* VERY SMALL PHONES */

@media (max-width: 380px) {

    body {
        padding: 8px;
    }

    .chapters {
        grid-template-columns:
            repeat(auto-fill, minmax(44px, 1fr));

        gap: 6px;
    }

    .chapters a {
        min-height: 44px;
        font-size: 16px;
    }

    .book h3 {
        font-size: 20px;
    }
}


/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .chapters a {
        transition: none;
    }
}
