@font-face {font-family: lmm; src: url(lmmonoltcond10-regular.otf);}
body {
    font-family: lmm;
    font-size: 14pt;
    overflow-x: hidden;
}
pre, p {
    font-family: lmm;
    font-size: 12pt;
}
#caption {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 30px;
    background-color: #9c3d11;
    color: #fff;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
#caption span.main {
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
    flex-grow: 1;
}
#caption span {
    margin-right: 10px;
}
#caption a {
    font-size: 12pt;
    color: #f7cab5;
    margin-right: 10px;
    text-decoration: none;
    font-size: 1.05em;
    /* border: 1px solid #000; */
}
#caption a i {
    font-size: 1em;
}
#caption a:hover {
    color: #fff;
}
#caption a span { display: none; }
#statusbar {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 20px;
    background-color: #9c3d11;
    color: #fff;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
#statusbar span{
    font-size: 0.8em;
    margin-left: 5px;
}
#statusbar a {
    color: #ffd;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .2em;
}
.note-ex a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .2em;
}
#middler {
    position: absolute;
    left: 0px;
    right: 0px;
    top:30px;
    bottom:20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}
#middler * {
    /* border: 1px solid #999; */
}
#folder, #notes {
    width: 20%;
    min-width: 204px;
    flex-shrink: 0;
}
#viewer, #editor {
    flex-grow: 1;
}
.caption {
    padding: 4px;
    font-weight: bold;
    text-align: center;
}
#folder {
    background-color: #f9d5c4;
    display: flex;
    flex-direction: column;
}
#folder .caption {
    background-color: #ed8859;
    font-size: 1.3em;
}
#notes {
    background-color: #ffe3cf;
    display: flex;
    flex-direction: column;
}
#notes .caption {
    background-color: #feb17b;
    font-size: 1.3em;
}
#editor {
    background-color: #ffefdd;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
}
#editor .caption {
    background-color: #fec789;
    font-size: 1.3em;
}
#paper {
    padding: 0px 15px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: lmm;
}
#paper p {
    font-size: 1em;
}
.toolbar {
    padding: 4px;
    font-size: 12pt;
    border-bottom: 1px solid #999;
    min-height: 32px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
.toolbar span {
    margin-left: 5px;
    flex-grow: 1;
    font-weight: bold;
    font-size: 1.2em;
}
.toolbar a {
    border: 1px solid #000;
    padding: 3px;
    margin: 1px;
    color: #000;
    font-weight: bold;
}
.toolbar a:hover {
    color: #ffd;
    background-color: #555;
    border-radius: 0 0 40% 0;
}
#book_entries, #note_entries {
    overflow-y: auto;
    color: #555;
}
#book_entries input[type="radio"], #note_entries input[type="radio"] {
    display: none;
}
#book_entries span, #note_entries span {
    cursor: pointer;
    display: block;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(200,200,200,0.5);
}
#book_entries input[type="radio"]:checked+span,
#note_entries input[type="radio"]:checked+span
{
    font-weight: bold;
    background-color: #ed8859;
    color: #555;
}
#book_entries span:hover,
#note_entries span:hover {
    background-color: #f4b496;
    color: #555;
}
.book-name, .note-name {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid #fff;
    border-radius: 2px;
    margin: 2px;
}
.book-name {
    color: #009;
    background-color: #ff0;
}
.note-name {
    color: #900;
    background-color: #ff0;
}
.xdialog {
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.xdialog textarea {
    min-height: 200px;
    margin-top: 20px;
}
.xdialog input[type=file] {
    font-size: 10pt;
    padding: 5px;
    border: 1px solid #aaa;
}
.xdialog input[type=password],
.xdialog input[type=submit] {
    margin-top: 20px;
    font-size: 16pt;
    padding: 5px;
    text-align: center;
}
.xdialog label {
    font-size: 16pt;
    padding: 5px;
    margin-top: 20px;
    border: 1px solid #aaa;

    display: flex;
    flex-direction: row;
    align-items: center;
}
.xdialog label span {
    display: inline-block;
}
#unlocker {
    display: none;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    z-index: 5;
    background-color: #f4b496;
    text-align: center;
}
#unlocker i {
    font-size: 9em;
}

#btnFloat { display: none; }
#cpt_bookname { display: none; }

@media (max-width:800px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */
    #smiley { display: none; }
    #folder, #notes, #editor { width: 100%; }
    #caption, #statusbar { display: none;}
    #caption {
        position: absolute;
        left: 0px;
        right: 0px;
        top: 0px;
        bottom: 45px;
        padding: 0px;
        background-color: #9c3d11;
        flex-direction: column;
        align-items: stretch;
    }
    #caption span.main {
        padding: 4px;
        font-weight: bold;
        text-align: center;
        font-size: 1.3em;
        display: block;
        background-color: #9c3d11;
        margin-bottom: 3px;
        margin-left: 0px;
        margin-right: 0px;
    }
    #caption a {
        margin-top: 5px;
        margin-left: 5px;
        padding: 10px;
        color: #543;
    }
    #caption a span { display: inline; }
    #caption a:hover { background-color: #fde79a; color: #000; }
    #statusbar {
        position: absolute;
        bottom: 0px;
        left: 0px;
        right: 0px;
        height: 45px;
    }
    #middler {
        position: absolute;
        left: 0px;
        right: 0px;
        top:0px;
        bottom:0px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        background-color: #f4b496;
    }
    #btnFloat {
        display: block;
        position: fixed;
        right: 5px;
        top: 5px;
        padding: 3px;
        border-radius: 3px;
        z-index: 3;
        background-color: #000;
        color: #fff;
    }
    #cpt_bookname { display: block; }
}
