
html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: brown;
    overflow: hidden;
    position: fixed; 
    top: 0;
    left: 0;
}
#viewport-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: lightblue; 
    overflow: hidden;
    z-index: 0;
}

#app-container {
    background-color: #f0ecdb;
    position: absolute;
    width: 1920px;
    height: 1080px;
    transform-origin: top left;
    z-index: 1;
    overflow: hidden;
}

#fullScreenButton {
    /* Fixed positioning in upper right corner */
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    /* Remove default button styling */
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

#TJ {
    display: block;
    margin: auto;
}

expan {
    font-style: italic;
}
/* Style the custom tag */
hi[rend='orncp'] {
    font-size: var(--ornamented-font-size);
    font-weight: bold;
    color: crimson;
    background-color: lightblue;
    border: crimson solid 1px;
    padding: 0px 2px 0px 2px;
    vertical-align: 4px;
    border-radius: 1px;
    pointer-events: none;
}

char[name="pilcrow"] {
    font-size: 100%;
    font-weight: bold;
    vertical-align: 4px;
    color: darkgray;
    pointer-events: none;
}

sub, sup {
    line-height: 0; /* avoids having super- and sb-scripts affect line height */
}
.textIndexClass {
    position: absolute;
    top: 2.5%;
    left: 1.5%;
    border-collapse: collapse;
    max-width: fit-content;
}
    .textIndexClass td {
        padding: 1px 4px 1px 5px;
        cursor: pointer;
    }
        .textIndexClass td:not(:empty) {
            border: 1px brown solid;
        }
            .textIndexClass td:not(:empty):hover {
                background-color: #ccffcc;
            }
.folioTableClass {
    position: absolute;
    top: 5px;
    left: 23%;
    border-collapse: collapse;
    max-width: fit-content;
    margin-right: auto;
    margin-left: 90px;
    margin-top: auto;
    display: none;
}
    .folioTableClass td {
        padding: 2px 4px 2px 5px;
        cursor: pointer;
    }
        .folioTableClass td:not(:empty) {
            border: 1px brown solid;
        }
            .folioTableClass td:not(:empty):hover {
                background-color: #c4e2ed;
            }

.bgNavajowhite {
    background-color: navajowhite;
}

.indexHover {
    background-color: #c4e2ed;
}

#textContainer {
    font-family: serif;
    max-width: fit-content;
    max-height: fit-content;
}

.noteDisplayStyle {
    display: block;
    position: absolute;
    z-index: 10;
   /* left: 900px;
    top: 100px; */
    padding: 10px;
    border: red dotted 1px;
}

.noteClass {
    z-index: 60;
    font-weight: 200;
    pointer-events: none;
}


.rubric {
    font-size: 115%;
    font-weight: 550;
    color: darkslategrey;
}

.rubricTop {
    padding-top: 8px;
}

.rubricBottom {
    padding-Bottom: 16px;
}


.displayLine {
    box-sizing: border-box;
    width: 100%;
    white-space: nowrap;
    padding-bottom: 3px;
}

.stanzaBreak {
    padding-bottom: 12px;
}

.proseNoteFlag {
    color: red;
    font-weight: bold;
    pointer-events: none;
}

.oneLine {
    white-space: nowrap;
}

.lineNumber {
    font-size: 75%;
    vertical-align: bottom;
    padding-top: 4px;
    float: right;
    pointer-events: none;
}

.proseLineNr {
    font-size: 60%;
    vertical-align: text-top;
    font-weight: 200;
    pointer-events: none;
}

#bigText .lineNumber {
    display: none;
}

#bigText .lineNrStyle .searchBGPoe {
    display: none;
}

#bigText .searchBGaPoe {
    display: none;
}

#bigText .searchBGPoe {
    display: none;
}

