html{
    overscroll-behavior: none;
}

body{
    background-color: #FFFFFF !important;
    overscroll-behavior: none;
}

button,
select,
input{
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.loader-image{
    height: 66px;
    width: 66px;
}

.word {
    background: #f00;
    padding: 0 .5em 0 0;
}

#cover{
    position: absolute;
    background-color: rgba(0,0,0,0);
    left: 47px;
    right: 47px;
    z-index: 99999;
}

#sidebar {
    background: #E0E0E0;
    position: absolute;
    /* left: -260px; */
    /* -webkit-transform: translate(-260px, 0);
     -moz-transform: translate(-260px, 0); */
    top: 0px;
    height: 100%;
    -webkit-transition: -webkit-transform .5s;
    -moz-transition: -moz-transform .5s;
    -ms-transition: -moz-transform .5s;
    overflow: hidden;
    transition: 0.5s;
    box-shadow: rgba(0, 0, 0, 0.75) 6px 0px 20px -2px;
}

#sidebar.open {
    min-width: 300px;
    width: 25%;
}

#sidebar.closed {
    min-width: 0px;
    width: 0%;
}

#sidebar option {
    width: 100%;
    background-color: #bdbdbd;
    margin-top: 9px;
    margin-bottom: 9px;
    color: black;
    font-size: 1.2em;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.75) -1px 3px 6px -3px;
}

#main-toolbar {
    height: 54px;
    background-color: #E0E0E0;
    display: flex;
    padding: 0px;
    z-index: 999;
    bottom: 0;
    position: fixed;
    width: 100%;
    justify-content: center;
    margin-bottom: max(0px, env(safe-area-inset-bottom)); /*added for ios as ios devices after iphone x need a gap at the bottom because of bottom bar*/
    align-items: center;
    justify-content: center;
}

#opened-menu {
    display: none;
    z-index: 9999;
    width: 70px;
    float: right;
    background-color: #D7D2CB;
    padding: 20px;
}

.side-menu {
    /*font-family: 'Roboto', sans-serif;*/
    font-size: 12px;
    text-transform: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    height: 0px;
    position: fixed;
    z-index: 99999;
    top: 50px;
    left: 5px;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: 0.5s;
    box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 11px -6px;
    width: 18em;
    /*padding-top: 5px;*/
}

.side-menu a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.side-menu a:hover {
    color: #f1f1f1;
}

.closebtn {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 3.7em;
    margin-left: 50px;
    color: #000;
    margin-right: 5px;
    margin-top: 5px;
    height: 50px;
    width: 50px;
    border: 1px solid rgba(0,0,0,0.3);
    box-shadow: none;
    border-radius: 3px;
    padding: 0;
    box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 7px -3px;
    outline: none;
}

.closebtn:active {
    outline: none;
    -moz-box-shadow: inset 0 0 3px 3px #888;
    -webkit-box-shadow: inset 0 0 3px 3px#888;
    box-shadow: inset 0 0 3px 3px #888;
    transition: 0.2s;
}

.side-menu div {
    text-decoration: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
}

#fileContainer {
    width: 181px;
    margin-left: -32px;
    margin-top: -7px;
    padding-top: 13px;
}

#file-container [type=file] {
    display: block;
    font-size: 1em;
    opacity: 0;
    position: absolute;
    cursor: pointer;
    background-color: blue;
    z-index: 9999999;
    color: white;
    width: 100%;
    height: 50px;
    margin-left: -35px;
}

#main{
    border-radius: 0;
}

.main-toolbar-btn {
    height: 50px;
    width: 50px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.3);
    box-shadow: rgba(0,0,0,0.5) 2px 2px 2px -2px;
    border-radius: 5px;
    background-color: #eee;
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 60%,rgba(225,223,226,1) 100%);
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
    border: 1px solid #bcbcbc;
    color: #888;
    font-weight: 700;
}

.main-toolbar-btn-lbl{
    display: block;
    margin-top: -4px;
}

.main-toolbar-arrows {
    height: 50px;
    width: 50px;
    padding: 0;
    border: 1px solid black;
    box-shadow: none;
    margin-top: -1px;
}

.main-toolbar-btn:focus {
    outline: none;
}

