*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

* {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    *::-webkit-scrollbar {
        display: none;
    }

html {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    box-sizing: border-box;
}

/*Section used for centering process*/
.section {
    width: 100%;
    height: 100vh;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#section-1 .dropdown .dropdown-content ul {
    display: none;
}


#section-1 .dropdown:first-child {
    float: left;
}

#section-1 .dropdown:nth-child(3) {
    float: right;
}

.container {
    padding: 0rem 0rem !important;
}

#section-1 .dropdown .dropbtn, .dropdown-content, #account-dropdown, #myDropdown-2, #myDropdown-3 {
    width: calc(100vw/3);
    height: auto;
}

#lw-area-notes, #lw-area-notes--menu, #lw-area-notes--pad, #lw-area-notes--open-close, #lw-area-notes--wrapper {
    width: 100vw !important;
    height: auto;
}


#lw-area-notes--wrapper {
    overflow-y: scroll;
}

#section-1 h3 {
    font-size: 1.7rem;
}

@media screen and (min-width:1000px) {
    #section-1 .accordion-link, #lw-area-notes #lw-area-notes--open-close {
        font-size: 2rem !important;
    }

    #section-1 .accordion-content, #highlight-selected-verse {
        font-size: 1.6rem;
    }
}

#highlighted-verse-wrapper {
    margin-bottom: 1rem;
}

.container, #highlight-selected-verse {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
}

#lw-area-biblio {
    max-width: none;
    width: 100%;
}

.lw-area-biblio--header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    margin-top: 1.2rem;
}

#lw-area-biblio--nav-next, #lw-area-biblio--nav-prev {
    border: 0px;
    padding: .7rem;
    text-align: center;
    background: #000;
    color: #fff;
}

    #lw-area-biblio--nav-next:hover, #lw-area-biblio--nav-prev:hover {
        background: #eee;
        color: #000;
        cursor: pointer;
    }

#lw-area-biblio--main-book-chapter {
    font-size: 2rem;
}

.accordion-item {
    background-color: #000000;
    border-radius: .4rem;
}

#highlight-selected-verse {
    background: #000;
    padding: 1.2rem 2rem;
    color: #fff;
    font-size: 1.2rem;
}

.accordion-item hr {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.accordion-link {
    font-size: 1.6rem;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    background-color: #000000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

    .accordion-link h3 {
        font-weight: 500;
        font-size: 1.9rem;
        padding: 0 2rem;
    }

    .accordion-link i {
        color: #e7d5ff;
        padding: .5rem;
    }

    .accordion-link ul {
        display: flex;
        align-items: flex-end;
        list-style-type: none;
        margin-left: 1.3rem;
    }

    .accordion-link li {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.4);
        padding: 0 0 .1rem .5rem;
    }

    .accordion-link div {
        display: flex;
    }

    .accordion-link .ion-md-arrow-down {
        display: none;
    }

.accordion-content {
    color: #fff;
    max-height: 0;
    overflow: hidden;
    position: relative;
    background-color: #000;
    transition: max-height 650ms;
    color: #fff;
    font-size: 1.2rem;
    padding: 0 2rem;
}

    .accordion-content h2 {
        font-size: 1.4rem;
    }

#highlighted-book, #highlighted-chapter {
    font-size: 1.5rem;
}

.highlighted-phrase {
    color: #fff700;
}



.accordion-item:target .accordion-content {
    max-height: 30rem;
    margin-bottom: 1.2rem;
    overflow-y: scroll;
}

.accordion-item:target .accordion-link .ion-md-arrow-forward {
    display: none;
}

.accordion-item:target .accordion-link .ion-md-arrow-down {
    display: block;
}

/* Style The Dropdown Button */
.dropbtn {
    background-color: #000;
    color: white;
    padding: 1.6rem;
    font-size: 1.6rem;
    border: none;
    cursor: pointer;
}


#page-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    overflow: hidden;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    min-width: 100%;
    z-index: 1;
    height: 70vh;
    overflow-y: scroll;
    max-height: 75vh;
}

#lw-area-biblio {
    font-size: 1.2rem;
    padding: 1.2rem clamp(1rem, 2vw, 2rem);
    overflow-y: scroll;
    height: 100%;
    min-height: 0;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    position: absolute;
}

/* Account and Bible popovers are controlled by their buttons instead of hover. */
#section-1 .menu-dropdown > .dropdown-content {
    display: none;
}

#section-1 .menu-dropdown > .dropdown-content.is-open {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #eee;
    color: #000;
}

.dropdown:focus-within > .dropbtn {
    background-color: #eee;
    color: #000;
}

    .dropdown:hover .dropbtn img {
        filter: invert(100%);
    }

