#page-wrapper {
    overflow-y: auto !important;
}
.inpage {
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: -1px;
    direction: ltr;
}
::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff; /* or add it to the track */
}
::-webkit-scrollbar-thumb {
    background: #000;
}
iframe{
    width: 100%;
    height: 100%;
}
g[data-type=note], g[data-type=highlight] {
    cursor: pointer;
}
div[role=main], #page-content, #page-box {
    height: 100%;
    width: 100%;
}
#readerMainContainer.night-theme #readium-toc-body, #readerMainContainer.night-theme .book-title-header, #readerMainContainer.night-theme .viewport {
    background-color: #333;
    color: #fff;
}
#readerMainContainer.night-theme .modal{
    color:#000;
}
#readerMainContainer.night-theme .page-switch-overlay-icon{
    background-color:rgba(0,0,0,.4);
    color:#fff;
}
#readerMainContainer.night-theme #left-page-btn:hover{
    color:#000;
    background-color:rgba(255,255,255,.2);
}
#readerMainContainer.night-theme #right-page-btn:hover{
    color:#000;
    background-color:rgba(255,255,255,.2);
}
.night-theme{
    background-color:#141414;
    color:#fff;
}
#app-container{
    display: none;
}
.drawer-open-left .container-fluid {
    margin-left: 0;
}
#tocWrapper{
    position: absolute;
    top: 0;
    left:0;
    width: 30%;
    height: 100%;
    display: none;
    background: #000;
    z-index: 11111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: left;
    padding: 0 5px;
    color: white;
    transform: translateX(-100%);
}
.tocContainer{
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: auto;
    padding: 0 5px;
}
.tocContainer nav{
    background-color: transparent;
}
.tocContainer h2{
    font-size: 25px; 
}
.tocContainer ol{
    padding-inline-start: 30px;
    padding-inline-end: 30px;
}
.tocContainer li{
    line-height: 30px;
    list-style: none;
    padding: 0 5px;
    cursor: pointer;
}
.tocContainer ol > li > ol > li a:hover, .tocContainer ol > li > ol > li a:focus{
    color: #fff;
    text-decoration: none;
}
.tocContainer ol > li > ol > li:hover{
    background-color: #3da366;
}
.tocContainer ol > li > a:hover{
    background-color: #3da366;
}
.tocContainer ol > li > a{
    display: block;
    width: 100%;
}
#highlightsWrapper{
    position: absolute;
    top: 0;
    left:0;
    width: 25%;
    height: 100%;
    display: none;
    background: #000;
    z-index: 11111;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: left;
    padding: 0 5px;
    transform: translateX(-100%);
}
.highlightsContainer{
    width: 100%;
    height: calc(100% - 58px);
    position: relative;
    overflow-y: auto;
    padding: 0 5px;
}
#notesWrapper{
    position: absolute;
    top: 0;
    left:0;
    width: 25%;
    height: 100%;
    display: none;
    background: #000;
    z-index: 11111;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: left;
    padding: 0 5px;
    transform: translateX(-100%);
}
.notesContainer{
    width: 100%;
    height: calc(100% - 58px);
    position: relative;
    overflow-y: auto;
    padding: 0 5px;
}
#bookmarksWrapper{
    position: absolute;
    top: 0;
    right:0;
    width: 25%;
    height: 100%;
    display: none;
    background: #000;
    z-index: 11111;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: left;
    padding: 0 5px;
    transform: translateX(100%);
}
.bookmarksContainer{
    width: 100%;
    height: calc(100% - 58px);
    position: relative;
    overflow-y: auto;
    padding: 0 5px;
}
#annotationsWrapper{
    position: absolute;
    top: 0;
    right:0;
    width: 25%;
    height: 100%;
    display: none;
    background: #000;
    z-index: 11111;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: left;
    padding: 0 5px;
    transform: translateX(100%);
}
.annotationsContainer{
    width: 100%;
    height: calc(100% - 58px);
    position: relative;
    overflow-y: auto;
    padding: 0 5px;
}
@media only screen and (max-width: 1024px) {
    #highlightsWrapper, #notesWrapper, #bookmarksWrapper, #annotationsWrapper, #tocWrapper {
        width: 35%;
    }
}
@media only screen and (max-width: 640px) {
    #highlightsWrapper, #notesWrapper, #bookmarksWrapper, #annotationsWrapper, #tocWrapper {
        width: 60%;
    }
}
@media only screen and (max-width: 460px) {
    #highlightsWrapper, #notesWrapper, #bookmarksWrapper, #annotationsWrapper, #tocWrapper {
        width: 55%;
    }
}
#noteContainer{
    position: absolute;
    width: 100%;
    overflow:hidden;
    top:35px;
    bottom:0;
    display: none;
    z-index: 11111;
}
#noteWrapper{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: left;
    padding: 0 5px;
}
#txtNote{
    width:50%;
    height: 60%;
    background-color: #e6f3eb;
    float: right;
}
.highlightHolder{
    border: 1px solid black;
    margin-bottom: 5px;
    padding: 5px;
    cursor: pointer;
    background: rgb(255, 249, 225,1);
    color: #000;
}
.highlightDataText{
    overflow-wrap: break-word;
    text-align: right;
    direction: rtl;
}
.noteHolder{
    border: 1px solid black;
    margin-bottom: 5px;
    padding: 5px;
    cursor: pointer;
    background: rgb(255, 249, 225,1);
    color: #000;
}
.noteDataText{
    overflow-wrap: break-word;
    text-align: right;
    direction: rtl;
}
.annotationHolder{
    border: 1px solid black;
    margin-bottom: 5px;
    padding: 5px;
    cursor: pointer;
    background: rgb(255, 249, 225,1);
    color: #000;
}
#wPaintContainer{
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
}
div#bottomFooter {
    position: absolute;
    height: 100px;
    background-color: #3da366;
    width: 100%;
    z-index: 1111111;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    padding-right: 2%;
}