.main-toolbar-btn:active {
    outline: none;
    border: solid 1px #8a8a8a;
}

.main-toolbar-btn:hover {
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%) !important;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%) !important;
    color: #555;
}

.main-toolbar-arrows:focus {
    outline: none;
}

.main-toolbar-arrows:active {
    outline: none;
    -moz-box-shadow: inset 0 0 3px 3px #888;
    -webkit-box-shadow: inset 0 0 3px 3px#888;
    box-shadow: inset 0 0 3px 3px #888;
    transition: 0.2s;
}

.main-toolbar-icons{
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.main-content-icons {
    width: 25px;
    height: 25px;
    justify-content: space-between;
}

.main-navbar-icons {
    text-transform: none;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    border: 0;
    width: 25px;
    height: 25px;
    justify-content: space-between;
}

#open-file-icon {
    text-transform: none;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    border: 0;
    max-width: 25px;
    justify-content: space-between;
    color: grey;
    width: 25px;
    height: 25px;
}

.main-toolbar-icons-arrow {
    width: 30px;
    height: 30px;
}

.viewer-icons{
    width: 30px;
    height: 30px;
    margin-left: -6px;
    margin-top: -5px;
    cursor: pointer;
}

#closer{
    float: right;
    display: none;
}

.nav-link-container {
    text-transform: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    display: flex;
    text-decoration: none;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    height: 50px;
    /*font-family: 'Roboto', sans-serif;*/
    background-color: #ffffff;
    padding-left: 5px;
}

.nav-link-container:hover {
    background-color: #e6e6e6;
}

.nav-link-container:active {
    transition: 0.4s;
    background-color: #d2d2d2;
}

.nav-text {
    text-transform: none;
    color: #000;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    text-decoration: none;
    cursor: pointer;
    height: auto;
    font-family: 'Roboto', sans-serif;
    margin-left: 15px;
    font-weight: 500;
    font-size: 1rem;
}

#settings-modal-reader {
    overscroll-behavior: none;
    display: none;
    background-color: #ffffff;
    position: fixed;
    right: 0px;
    overflow-y: scroll;
    z-index: 99999;
    box-shadow: rgba(0, 0, 0, 0.75) -6px 0px 20px -2px;
    height: 100%;
    top: 0px;
    transition: 0.3s;
}

#settings-header {
    text-transform: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    justify-content: space-between;
    height: 56px;
    background-color: #E0E0E0;
    line-height: 56px;
    display: flex;
    align-items: center;
    padding-right: 4px;
}

#settings-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-left: 10px;
    font-size: 1.7em;
}

#close-settings-btn {
    border-radius: 5px;
    width: 50px;
    height: 50px;
    -webkit-appearance: none;
    padding: 0;
    background-color: #eee;
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 60%,rgba(225,223,226,1) 100%);
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
    border: 1px solid #bcbcbc;
}

#close-settings-btn:hover{
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%) !important;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%) !important;
    color: #555;
}

#close-btn-lbl {
    margin-top: -2px;
    color: #888;
    font-weight: 700;
}

#close-settings-btn:active {
    outline: none;
    border: solid 1px #8a8a8a;
}

#close-settings-btn:focus {
    outline: none;
}

#settings-body{
    padding-right: 10%;
    padding-left: 10%;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.settings-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.settings-slct {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-family: sans-serif;
    margin: 0;
    vertical-align: baseline;
    width: 100%;
    font-size: 1.2em;
    background: #FFFFFF;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 5px;
    padding: 15px;
    color: rgba(0,0,0,0.6);
    transition: 0.3s;
    height: 50px;
    border: 1px solid #bcbcbc;
}

.settings-slct:focus {
    outline: none;
    /*background: rgba(0,0,0,0.15);
    transition:0.3s;
    box-shadow:inset 0px -9px 0px -7px #0167fe;*/
    border: 1px solid #8a8a8a;
}

.settings-slct:hover {
    outline: none;
    /*background: rgba(0,0,0,0.15);
    transition:0.3s;
    box-shadow:inset 0px -9px 0px -7px #0167fe;
    border-bottom: 1.4px solid #0167fe;*/
    border: 1px solid #8a8a8a;
}