#lw-area-notes {
    bottom: 0;
    position: fixed;
    left: 0;
    right: 0;
    width: 100vw !important;
    z-index: 10;
}

#scribe-resize-handle {
    display: none;
}

    #lw-area-notes #lw-area-notes--open-close {
        text-align: center;
        background-color: #000;
        color: white;
        padding: 20px;
        font-size: 1.6rem;
        border: none;
    }

    #lw-area-notes #lw-area-notes--wrapper {
        height: 2.2rem;
        overflow: hidden;
        bottom: 0;
        position: absolute;
        display: none;
    }

        #lw-area-notes #lw-area-notes--wrapper .container {
            padding-bottom: 5rem;
        }

#lw-area-notes--menu {
    margin-left: 7vw;
    margin-right: 7vw;
    margin-bottom: 1em;
}

    #lw-area-notes--menu .lw-area-notes--menu-button {
        font-size: 1.6rem;
        line-height: 1.7em;
        width: calc(80vw/3);
        margin-left: 1vw;
        margin-right: 1vw;
        display: inline-block;
        text-align: center;
        cursor: pointer;
        border: 1px solid #000;
        border-radius: 8px;
    }

#lw-area-notes--pad textarea {
    width: 80vw;
    min-height: 50vh;
    overflow: hidden;
    margin-left: 10vw;
    margin-right: 10vw;
    padding: 1.2rem;
    font-size: 1.2rem;
    overflow-y: scroll;
}

#lw-area-notes--pad {
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

#register-button {
    margin-top: .3em;
    display: inline-block;
    color: #fff;
}

    #register-button:hover {
        filter: opacity(.6);
    }


.dropbtn:has(> span.desktop-only) img {
    margin-left: -.96rem;
}

#section-1 .dropbtn {
    font-size: 3rem;
}

    #section-1 .dropbtn img {
        height: 3rem;
        width: 3rem;
        position: absolute;
    }

/* Mobile version CSS*/

@media screen and (max-width:730px) {
    .dropbtn:has(> span.desktop-only) img {
        margin-left: -.4rem !important;
    }

    .desktop-only {
        display: none;
    }

    #section-1 .ion-md-brush, #section-1 .ion-md-menu {
        padding: 1px;
    }

    #section-1 .dropdown:first-child .dropbtn, #section-1 .dropdown:nth-child(3) .dropbtn {
        width: 4.8rem;
    }

    #section-1 .dropdown:nth-child(2) .dropbtn {
        width: calc(100vw - 9.6rem);
    }

    #account-dropdown {
        width: 100vw;
    }

    #myDropdown-2 {
        margin-left: -4.8rem;
        width: 100vw;
    }

    #myDropdown-3 {
        right: 0;
        width: 100vw;
    }
}


.chapter div {
    display: inline-block;
}

    .chapter div button {
        display: block;
        padding: 1rem 0rem;
        margin: .4rem .4rem;
        background: #fff;
        font-size: 2.2rem;
        width: 4rem;
        text-align: center;
    }

        .chapter div button:hover {
            border-color: #fff;
            color: #fff;
            background: #000;
            cursor: pointer;
        }

/* Lightmode button */
.darkmode {
    filter: invert(1);
}

    .darkmode span {
        filter: invert(1);
        color: #fff;
    }

.scribe .darkmode #lw-area-biblio--main-verses p .lw-area-biblio--main-phrase:hover {
    filter: invert(1) !important;
    color: #fff700;
}

.scribe .darkmode #lw-area-biblio--main-verses p:hover {
    color: #000 !important;
}
/* Settings button */

.setting-button {
    margin-top: 1em;
    padding: .2rem .5rem;
    margin: .4rem .4rem;
    background: #fff;
    font-size: 1.2rem;
}

    .setting-button:disabled:hover {
        cursor: none;
    }

    .setting-button:not(:disabled):hover {
        border-color: #fff;
        color: #fff;
        background: #000;
        cursor: pointer;
    }

/* Scribe compare styling */
.accordion-content-right, .accordion-content-left {
    padding: 0 .5rem 2rem .5rem;
}

    .accordion-content-right h4, .accordion-content-left h4 {
        padding: 0 0rem .5rem 0rem;
    }

@media screen and (min-width:730px) {
    .accordion-content-left {
        display: block;
        width: 50%;
        float: left;
    }

    .accordion-content-right {
        display: inline-block;
        width: 50%;
    }
}
/* Scribe button styling */

.scribe #myDropdown-3 {
    height: calc(100vh - var(--scribe-panel-height) - var(--scribe-header-height));
    max-height: calc(100vh - var(--scribe-panel-height) - var(--scribe-header-height));
    overflow-y: scroll;
}