.button {
    position: absolute;
    top: 4px;
    left: 10px;
    background-color: grey;
    color: white;
    padding: 5px;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.redUnderline {
    border-bottom: 2px solid rgba(255, 0, 0, 0.8);
    /*border-bottom: 2px solid #cde9ee;*/
}

note1 {
    display: block;
}

.partHiLite {
    background-color: #ccffcc;
}

.textIndexContainer {
    position: absolute;
    top: 4%;
    left: 1.5%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    background-color: Navajowhite;
    margin-left: auto;
    margin-top: auto;
    width: fit-content;
    height: fit-content;
    border-right: 1px brown solid;
    border-bottom: 1px brown solid;
}


/*slider css*/
input[type="range"] {
    accent-color: tan;
}

.range-wrap {
    z-index: 25;
    display: none;
    position: relative;
    top: 950px;
    bottom: 0px;
    /*width: 100%;*/
    
    width: 1900px;
}

.range {
    appearance: none;
    width: 1900px;
    background: tan;
    height: 2px;
    outline: none;
    /*border-radius: 10px;*/
}

.folioTag {
    background: transparent;
    outline: 1px solid tan;
    color: saddlebrown;
    padding: 4px 10px;
    position: absolute;
    border-radius: 20px 20px 2px 2px;
    left: 50%;
    cursor: default;
    transform: translateX(-50%);
    user-select: none;
    text-align: center;
}
/*end slider css*/
/*magnifier elements*/
#folioIcon {
    transform-origin: top left;
}

#lensContainer {
    position: absolute;
    z-index: 100;
    color: transparent;
    overflow: hidden;
    border: black solid 2px;
}

#lens {
    position: absolute;
    z-index: 1000;
    cursor: move;
    color: transparent;
    border: red solid 2px;
    max-width: 350px;
    max-height: 350px;
}

#folioBaseImage {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 500;
}

#enlargement {
    position: absolute;
    border: 2px solid black;
    z-index: 10;
}

#copyButton {
    position: absolute;
    z-index: 10;
    color: brown;
    border: tan solid 1px;
    background-color: transparent;
    border-radius: 3px;
    transform-origin: top left;
}
/*end magnifier*/

/* search routine */
.dropdwn {
    background-color: #3498DB;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

    .dropdwn:hover, .dropdwn:focus {
        background-color: #2980B9;
    }

.searchMenu {
    /*position: relative;*/
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content div {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content div:hover {
            background-color: #ddd;
        }
.specialSearchOptionsStyle {
    padding: 10px;
    background-color: #DFF2FE;
    cursor: pointer;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    position: absolute;
    top: 60%;
    left: 200px;
}
    .specialSearchOptionsStyle div {
        padding: 15px;
    }

.selOpt {
    background-color: #ddd;
}

.show {
    display: block;
}

.notVisible{
    visibility:hidden;
}

.hide {
    display: none;
}

.specialCharStyle {
    margin-bottom: 6px;
    padding:3px;
    cursor: pointer;
    border: brown solid 1px;
    font-size: 110%;
    width:fit-content;
    max-width:400px;
    
}

.spCharDisplay {
    padding-left: 8px;
    padding-right: 8px;
}

#searchLayout {
    position: absolute;
    top: 583px;
    display: flex;
    flex-direction: row;
    width: 675px;
}

#searchOptions {
    flex-direction: column;
}

#searchTerms {
    flex-direction: column;
    margin-left: 50px;
}

.lastOption {
    color: red;
}

.sView,
.sEdit {
    height: 50px;
    width: 400px;
    font-family: sans-serif;
    font-size: 14px;
    display: block;
    overflow: scroll;
}

.sView {
    /* padding + border = 3px */
    padding: 4px;
    border: 1px solid black;
}

.sEdit {
    /* replace padding with border (still 3px not to shift the contents) */
    border: 2px solid blue;
    padding: 3px;
}

.andOrNot {
    margin-top: 6px;
    margin-bottom: 12px;
}

.searchResultsStyle {
    position: absolute;
    top: 3%;
    left: 35%;
    max-width: 30%;
    height: 85%;
    margin: 5px;
    display: flex;
    flex-direction: column;
}

.searchTitleStyle {
    position: sticky;
    top: 0;
    padding: 5px;
    text-align: center;
    font-weight: bold;
    z-index: 1;
}

.sTextDisplayStyle {
    flex-grow: 1;
    overflow-y: auto;
    height: 80%;
}