#settings-section-block{
    display: flex;
    flex-direction: column;
}

#test-voice-btn{
    margin-top: 10px;
}

.primary-settings-btn {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-size: 1.2em;
    margin: 0;
    vertical-align: baseline;
    line-height: normal;
    -webkit-appearance: button;
    cursor: pointer;
    width: fit-content;
    width: -moz-fit-content;
    padding: 10px;
    border-radius: 5px;
    background: #0167fe;
    /*color: #4c4c4c;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;*/
    outline: none;
    height: 45px;
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 60%,rgba(225,223,226,1) 100%);
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
    border: 1px solid #bcbcbc;
    color: #888;
    font-weight: 700;
}

.primary-settings-btn:active {
    outline: none;
    border: solid 1px #8a8a8a;
}

.primary-settings-btn:focus {
    outline: none;
}

.primary-settings-btn:hover {
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%) !important;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%) !important;
    color: #555;
    /*border: 1px solid #bcbcbc !important;*/
}

.settings-section{
    margin-top: 10px;
    margin-bottom: 15px;
}

#voice-settings-section{
    margin-top: 20px;
}

#side-menu-background {
    width: 0%;
    height: 100%;
    z-index: 9999;
    position: fixed;
    background-color: rgb(0, 0, 0, 0.6);
}

#menu-background {
    width: 0%;
    height: 100%;
    z-index: 9999;
    position: fixed;
    background-color: rgb(0, 0, 0, 0);
}

#toc-button-holder{
    width: 100%;
    text-align: right;
}

#close-toc {
    position: sticky;
    right: 0;
    padding: 10px;
    margin-right: 5px;
    margin-top: 5px;
    height: 50px;
    width: 50px;
    border: 1px solid rgba(0,0,0,0.3);
    box-shadow: none;
    border-radius: 3px;
    padding: 0;
    outline: none;
    font-size: 3.7em;
    box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 7px -3px;
}

#close-toc:active {
    outline: none;
    -moz-box-shadow: inset 0 0 3px 3px #888;
    -webkit-box-shadow: inset 0 0 3px 3px#888;
    box-shadow: inset 0 0 3px 3px #888;
    transition: 0.2s;
}

#version-number {
    font-size: 1.2em;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-top: 20px;
}

#platform-type {
    font-size: 1.1em;
}

/*#menu-btn-lbl{
    margin-left: 8px;
}*/

#bars-icon{
    height: 28px;
    width: 28px;
    margin-top: 4px;
    margin-left: 10px;
}

#tts-button-holder {
    width: 104px;
    display: inline-flex;
    justify-content: space-around;
}

#file-input-label {
    text-transform: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    text-decoration: none;
    height: auto;
    margin-left: 15px;
    white-space: nowrap;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
}

.cross{
    width: 25px;
    height: 25px;
    outline: none;
}

.cross-icon{
    height: 90%;
    width: 80%;
    margin-top: 3px;
}

#slider{
    box-shadow: 0px 0px 26px -1px rgba(0,0,0,0.75);
    border: 1px solid rgba(0,0,0,0.15);
}

#border-top{
    border-top: 1px solid rgba(0,0,0,0.1);
}

#menu-btn {
    height: 40px;
    width: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: rgba(0,0,0,0.5) 2px 2px 3px -1px;
    padding: 0;
    border-radius: 5px;
    background-color: #E0E0E0;
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 60%,rgba(225,223,226,1) 100%);
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
    border: 1px solid #bcbcbc;
    color: #888;
    font-weight: 700;
}

.navigator-btn {
    height: 40px;
    width: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: rgba(0,0,0,0.5) 2px 2px 3px -1px;
    padding: 0;
    border-radius: 5px;
    background-color: #E0E0E0;
    position: absolute;
    top: 45%;
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 60%,rgba(225,223,226,1) 100%);
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
    border: 1px solid #bcbcbc;
    color: #888;
    font-weight: 700;
}

#right-btn{
    right: 5px;
}

#left-btn{
    left: 5px;
}

#menu-btn:focus {
    outline: none;
}

#menu-btn:active {
    outline: none;
    border: solid 1px #8a8a8a;
}

