body {
    font-family: "Noto Sans", Arial, "Arial Unicode MS", sans-serif;
    line-height: 1.5;
    background-color: #fff;
    color: #333;
    margin: 0;
}

.banner {
    background-color: #000;
    color: #f5f5f7;
    padding: 0.4em 0.6em;
    border-radius: 0.3em;
    z-index: 10;
    position: fixed;
    bottom: 1em;
    left: 1em;
    right: 1em;
    opacity: 0.9;
}

.chapter {
    display: inline-block;
    width: 1.4em;
    text-align: center;
    font-size: 1.1em;
}

.backbutton {
    vertical-align: middle;
    background-color: #d5d5da;
    border-radius: 0.2em;
    margin-right: 0.7em;
    padding: 0.2em;
    position: relative;
    top: -2px;
}

html {
    transition: filter 0.3s ease-in-out;
}

.dark {
    filter: invert() hue-rotate(180deg);
}

a, a:active, a:visited {
    text-decoration: none;
    color: hsl(217deg 53.04% 48.97%);
}




:root {
    --primary-color: #6200ee;
    --text-color: #333;
    --background-color: #fff;
    --app-bar-height: 56px;
    --text-size: 16px;
}

.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--app-bar-height);
    /*background-color: var(--primary-color);*/
    background-color: #d5d5da;
    display: flex;
    align-items: center;
    padding: 0 1em;
    border-bottom: 1px solid #c5c5ca;
    z-index: 1000;
}

.back-button {
    /*background: none;*/
    /*border: none;*/
    /*color: white;*/
    /*font-size: 24px;*/
    /*cursor: pointer;*/
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.title {
    font-size: 1.2em;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1;
    margin-top: 0.3em;
}

.sub-title {
    font-size: 0.9em;
    line-height: 1;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    margin: 0;
    padding-block: 1px;
    padding-inline: 6px;
}

.dropdown {
    position: absolute;
    top: calc(var(--app-bar-height) + 8px);
    right: 16px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 1001;
    display: none;
    flex-direction: column;
    padding: 8px 0;
    color: var(--text-color);
}

.dropdown.show {
    display: flex;
}

.dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.text-size-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-size-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.content {
    padding: 1em;
    padding-top: var(--app-bar-height);
    padding-bottom: 10em;
}

/* Dark mode toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

h2, h3 {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 0;
    scroll-margin-top: calc(var(--app-bar-height) + 2em);
}

.verse h3 {
    position: sticky;
    top: var(--app-bar-height);
    background-color: white;
}

[href*="jw.org/en/"]::after,
[href*="wtlocale=E"]::after {
    vertical-align: super;
    font-size: 0.8em;
    content: 'en ';
    padding-left: 0.1em;
}
