
/* ==========================================
   BIBLE CHAPTER NAVIGATION
   ========================================== */

.bible-chapter-nav {
    position: relative;
    z-index: 1000;
    width: 100%;
    margin: 12px 0 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.bible-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.bible-prev,
.bible-next {
    flex: 1 1 0;
}

.bible-next {
    text-align: right;
}

.bible-prev a,
.bible-next a {
    display: inline-block;
    padding: 9px 12px;
    color: #27C2F5;
    text-decoration: none;
    font-weight:200;
}

.bible-prev a:hover,
.bible-next a:hover {
    text-decoration: underline;
    background: #2A383D;
    color: #fff;
}

/* Dropdown container */

.bible-chapter-dropdown {
    position: relative;
    flex: 0 0 auto;
    text-align: center;
}

.bible-chapter-button {
    padding: 9px 16px;
    border: 1px solid #888;
    border-radius: 5px;
    background: #bcbcbc;
    color: #222;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

/* Chapter panel */

.bible-chapter-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 90vw);
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px;
    box-sizing: border-box;
    background: #303b40;
    border: 1px solid #888;
    border-radius: 6px;
    box-shadow: 0 5px 14px rgba(0,0,0,.4);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
    z-index: 1001;
}

.bible-chapter-dropdown.is-open .bible-chapter-panel {
    display: grid;
}

/* Desktop mouseover and keyboard support */

@media (hover: hover) and (pointer: fine) {
    .bible-chapter-dropdown:hover .bible-chapter-panel,
    .bible-chapter-dropdown:focus-within .bible-chapter-panel {
        display: grid;
    }
}

/* Chapter links */

.bible-chapter-panel a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 4px;
    color: #27C2F5;
    text-decoration: none;
    font-size: 1rem;
}

.bible-chapter-panel a:hover,
.bible-chapter-panel a:focus {
    background: #46575e;
    color: #fff;
}

.bible-chapter-panel a[aria-current="page"] {
    background: #bcbcbc;
    color: #222;
    font-weight: bold;
    outline: 2px solid #fff;
}

/* Smaller screens */

@media (max-width: 600px) {
    .bible-chapter-panel {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        width: min(340px, 90vw);
    }

    .bible-nav-row {
        gap: 3px;
    }

    .bible-prev a,
    .bible-next a {
        padding: 8px 4px;
        font-size: .85rem; /** THIS CLASS IS NOT CHANGING THE font-size.  I used an 
                               inline style in the Bible_Chapter_Nav.php include 
                               line 144 **/
    }
    

    .bible-chapter-button {
        padding: 8px 9px;
        font-size: .9rem;
    }
}


/* ==========================================
   BIBLE TRANSLATION DROPDOWN
   ========================================== */

.bible-translation-dropdown {
    position: relative;
    display: inline-block;
    margin: 10px 0 15px 10px;
    z-index: 2000;
    font-family: Arial, Helvetica, sans-serif;
}

/* Main button */

.bible-translation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #888;
    border-radius: 5px;
    background: #bcbcbc;
    color: #222;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: .5px;
    cursor: pointer;
}

.bible-translation-button:hover {
    background: #cccccc;
}

/* Dropdown panel */

.bible-translation-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    max-width: 90vw;
    padding: 8px;
    box-sizing: border-box;
    background: #303b40;
    border: 1px solid #888;
    border-radius: 5px;
    box-shadow: 0 5px 14px rgba(0,0,0,.4);
    z-index: 2001;
}

/* Open state */

.bible-translation-dropdown.is-open
.bible-translation-panel {
    display: block;
}

/* Desktop mouseover and keyboard */

@media (hover: hover) and (pointer: fine) {
    .bible-translation-dropdown:hover
    .bible-translation-panel,
    .bible-translation-dropdown:focus-within
    .bible-translation-panel {
        display: block;
    }
}

/* Individual translation links */

.bible-translation-panel a {
    display: block;
    padding: 10px 12px;
    color: #27C2F5;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 3px;
}

.bible-translation-panel a:hover,
.bible-translation-panel a:focus {
    background: #46575e;
    color: #fff;
    text-decoration: underline;
}

/* Small screens */

@media (max-width: 600px) {
    .bible-translation-dropdown {
        margin-left: 5px;
    }

    .bible-translation-panel {
        min-width: 230px;
    }
}