/* Account and Bible menus are popovers, so keep their full viewport height and
   stack them above the fixed Scribe panel. */
.scribe #account-dropdown,
.scribe #myDropdown-2 {
    height: auto;
    max-height: calc(100vh - var(--scribe-header-height));
    max-height: calc(100dvh - var(--scribe-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 20;
}

#scribe-form {
    margin-top: 1rem;
}

#everywhere {
    vertical-align: middle;
}

.scribe #scribe-button {
    color: #fff700;
    background: #000;
}

    .scribe #scribe-button img {
        filter: brightness(0) saturate(100%) invert(80%) sepia(100%) saturate(7500%) hue-rotate(356deg) brightness(109%) contrast(102%);
    }

.scribe #section-2 {
    flex: 0 0 auto;
    height: calc(100vh - var(--scribe-panel-height) - var(--scribe-header-height));
    height: calc(100dvh - var(--scribe-panel-height) - var(--scribe-header-height));
    overflow: hidden;
}

.scribe #lw-area-biblio {
    height: 100%;
    min-height: 0;
}

.scribe #lw-area-notes {
    display: block;
    height: var(--scribe-panel-height);
    color: #fff;
    min-height: 16rem;
}

    .scribe #scribe-resize-handle {
        align-items: center;
        background: #181818;
        border-bottom: 1px solid #333;
        border-top: 1px solid #333;
        cursor: ns-resize;
        display: flex;
        height: var(--scribe-resize-handle-height);
        justify-content: center;
        touch-action: none;
        width: 100%;
    }

        .scribe #scribe-resize-handle::before {
            background: #777;
            border-radius: 999px;
            content: "";
            display: block;
            height: .25rem;
            width: 4.8rem;
        }

        .scribe #scribe-resize-handle:focus-visible {
            outline: 2px solid #fff700;
            outline-offset: -2px;
        }

    .scribe #lw-area-notes #lw-area-notes--wrapper {
        display: block;
        position: relative;
        height: calc(var(--scribe-panel-height) - var(--scribe-resize-handle-height));
        background: #000;
        overflow-y: scroll;
    }

.scribe #lw-area-biblio--main-verses p:hover {
    display: block;
    background: #999;
    color: #fff;
    border-radius: 2px;
}

.scribe #lw-area-biblio--main-verses p .lw-area-biblio--main-phrase:hover {
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(80%) sepia(100%) saturate(7500%) hue-rotate(356deg) brightness(109%) contrast(102%);
}

#scribe {
    width: calc(100% - 16rem);
}

@media screen and (max-width:730px) {
    #scribe {
        width: 100%;
    }
}

#margin-notes,
#verse-summary,
#optimized-translation {
    padding: .2rem .4rem;
    width: 100%;
}

#section-2 {
    background: #fff;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}


input, textarea {
    font-family: 'DM Sans', sans-serif;
    line-height: 2.2rem;
    padding-left: .5rem;
    padding-right: .5rem;
    font-size: 1.3rem;
    margin-left: 1px;
}

#bible-selector {
    font-size: 1.3rem;
    margin-left: 1px;
}


:root {
    font-size: 100%; /* Default size */
    --scribe-header-height: 55.2px;
    --scribe-panel-height: 50vh;
    --scribe-resize-handle-height: 1.2rem;
}

.slider-container {
    margin-bottom: 20px;
}

.value-display {
    font-weight: bold;
    margin-left: .8rem;
}

@media screen and (min-width:900px) {
    :root {
        font-size: 80%;
    }
}

#bible-selector, #bible-selector-1, #bible-selector-2 {
    border: 0;
}

.bible-selector-wrapper {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    padding-top: 1rem;
}

#CompareButton {
    transform: rotate(270deg);
    position: absolute;
    right: 0;
    top: 45%;
    border: 2px solid #000;
    padding: .5rem;
    font-size: 1.2rem;
    margin-right: -2rem;
    border-bottom: 0px;
    background: #fff;
}

#CompareButton:hover {
    cursor: pointer;
}

.biblio-tabs-container p {
    font-size: 1.2rem;
}

.biblio-tabs-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #111;
}

.biblio-tabs-container li {
    box-sizing: border-box;
    list-style: none;
}

.biblio-tab-menu-item {
    display: inline-block;
    padding-right: .375rem;
}

.biblio-tab-menu-item a {
    text-decoration: none;
    color: #fff;
}

.biblio-tabs-header {
    background-color: #222;
    display: flex;
    flex-wrap: wrap;
    padding: .375rem;
}

