body {
    background-color: #0a0a0a;
    color: #ffffff;
}
a {
    color: #ffffff;
}
#user_menu {
    float: right;
    width: 3%;
    font-size: x-small;
    text-align: right;
}
#user_menu a {
    display: inline-block;
    margin-bottom: 1.5ex;
    padding-right: 0.5em;
}
#menu {
    float: left;
    width: 15%;
    height: 100vh;
    font-size: 80%;
    overflow-y: scroll;
    overflow-wrap: break-word;
}
#main {
    /*
    float: right;
    width: 81%;
    float: left;
    height: 90vh;
    width: 33vw;
    */
}
body#thumbnails #main {
    width: 85%;
}
#openseadragon1 {
    margin: auto;
    margin-top: 0;
    margin-bottom: 10px;
}
#current_nav {
    text-align: center;
    color: white;
    margin-top: 20px;
}
#current_nav {
    text-align: center;
    color: white;
}
#prev_next a {
    color: white;
    font-size: small;
}
#current_nav span#prev_item {
    margin-right: 2em;
    font-size: small;
}
#current_nav span#next_item {
    margin-left: 2em;
    font-size: small;
}
#menu > p {
    margin: 2.4ex 0 0.5ex 0;
    color: #ffffff;
    cursor: pointer;
}
#menu > p > span {
    cursor: none;
}
#menu > ul {
    margin: 0;
    list-style: none;
    padding-left: 1em;
}
#menu > p.current_collection {
    font-weight: bold;
}
#menu > ul > li {
    margin: 0.5ex 0;
}
#menu > ul > li > a {
    padding: 0.2ex;
    color: white;
}
#menu > ul > li.current_item > a {
    font-weight: bold;
    background-color: #d3d3d3;
    color: #fafad2;
    color: white;
    text-decoration: none;
}
#menu > ul {
    /* visibility: hidden; */
    display: none;
}
#menu > p.expanded + ul {
    display: block;
}
.toggle-button {
    font-size: small;
    padding-right: 0.5em;
}

#page_nav {
    height: 2vh;
    margin: 1ex 0 1.5ex 0;
    padding: 0;
    font-size: small;
    font-family: sans-serif;
}

.stemma_link,
#ui_columns_visibility {
    margin-left: 2em;
    padding-left: 1em;
    position: absolute;
    top: 5px;
    right: 20px;
    border-left: 1px solid #fff;
}


#container {
    overflow-x: scroll;
    display: grid;
    grid-template-columns: 600px 600px 600px 600px 600px 1px;
    grid-gap: 20px;
    gap: 20px;
    height: 91vh;
}

.transliteration,
.transcription,
#translit,
#transcript,
#source_description,
#notes {
    color: black;
    background-color: white;
    height: 835px;
    /* width: 32vw; */
    padding: 0 0.5em;
    transition: all 1s ease-out;
    overflow-y: scroll;
}

#facsimile {
    background-color: #000;
    color: #fff;
    transition: all 1s ease-out;
}

#source_description {
    overflow-y: scroll;
}

#source_description td.manuscript_card_nr  {
    vertical-align: top;
    width: 6em;
}

#notes {
    overflow-y: scroll;
}

.column_hidden {
    display: none;
}

#translit.column_prepare_to_hide, 
#translit.column_prepare_to_hide *,
#translit.column_prepare_to_hide .ocr_line:before,
#transcript.column_prepare_to_hide, 
#transcript.column_prepare_to_hide *,
#transcript.column_prepare_to_hide .ocr_line:before,
#source_description.column_prepare_to_hide, 
#source_description.column_prepare_to_hide *,
#source_description.column_prepare_to_hide .ocr_line:before,
#notes.column_prepare_to_hide, 
#notes.column_prepare_to_hide *,
#notes.column_prepare_to_hide .ocr_line:before
{
    background-color: #000000ff;
    color: #000000ff;
}

#facsimile.column_prepare_to_hide, 
#facsimile.column_prepare_to_hide *,
#facsimile.column_prepare_to_hide #openseadragon1 {
    background-color: #808080ff;
    color: #d3d3d3ff;
    width: 20px;
}

.column_title {
    font-size: small;
    font-family: sans-serif;
    background-color: lightgray;
    padding: 1ex 1em;
    margin: 0 -0.6em;
}

#source_description a,
#notes a {
    color: blue;
}

#notes h3 {
    font-size: 80%;
}

.ocr_line {
    display: block;
}

.ocrx_word {
    display: inline-block;
    margin: 0 0 0 0;
}

.current_context_element, .current_context_related_element {
    /* background-color: #f2e59f5d; */
    background-color: #eac7065e;
    border-bottom: 1px solid red;
}

.emendation {
    text-decoration: line-through;
    margin-right: 0;
}

.superscript {
    vertical-align: super;
    font-size: 80%;
}

.note_link {
    vertical-align: super;
    font-size: 70%;
    color: blue;
    font-family: monospace;
    font-weight: bold;
    background-color: #f2e59f;
    padding: 0.5ex;
}

.note_link:visited {
    color: blue;
}

.note_selected {
    /* background-color: #f2e59f5d; */
    background-color: #eac7065e;
}

.ocrtext_container {
    counter-reset: line-counter 0;
}

.ocrtext_container.p2 {
    counter-reset: line-counter 28;
}

.ocrtext_container .ocr_line {
    counter-increment: line-counter;
    padding-left: 0;
    margin-top: 0.7ex;
}
.ocrtext_container .ocr_line:before {
    display: inline-block;
    content: counter(line-counter) ' ';
    background-color: lightgrey;
    padding-top: 1.3ex;
    padding-right: 0.5em;
    padding-bottom: 0.8ex;
    margin: 0;
    margin-right: 0.5em;
    text-align: right;
    width: 2em;
    font-size: 70%;
    font-family: monospace;
}

.ocrtext_container.p1 .ocr_line:nth-child(5n):before {
    color: red;
    font-weight: bold;
}

.ocrtext_container.p2 .ocr_line:nth-child(5n+2):before {
    color: red;
    font-weight: bold;
}

.controllers_group_hidden {
    display: none;
}
