@import url('https://fonts.googleapis.com/css?family=Frank+Ruhl+Libre:300,400,500,700,900');
@import url('https://fonts.googleapis.com/css?family=Secular+One');

#controls {
    position: fixed;
    /*top: 0;*/
    top: 55px;
    left: 0;
    width: 100%;
    background: #f1f3f4;
    border-bottom: 4px solid #e3ddd8;
    padding: 0 8px;
    margin: auto;
}

body {
    background-color: #f1f3f4;
    font-family: 'Frank Ruhl Libre', 'David Libre', 'Times New Roman', 'Arial', serif;
    margin: auto;
}

a {
    color: #0E2560;
}

h1.title {
    font-weight: 700;
    text-align: center;
    font-family: "Secular One", "Arial", sans-serif;
    font-weight: normal;
    font-size: 30px;
    margin-bottom: 8px;
}

h1.home.title,
.shadow-text {
    text-shadow: #000 1px 1px 8px;
    color: #fff;
    font-family: "Secular One", "Arial", sans-serif;
}

h2 {
    margin-bottom: 1em;
}

.passage-audio {
    height: 2em;
}

#passage-audio {
    width: 98%;
    border: 0px solid #f1f3f4;
    border-radius: 8px;
    box-shadow: 0 0 4px #3b2f9a;
}

#passage-text.speaking {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*.autofocus-current-word,
.playback-rate {
    font-size: smaller;
}*/
.autofocus-current-word label,
.playback-rate label {
    font-weight: 700;
    line-height: 52px;
    vertical-align: top;
}

output {
    line-height: 57px;
    vertical-align: top;
}

input#playback-rate {
    -webkit-appearance: none;
    width: 98%;
    height: 20px;
    background: linear-gradient(to right, #3b2f9a 0%, #7f75d2 100%);
    background-size: 98% 10px;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    outline: none;
    margin-top: 5px;
}

input#playback-rate::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #b5b0e0;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

input#playback-rate::-webkit-slider-thumb:after {
    content: " ";
    width: 160px;
    height: 10px;
    position: absolute;
    z-index: 1;
    right: 20px;
    top: 5px;
    background: #b5b0e0;
}

q {
    quotes: "â€œ""â€""â€˜""â€™";
}

.section-heading {
    display: none;
}

.passage p {
    line-height: 1.4em;
    font-size: 30px;
    font-weight: 400;
    margin: 20px;
    text-align: justify;
}

.verse-start {
    line-height: 0;
}

/*.initialized span[data-begin]:focus,
.initialized span[data-begin]:hover {
    background-color: #FFFFCA;
    box-shadow: 0px 0px 4px #FFFFCA;
}*/
.initialized span[data-begin].speaking {
    background-color: #FFEB3B;
    box-shadow: 0px 0px 6px #FFEB3B, 0px 3px 6px #00000020;
    border-radius: 2px;
}

.initialized span[data-begin] {
    cursor: pointer;
    padding: 0 2px;
}

.error {
    color: red;
}

footer {
    margin-bottom: 0.5em;
    line-height: 1.4em;
    font-size: small;
}

footer img {
    vertical-align: text-bottom;
}

span:focus {
    outline: none;
}

#playbackRateDropdown {
    position: fixed;
    background: #009688;
    list-style-type: none;
    padding: 0;
    right: 41px;
    font-size: 19px;
    top: -5px;
    border: 2px solid #009688;
    border-top: none;
    color: #fff;
    border-radius: 4px;
}

#playbackRateDropdown.hidden {
    display: none;
}

#playbackRateDropdown li {
    padding: 1px 5px;
    font-weight: bold;
    font-size: 18px;
}

#playbackRateDropdown li:hover {
    background: #00796B;
}

#playbackRateButton {
    color: #fff;
    margin-top: 11px;
    font-size: 18px;
    position: fixed;
    right: 42px;
    background: #009688;
    border-radius: 4px;
    padding: 4px 0 0 0;
    width: 48px;
    text-align: center;
    height: 32px;
    font-weight: bold;
}

#playPauseButton {
    color: #fff;
    margin-top: 11px;
    font-size: 20px;
    position: fixed;
    right: 6px;
    background: #009688;
    border-radius: 4px;
    padding: 0;
    width: 32px;
    text-align: center;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading img {
    width: 16px;
    height: 16px;
}

body.initialized .content button {
    color: #000;
}

.container {
    display: inline-block;
    cursor: pointer;
    margin-top: 9px;
}

.bar1,
.bar2,
.bar3 {
    width: 28px;
    height: 5px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}

.panel-open .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
}

.panel-open .bar2 {
    opacity: 0;
}

.panel-open .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}

.homeLinks {
    text-align: center;
}

.homeLinks.section a {
    text-align: left;
    padding-top: 8px;
}

div.homeLinks a {
    font-size: 20px;
    background: #fff;
    background: #ffffff96;
    padding: 4px 8px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    width: 90%;
    max-width: 362px;
    display: inline-block;
    margin: 3px;
    box-shadow: rgba(0, 0, 0, 0.5) 0 2px 2px 2px;
    font-weight: normal;
    font-family: "Secular One", "Arial", sans-serif;
}

div.homeLinks a:hover {
    background: #eeeeee;
    background: #ffffffd1;
}

div.nextPrevPageButton {
    display: inline-block;
    width: 90%;
    background: #009688;
    text-align: center;
    font-family: 'Secular One', sans-serif;
    margin: 6px 4px;
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    transition: 0.2s ease-out;
    max-width: 300px;
}

div.nextPrevPageButton:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.nextPrevPageButton.hidden {
    display: none;
}

div.nextPrevPageButton h3 {
    margin-top: 8px;
}

div.nextPrevPageButton p {
    margin-top: -16px;
    margin-bottom: 8px;
    padding: 0 6px;
}

span.br {
    display: block;
    margin-bottom: 0.4em;
}

div.about {
    margin: 2em;
}

/* header */

main.panel {
    padding-top: 50px;
    background: inherit;
}

#toggleMenu {
    border: 0;
    background: transparent;
}

header.header {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 55px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.5) 0 -20px 20px 20px;
}

header h1 {
    margin: 0;
    padding: 0;
    height: 58px;
    line-height: 58px;
    font-weight: 400;
    font-size: 18px;
    float: left;
    font-family: 'Secular One', 'Arial', sans-serif;
}

@media (min-width: 340px) {
    .toggle_menu {
        width: 50px;
    }
}

@media (min-width: 350px) {
    header h1 {
        font-size: 20px;
    }
}

@media (min-width: 360px) {
    header h1 {
        font-size: 20px;
    }
}

@media (min-width: 380px) {
    header h1 {
        font-size: 21px;
    }
}

@media (min-width: 400px) {
    header h1 {
        font-size: 22px;
    }
}