.biblio-tabs-header > li {
    color: #fff;
    cursor: pointer;
    flex-grow: 1;
    padding: .375rem;
    font-size: 1.125rem;
    text-align: center;
}

.biblio-tabs {
    display: flex;
}

.biblio-tab {
    padding: 1rem;
    color: #fff;
    display: flex;
    width: 100%;
    max-height: calc(var(--scribe-panel-height) - var(--scribe-resize-handle-height) - 2.75rem);
}

.biblio-tab-menu {
    width: 100%;
    display: block;
    position: absolute;
}

.biblio-tab-content {
    max-height: calc(var(--scribe-panel-height) - var(--scribe-resize-handle-height) - 6rem);
    overflow-y: scroll;
    min-width: 100%;
    margin-top: 3rem;
}

.scribe-word-grid {
    align-items: stretch;
    display: grid;
    gap: 1.2rem;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr;
}

@media screen and (min-width: 760px) {
    .scribe-word-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1100px) {
    .scribe-word-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.scribe-word-grid-item {
    border: 1px solid #3a3a3a;
    min-width: 0;
    padding: 1rem;
}

.scribe-word-grid-item > :first-child {
    margin-top: 0;
}

.scribe-word-grid-item > h2:first-child {
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    margin: -1rem -1rem 1rem;
    padding: .75rem 1rem;
}

.scribe-word-chart {
    min-height: 22rem;
    width: 100%;
}

.scribe-word-chart .rz-chart {
    min-height: 22rem;
}

.translationPieTab {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.translationPieTab button {
    background-color: inherit;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 14px 16px;
    transition: 0.3s;
}

.translationPieTab button:hover {
    background-color: #ddd;
}

.translationPieTab button.active {
    background-color: #ccc;
}


#lw-area-biblio--main-verses-compare {
    display: none;
    width: 50%;
}

.add-comparison #lw-area-biblio--main-verses {
    display: block;
    width: 50%;
    float: left;
    padding-right: .5em;
}

.add-comparison #lw-area-biblio--main-verses-compare {
    display: inline-block !important;
    padding-left: .5em;
}

.add-comparison #CompareButton {
    font-weight: 900;
}


#account-dropdown {
    text-align: left;
    background: #fff;
}

#myDropdown-2 {
    background: #fff;
    text-align: center;
}

.bible-menu-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.2rem;
}

.bible-menu-divider {
    margin: 1rem 0;
}

.bible-menu-book {
    border: 1px solid;
    background: none;
    height: 3rem;
    font-size: 1.2rem;
    width: 100%;
    margin-bottom: .2rem;
    text-align: center;
}

.bible-menu-chapters {
    grid-column: 1 / -1;
    width: 100%;
    display: block;
    padding-top: 3rem;
    padding: 1rem;
    border: 1px solid;
    margin-bottom: .2rem;
    text-align: center;
}

.bible-menu-chapter {
    border: 1px solid;
    background: none;
    height: 3rem;
    font-size: 1.3rem;
    width: 3rem;
    margin-bottom: .2rem;
    text-align: center;
}


.menu-item {
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    padding: .8rem 1.4rem;
    font-size: 1.7rem;
}

.menu-item-content {
    padding: 1.3rem;
    font-size: 1.3rem;
}

/* Keep the account panel available while the rest of the page initializes. */
#section-1 #account-dropdown {
    height: auto;
    max-height: calc(100dvh - var(--scribe-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.menu-item-icon {
    float: right;
}

:is([id*='google_ads_iframe'],[id*='taboola-'],.taboolaHeight,.taboola-placeholder,#top-ad,#credential_picker_container,#credentials-picker-container,#credential_picker_iframe,[id*='google-one-tap-iframe'],#google-one-tap-popup-container,.google-one-tap__module,.google-one-tap-modal-div,#amp_floatingAdDiv,#ez-content-blocker-container) {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
}

.definitionTab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

    /* Style the buttons that are used to open the tab content */
    .definitionTab button {
        background-color: inherit;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
    }

        /* Change background color of buttons on hover */
        .definitionTab button:hover {
            background-color: #ddd;
        }

        /* Create an active/current tablink class */
        .definitionTab button.active {
            background-color: #ccc;
        }

/* Style the tab content */
.definitionTabContent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}


.transliterationTab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

    /* Style the buttons that are used to open the tab content */
    .transliterationTab button {
        background-color: inherit;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
    }

        /* Change background color of buttons on hover */
        .transliterationTab button:hover {
            background-color: #ddd;
        }

        /* Create an active/current tablink class */
        .transliterationTab button.active {
            background-color: #ccc;
        }

/* Style the tab content */
.transliterationTabContent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}
