/*
Books and Chapters Overlay
*/

.OverlayWrap-Hidden {
    visibility: collapse;
}

.OverlayDivWrap-class {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    z-index: 98;
    /**/
    height: 100%;
    width: 100%;
    margin: 0;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
}


/*
#OverlayDivWrap>div {
    padding: 0px;
    flex: 1 100%;
    display: relative;
}*/

.overlaydivwrap_OverlayPaddingLeft {
    order: -1;
    /*z-index: 99;*/
    flex: 1 1px;
    max-width: 100%;
}

.overlaydivwrap_OverlayPaddingRight {
    order: 1;
    /* z-index: 99;*/
    flex: 1 1px;
    max-width: 100%;
}

#overlaydivwrap_CloseDiv {
    width: 100%;
    height: auto;
}

#OverlayDivCloseButton {
    width: 200px;
    max-width: 40em;
    margin: 0 auto;
    height: auto;
    font-size: 2em;
}

.overlaydivwrap_OverlayDivHeader {
    width: 100%;
    order: -2;
}

#OverlayDiv-id {
    flex: 3 200px;
    order: 0;
    z-index: 100;
    font-size: 1.2em;
    text-align: center;
    max-width: 20em;
    /**/
    max-height: 10000vh;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    -moz-transition: max-height 0.5s ease, opacity 0.5s ease;
    -webkit-transition: max-height 0.5s ease, opacity 0.5s ease;
    -o-transition: max-height 0.5s ease, opacity 0.5s ease;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

#OverlayDiv-id>div {}

.overlaydiv_Book-class {
    width: 100%;
    padding: 1em;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.bookItem {
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.bookItem>h4 {
    margin: 0;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.bookItem>h4:active {
    background-color: rgba(0, 0, 0, 0.5);
}

.bookItem>h4:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.bookChapterItemWrap {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    max-height: 22em;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    /*webkit-padding-start:0px;*/
    padding: 0.2em;
    -moz-transition: max-height 0.5s ease, opacity 0.5s ease;
    -webkit-transition: max-height 0.5s ease, opacity 0.5s ease;
    -o-transition: max-height 0.5s ease, opacity 0.5s ease;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-bottom: 1em;
}

.bookChapterItem {
    width: 2em;
    height: 2em;
    margin: 0.375em;
    padding: 0.5em;
    line-height: 2em;
    text-align: center;
    cursor: pointer;
}

.bookChapterItem:active {
    margin: 0.125em;
    font-size: 1.25em;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
}

.bookChapterItem:hover {
    margin: 0.125em;
    font-size: 1.25em;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
}

.versionItem {
    cursor: pointer;
}

.versionItem:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.versionItem:active {
    background-color: rgba(0, 0, 0, 0.5);
}

#overlaydiv_Version-id {
    width: 100%;
    padding: 0.25em;
    /**
    -webkit-margin-before: 1em;
-webkit-margin-after: 1em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;*/
    -webkit-padding-start: 0px;
}

.toggleOverlay {
    cursor: pointer;
}

.verseNumbersOptionHide {
    overflow: hidden;
    width: 0px;
    padding: 0px;
    margin: 0px;
    height: 0px
}

.verseHeadersOptionHide {
    overflow: hidden;
    width: 0px;
    padding: 0px;
    margin: 0px;
    height: 0px
}