.ssStyle {
    box-sizing: border-box;
    padding: 3px;
    background-color: white;
    cursor: pointer;
    border-bottom: 1px dashed rgb(0, 0, 0, 0.2);
    background-color: white;
}

.bg0 {
    color: black;
}

.bg1 {
    color: red;
    font-size: 1.15em;
    font-weight: bold;
}

.bg1a {
    color: rgba(0,255,0,1.0);
    font-weight:900;
}

.bg2 {
    color: rgba(0,0,255,1.0);
    font-size: 1.15em;
    font-weight:bold;
}

.bg3 {
    color: rgba(0,255,0,1.0);
    font-size: 1.15em;
    font-weight: bold;
}

.searchBGa {
    background-color: rgba(0,255,0,0.2);
    pointer-events: none;
}

.searchBG {
    background-color: rgba(255,255,0,0.2);
    pointer-events: none;
}

.searchBGaPoe {
    color: rgba(0,255,0,1.0);
    font-weight: bold;
    text-shadow: red 0px 0px 2px;
    pointer-events: none;
    margin-left: -14px
}

.searchBGPoe {
    color: rgba(255,0,0,1.0);
    font-weight: bold;
    pointer-events: none;
    margin-left: -14px;
}

.boxed {
    border: 1px dotted red;
    box-sizing: border-box;
}

.lineNrStyle {
    font-style: italic;
    font-size: 75%;
    margin-bottom: .3em
}


.detailStyle {
    position: absolute;
    margin-top: 5px;
    z-index: 100;
    font-size: 200%
}

    .detailStyle .lineNrStyle {
        display: none;
    }

    .detailStyle .lineNumber {
        display: none;
    }

.sNavStyle {
    display: none;
    text-align: center;
    padding: 3px;
    font-weight: bold;
}

.sBackStyle {
    float: left;
    padding: 2px;
    border: black dotted 1px;
    border-radius: 2.0rem;
    cursor: pointer;
}

.sDisplayItemCtStyle {
    padding: 2px;
    margin: auto;
}

.sForwardStyle {
    float: right;
    padding: 2px;
    border: black dotted 1px;
    border-radius: 2.0rem;
    cursor: pointer;
}

.searchSelectedTextPart {
    background-color: yellow;
    color: mediumvioletred;
}
.searchSelectedFolios {
    background-color: yellow;
    color: mediumvioletred;
}
/* tale navigation */
.taleLineBar {
    width: 2px;
    height: 25px;
    background-color: tan;
    position: absolute;
    bottom: 6px;
    user-select: none;
}

.taleLineLabel {
    position: absolute;
    bottom: 23px;
    font-size: 11px;
    color: saddlebrown;
    font-weight: bold;
    background-color: #f0ecdb;
    /*border: solid tan 1px;*/
    user-select: none;
}
/* distributions graph */
#chartContainer {
    position: absolute;
    background-color: #f0ecdb;
    width: 1905px;
    height: 150px;
    top: 810px;
    z-index: 80;
    border-bottom: 1px solid brown;
    display: none;
}
.bar {
    width: 3px;
    background-color: brown;
    position: absolute;
    bottom: 0%;
    box-sizing: border-box;
    border-collapse: collapse;
}

.barOn {
    background-color: brown;
    width: 7px;
}

.barStat {
    position: relative;
    display: none;
    color: white;
    background-color: darkcyan;
    border-radius: 90% 90% 90% 0%;
    transform: rotate(315deg);
    width: fit-content;
    padding: 5px;
    z-index: 10;
    left: -10px;
}

.barStatOn {
    display: block;
    z-index: 10;
}

.currentBarStatOn {
    display: block;
    z-index: 10;
}

.moveOver {
    transform: translateX(4px);
}

.RBContainerStyle {
    position: absolute;
    bottom: 0.7%;
    left: 5%;
    color: saddlebrown;
    display: none;
}

#searchNav {
    display: none;
    position: absolute;
    top: 0px;
    left: 500px;
    z-index: 10;
}

.arrowStyle {
    font-size: 18pt;
    cursor: pointer;
    color: tan;
}