div#menu, #highlightsMenu {
    position: absolute;
    height: 100px;
    background-color: #3da366;
    width: 100%;
    z-index: 1111;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    padding-right: 2%;
    left: 0;
    transform: translateY('100%');
}
div#menu button i.material-icons, div#highlightsMenu button i.material-icons {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 3px solid white;
    color: white;
    margin: 0.5%;
    display: flex;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
}
#menu button, #highlightsMenu button {
    background-color: transparent;
    border: 0px solid white;
    color: white;
    margin: 0.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    flex-flow: column;
}
div#bottomFooterMini{
    cursor: pointer;
    position: absolute;
    z-index: 1111;
    bottom: 20px;
    display: flex;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    padding: 0.5%;
    right: 10px;
    border: 2px solid #3da365;
    border-radius: 100%;
}
.txtGoToLabel {
    min-width: 100px;
    line-height: 1;
    margin-bottom: 0;
    color: white;
    font-size: 14px;
}
div#bottomFooterMini i.material-icons {
    color: #3da365;
    font-size: 50px;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
}
div#topHeader {
    position: absolute;
    background-color: #3da366;
    width: 100%;
    z-index: 1111111;
    top: 0;
    display: flex;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    padding: 1em 0;
    left: 0;
    display: none;
    transform: translateY(-100%);
}
.topNavDrawer {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-row-gap: 2em;
}
button.btnPrev {
    opacity: 0.6;
    position: absolute;
    top: calc(50% - 45px);
    right: 0px;
    z-index: 111;
    background: transparent;
    border: 0px;
    border-radius: 21px;
    width: 72px;
    background-color: #3da366;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    height: 90px;
}
button.btnPrev i.material-icons {
    font-size: 100px;
    color: white;
}
button.btnPrev:hover {
    opacity: 1;
}
button.btnNext:hover {
    opacity: 1;
}
button.btnNext {
    opacity: 0.6;
    position: absolute;
    top: calc(50% - 45px);
    left: 0px;
    z-index: 111;
    background: transparent;
    border: 0px;
    border-radius: 21px;
    width: 72px;
    background-color: #3da366;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    height: 90px;
    font-size: 14px;
}
button.btnNext i.material-icons {
    font-size: 100px;
    color: white;
}
div#topHeader button {
    background-color: transparent;
    border: 0px solid black;
    color: black;
    margin: 0.5%;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    flex-flow: column;
    font-size: 14px;
    color: white;
}
div#bottomFooter button {
    background-color: transparent;
    border: 0px solid white;
    color: white;
    margin: 0.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    flex-flow: column;
    left: 0;
}
.btnGoToPage i.material-icons {
    font-weight: bolder;
    width: 40px !important;
    height: 40px !important;
}
div#bottomFooter button i.material-icons {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 3px solid white;
    color: white;
    margin: 0.5%;
    display: flex;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
}
div#topHeader button i.material-icons {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 3px solid white;
    color: white;
    margin: 0.5%;
    display: flex;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
}
div#topHeader button i.material-icons:hover {
    background-color: rgb(213, 208, 208);
}