#menu-btn:hover {
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%) !important;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%) !important;
    color: #555;
}

.navigator-btn:focus {
    outline: none;
}

.navigator-btn:hover {
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%) !important;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%) !important;
    color: #555;
}

.navigator-btn:active {
    outline: none;
    border: solid 1px #8a8a8a;
}

.navigator-btn:disabled {
    outline: none;
    -moz-box-shadow: inset 0 0 3px 3px #888;
    -webkit-box-shadow: inset 0 0 3px 3px #888;
    box-shadow: none;
    opacity: 0.4;
    cursor: not-allowed;
}

#menu-icon{
    width: 25px;
}

#menu-lbl-btn{
    margin-top: -3px;
}

#menu-caption {
    text-transform: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    text-decoration: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    font-size: 1.25rem;
    padding-top: 10px;
    height: auto;
    padding-left: 10px;
    font-weight: 500;
}

#menu-subcaption {
    text-transform: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    text-decoration: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    height: 20px;
    font-size: 1rem;
    padding-left: 10px;
    margin-bottom: 15px;
    color: rgb(102, 103, 102);
    white-space: nowrap;
}

#browser-container{
    z-index: 999;
}

#site-loader-bg {
    display: none;
    width: 100%;
    position: absolute;
    background-color: #ffffff;
    display: flex;
}

#site-loader{
    display: none;
    position: absolute;
    z-index: 99999;
    left: 50%;
    top: 50%;
    margin: -33px 0 0 -33px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

#loader-text,
#site-loader-text{
    font-size: 1.1rem;
}

#browser-container {
    border-color: rgba(0, 0, 0, 0.79);
}

#browser-container #browser-closer-btn{
    border-radius: 3px !important;
    border: 1px solid rgba(0,0,0,0.3);
    width: 50px !important;
    height: 50px !important;
    font-size: 2.1em;
    box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 7px -3px;
    -webkit-appearance: none;
    padding:0;
    background-color: #eee;
    margin-left: 0;
    
}

#browser-container #browser-closer-btn:active {
    outline: none;
    -moz-box-shadow: inset 0 0 3px 3px #888;
    -webkit-box-shadow: inset 0 0 3px 3px#888;
    box-shadow: inset 0 0 3px 3px #888;
    transition: 0.2s;
}

#browser-container #browser-closer-btn:focus {
    outline: none;
}

:root{
    --height-diff: max(0px, env(safe-area-inset-bottom));
}

#book-progress-bar {
    position: absolute;
    /*bottom: 90px;*/
    bottom: calc(var(--height-diff) + 54px);
    border: none;
    width: 100%;
    -webkit-appearance: none;
    height: 12px;
    /*height: var(--height-diff);*/
    z-index: 999;
}

#book-progress-bar::-webkit-progress-value {
    background-color: #66cc00;
}

.settings-text-field {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-family: sans-serif;
    margin: 0;
    vertical-align: baseline;
    width: 100%;
    font-size: 1.2em;
    background: #FFFFFF;
    border-bottom: 0px solid rgba(0,0,0,0.5);
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 5px;
    /* padding-top: 15px; */
    color: rgba(0,0,0,0.6);
    transition: 0.3s;
    height: 50px;
    margin-bottom: 10px;
    /* padding-right: 0; */
    padding: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #bcbcbc;
}

.settings-text-field:focus {
    outline: none;
    border: 1px solid #8a8a8a;
}

.settings-text-field:hover {
    outline: none;
    /*box-shadow: inset 0px 0px 0px 1px #8a8a8a;*/
    border: 1px solid #8a8a8a;
}

#authenticated-user-details-section{
    display: none;
}

#crc-authenticated-premium-user-message{
    display: none;
    display: block;
    font-size: 1.2em;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-top: 20px;
}

.main-content-small-btns{
    display: block;
    margin-top: -6px;
}

/*
 progress {
 
 }
 progress::-webkit-progress-bar {
 
 }
 progress::-webkit-progress-value {
 
 }
 progress::-moz-progress-bar {
 
 }
 */

/*@media only screen and (max-width: 645px) {
 #settings-modal-reader {
 width: 100%;
 }
 }*/