input.txtGoTo {
    width: 65px;
    height: 27px;
    border: 1px solid #b0c8b9;
    background-color: #d8ede0;
    color: black;
}
label.txtGoTolabel {
    color: white;
    width: 52px;
    height: 32px;
    white-space: pre-wrap;
    font-size: 81%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

div#rightBottomFooter {
    right: 0;
    position: absolute;
    width: auto;
    height: 100%;
    display: flex;
    flex-direction: row; 
    display: flex;
    align-items: center;
    justify-content: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
}
div#leftBottomFooter button {
    border-right: 2px solid white;
    height: 15%;
    width: 133px;
    text-align: center;
}
div#rightBottomFooter button {
    height: 100%;
    width: 120px;
    text-align: center;
}
div#leftBottomFooter {
    float: left;
    left: 0;
    position: absolute;
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
#noteHolder {
    width: 100%;
    height: 22%;
    background-color: #3da366;
    padding: 10px;
    z-index: 1111;
    display: flex;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
}
button#btnSaveNote {
    background: transparent;
    border: 0px;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    height: 100%;
    padding-left: 4%;
}
.noteBtnContainer {
    padding-right: 4%;
}
button#btnCancelNote, button#btnContainerDeleteNote {
    background: transparent;
    border: 0px;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    height: 100%;
}
#noteHolder i.material-icons {
    color: white;
    font-size: 40px;
}
#title {
    display: block;
    color: white;
    text-align: left;
    font-size: 2.1em;
    font-weight: bold;
    padding: 1em 0;
    display: flex;
    align-items: center;
    justify-content: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.deleteNote, .editNote, .deleteHighlight, .deleteAnnotation, .editAnnotation, .deleteBookmark{
    width: 30px;
    height: 30px;
    border: 1px solid #070707;
    border-radius: 50%;
    margin: 2px;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    color: #000;
    background: transparent;
}
.closeBookmarks, .closeAnnotations, .closeHighlights, .closeNotes, .closeTOC{
    width: 30px;
    height: 30px;
    border: 1px solid #FFF;
    border-radius: 50%;
    margin: 2px;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    color: #FFF;
    background: transparent;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    z-index: 11111;
}
#searchWrapper{
    position: absolute;
    top: 0;
    right:0;
    width: 20%;
    height: 100%;
    display: none;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: left;
    padding: 0 5px;
}
.searchContainer{
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: scroll;
    padding: 0 5px;
}
.searchHolder{
    border: 1px solid black;
    margin-bottom: 5px;
    padding: 5px;
    cursor: pointer;
}
.searchDataText{
    overflow-wrap: break-word;
    text-align: right;
    direction: rtl;
    font-style: italic;
}
#onlineActivityWrapper{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: left;
    padding: 0 5px;
}
#onlineActivityContainer{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px;
}
.onlineActivityFrame{
    width: 100%;
    height: 100%;
    border: 4px solid #3da366;
    border-radius: 20px;
    box-shadow: 0 0px 90px 30px rgba(0,0,0,0.7);
    background: #FFF;
}
.openActivity{
    position: absolute;
    left: 5px;
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 50%;
    margin: 2px;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    color: #000;
    background: transparent;
    position: absolute;
    top: 5px;
    cursor: pointer;
    z-index: 11111;
}
.openActivity i{
    font-size: 30px;
}
.onlineActivityClose{
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 50%;
    margin: 2px;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    color: #000;
    background: transparent;
    position: absolute;
    cursor: pointer;
    z-index: 11111;
}
.onlineActivityClose i{
    font-weight: bold;
}
.bookmarkContainer{
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.bookmarkContainer i{
    font-size: 40px;
}
#readerMainContainer.night-theme .bookmarkContainer i{
    color: #000;
}
.bookmarkClicked i{
    color: #3da365 !important;
    font-size: 40px;
}
.bookmarkContainer.page-spread-left{
    left:0;
}
.bookmarkContainer.page-spread-right{
    right:20px;
}
.bookmarkHolder{
    border: 1px solid black;
    margin-bottom: 5px;
    padding: 5px;
    cursor: pointer;
    background: rgb(255, 249, 225,1);
    color: #000;
}
.notesButtonsContainer,.highlightsButtonsContainer, .annotationButtonsContainer, .bookmarksButtonsContainer{
    display: flex;
    flex-direction: row-reverse;
}
.annotationImage{
    border: 1px solid black;
    width: 100%;
    height: 50px;
    text-align: center;
}
.annotationImage img{
    height: 100%;
    width: auto;
}
#wPaintClose{		
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 50%;
    margin: 2px;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    color: #000;
    background: transparent;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    z-index: 11111;
}
.wPaint-menu-icon.wPaint-menu-icon-name-bucket, .wPaint-menu-icon-name-ellipse .wPaint-menu-icon-group-arrow, .wPaint-menu-icon-name-ellipse .wPaint-menu-select-holder, .wPaint-menu-icon-name-rectangle .wPaint-menu-icon-group-arrow, .wPaint-menu-icon-name-rectangle .wPaint-menu-select-holder {
    display: none !important;
}
.pagelayout-embedded #page {
    height: 100%;
}
.btnColorPickerContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: white;
    margin: 1%;
}
.btnColorPickerPanel {
    position: absolute;
    bottom: calc(100% + 20px);
    display: flex;
    display: none;
    background-color: rgba(61, 163, 102, 0.5);
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    border-radius: 3px;
    align-items: center;
}
.btnColorPickerPanelItem {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    margin: 0 5px;
}
.btnColorPicker {
    height: 50px !important;
    width: 50px !important;
    border-radius: 100% !important;
    border: 3px solid ghostwhite !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.btnColorPickerContent {
    width: 30px;
    height: 30px;
    border-radius: 100%;
}
.btnColorPickerPanelItem[data-color="#000000"] {
    background-color: #000000;
}
.btnColorPickerPanelItem[data-color="#666666"] {
    background-color: #666666;
}
.btnColorPickerPanelItem[data-color="#CCCCCC"] {
    background-color: #CCCCCC;
}
.btnColorPickerPanelItem[data-color="#FFFFFF"] {
    background-color: #FFFFFF;
}
.btnColorPickerPanelItem[data-color="#FF0000"] {
    background-color: #FF0000;
}
.btnColorPickerPanelItem[data-color="#00FF00"] {
    background-color: #00FF00;
}
.btnColorPickerPanelItem[data-color="#0000FF"] {
    background-color: #0000FF;
}
.btnColorPickerPanelItem[data-color="#FFFF00"] {
    background-color: #FFFF00;
}
.btnColorPickerPanelItem[data-color="#00FFFF"] {
    background-color: #00FFFF;
}
.btnColorPickerPanelItem[data-color="#FF00FF"] {
    background-color: #FF00FF;
}
#highlightColorPickerContent {
    background-color: #FFFF00;
}
.notesColorPickerContent {
    background-color: #0000FF;
}
#panzoomBtnContainer {
    position: absolute;
    z-index: 9;
    bottom: 20px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}
#panzoomBtnContainer button{
    cursor: pointer;
    z-index: 1111;
    display: flex;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    padding: 0.5%;
    border: 2px solid #3da365;
    border-radius: 100%;
    margin: 0 2.5%;
    background-color: white;
}
#panzoomBtnContainer button i {
    color: #3da365;
    font-size: 30px;
    display: flex;
    display: -webkit-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
}
#wPaintClose {
    display: none;
}
.panzoomBtnDisabled {
    pointer-events: none !important;
    cursor: pointer !important;
    border-color: #6c6c6c !important;
}
.panzoomBtnDisabled i {
    color: #6c6c6c !important;
}