html,
body {
    margin: 0;
    padding: 0;
}

.reader.dark #literature-content > * {
    -webkit-filter: invert(90%);
    -moz-filter: invert(90%);
    -o-filter: invert(90%);
    -ms-filter: invert(90%);
    filter: invert(90%);
}

.color-blue {
    color: #337ab7;
}

.color-green {
    color: #17d814;
}

.color-yellow {
    color: #ffda24;
}

.color-red {
    color: #ff5555;
}

.color-purple {
    color: #cc2eff;
}

.align-left {
    text-align: left !important;
}

@media (max-width: 768px) { 
    .col-xs-1-5 {
        width: 12.5%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-xs-2-5 {
        width: 20.833333333333332%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-xs-3-5 {
        width: 29.166666666666668%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
}
@media (min-width: 768px) {
    .col-sm-1-5 {
        width: 12.5%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-sm-2-5 {
        width: 20.833333333333332%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-sm-3-5 {
        width: 29.166666666666668%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
}
@media (min-width: 992px) {
    .col-md-1-5 {
        width: 12.5%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-md-2-5 {
        width: 20.833333333333332%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-md-3-5 {
        width: 29.166666666666668%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
}
@media (min-width: 1200px) {   
    .col-lg-1-5 {
        width: 12.5%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-lg-2-5 {
        width: 20.833333333333332%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .col-lg-3-5 {
        width: 29.166666666666668%;
        float: left;
        position: relative;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
}

.margin-left-zero {
    margin-left: 0 !important;
}

.margin-right-zero {
    margin-right: 0 !important;
}

.input-group * {
    border-radius: 0;
}

.btn-primary {
    background-color: transparent;
    border: 2px solid #337ab7;
    border-radius: 0;
    color: #337ab7;
}

.btn-default,
.btn-default:focus,
.btn-default:focus:hover,
.btn-default:active:hover, 
.btn-default.active:hover, 
.open > .dropdown-toggle.btn-default:hover, 
.btn-default:active:focus, 
.btn-default.active:focus, 
.open > .dropdown-toggle.btn-default:focus, 
.btn-default:active.focus, 
.btn-default.active.focus, 
.open > .dropdown-toggle.btn-default.focus {
    background: #fff !important;
    border-color: #8c8c8c !important;
    box-shadow: none !important;
    outline: none;
}

.btn-primary:hover,
.btn-primary:focus, .btn-primary.focus,
.btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary,
.btn-primary:active:hover, 
.btn-primary.active:hover, 
.open > .dropdown-toggle.btn-primary:hover, 
.btn-primary:active:focus, 
.btn-primary.active:focus, 
.open > .dropdown-toggle.btn-primary:focus, 
.btn-primary:active.focus, 
.btn-primary.active.focus, 
.open > .dropdown-toggle.btn-primary.focus {
    background-color: #337ab7;
    border: 2px solid #337ab7;
    color: #fff;
}

ul.dropdown-menu {
    border-radius: 0;
    color: #337ab7;
}

ul.dropdown-menu > li:hover {
    background-color: #f7f7f7;
    cursor: pointer;
}

.form-control,
.btn {
    border-radius: 0;
}

.btn-primary.selected {
    background-color: #337ab7;
    border: 2px solid #337ab7;
    color: #fff;
}

.reader .reader-logo {
    text-align: center;
}

.reader .menu {
    background-color: #337ab7;
    color: #fff;
    height: 70px;
    padding: 10px;
}

.reader .menu a {
    font-size: 18px;
}

.reader .reader-logo .logo {
    height: 40px;
    margin: 5px;
}

/* .reader .menu .container .row > div:not(:first-child) {
    border-left: 1px solid #6aa2d2;
}

.reader .menu .container .row > div:last-of-type {
    border-right: 1px solid #6aa2d2;
} */

.reader .menu .container .row > div > a:last-of-type {
    margin-left: 3px;
    padding-left: 7px;
}

/* .reader .menu .container .row > div > a:not(:first-of-type) {
    border-left: 1px solid #6aa2d2;
} */

.reader .menu .container .row > div > a[data-toggle="modal"],
.reader .menu .container .row > div > a.favorite {
    color: #fff;
    cursor: pointer;
}

.reader .menu a {
    color: #FFFFFF;
}

.reader .menu a:hover {
    text-decoration: none;
}

.reader .menu .fas {
    color: #fff;
}

.reader .menu .modal,
.reader .menu .modal .fas,
.reader .menu .modal .far {
    color: #333;
}

.reader .menu .row > div > .fas,
.reader .menu .row > div > .far {
    font-size: 20px;
}

.reader .menu .page-info {
    font-size: 20px;
    cursor: pointer;
}

.reader .menu .menu-item {
    float: left;
    display: inline-block;
    margin: 0 15px;
}

.reader .menu .menu-page {
    width: 127px;
    margin: 0 0 0 15px;
}

.reader .menu .title {
    margin: 0;
}

.reader .menu .scale {
    float: right;
}

.reader .menu .scale *,
.reader .menu .scale *:hover,
.reader .menu .scale *:focus,
.reader .menu .scale *:active {
    border: none;
    box-shadow: none;
}

.reader .menu .fa-search {
    margin-top: 3px;
}

.reader .menu .scale {
    width: 150px;
}

.reader .menu .scale input {
    text-align: center;
}

.reader .menu .scale #inputScale {
    color: #337ab7;
    height: 26px;
    font-size: 18px;
}

.reader .menu .scale .input-group-addon {
    color: #337ab7;
    padding: 6px;
}

.reader .menu .scale button {
    width: 18px;
    font-size: 18px;
    height: 26px;
    margin: 0 5px;
    padding: 0;
    background: #337ab7;
    color: #fff;
}

.reader .menu .menu-other {
    float: right;
}

@media (max-width: 555px) {
    .reader .menu .menu-logo {
        display: none;
    }
    .reader .menu .menu-scale {
        float: right;
    }
    .reader .menu .container .row > div > a[data-toggle="modal"],
    .reader .menu .container .row > div > a.favorite {
        color: #fff;
        cursor: pointer;
        background: #337ab7;
        border-radius: 100%;
        display: block;
        height: 40px;
        width: 40px;
        margin-top: 5px;
    }
    .reader .menu .container .row > div > a[data-toggle="modal"] > i,
    .reader .menu .container .row > div > a.favorite > i {
        vertical-align: middle;
        margin: 8px 0 0 8px;
    }
    .reader .menu .menu-note {
        z-index: 9999;
        position: fixed;
        bottom: 0;
        left: 5px;
        float: none;
    }
    .reader .menu .menu-print {
        z-index: 9999;
        position: fixed;
        bottom: 90px;
        left: 5px;
        float: none;
    }
    .reader .menu .menu-other {
        z-index: 9999;
        position: fixed;
        bottom: 0;
        right: 5px;
        float: none;
    }
}

@media (max-width: 596px) {
    .reader .menu .scale {
        width: 125px;
    }
}

@media (max-width: 624px) {
    .reader .menu .menu-item {
        margin: 0 2px 10px !important;
    }
    .reader .menu .menu-scale {
        margin-left: 10px !important;
    }
}

@media (max-width: 718px) {
    .reader .menu .menu-item {
        margin: 0 10px 10px;
    }

    .reader .menu .menu-page {
        margin-left: 10px !important;
    }

    .reader .menu .menu-note,
    .reader .menu .menu-print,
    .reader .menu .menu-other {
        margin: 0 5px 10px !important;
    }

    .reader .menu .menu-note .fas,
    .reader .menu .menu-note .far,
    .reader .menu .menu-print .fas,
    .reader .menu .menu-print .far,
    .reader .menu .menu-other .fas,
    .reader .menu .menu-other .far {
        font-size: 24px;
        margin: 0 3px;
    }
}

@media (max-width: 768px) {
    .reader .literature-content {
        padding: 0;
        height: calc(100vh - 45px) !important;
    }

    .reader .menu {
        height: 40px !important;
        padding: 5px;
    }

    .reader .reader-logo .logo {
        height: 25px;
        margin: 2px;
    }

    .reader .menu .menu-item {
        margin: 0 18px 10px;
    }

    .reader .menu .menu-page {
        margin-left: 38px;
        margin: 0 5px 10px 5px;
    }

    /* .reader .menu .menu-note,
    .reader .menu .menu-print,
    .reader .menu .menu-other {
        margin: 18px 0 0;
    } */

    .reader .menu .container .row > div > a:last-of-type {
        padding-left: 0;
        margin-left: 0;
    }

    .reader .menu .menu-note .fas,
    .reader .menu .menu-note .far,
    .reader .menu .menu-print .fas,
    .reader .menu .menu-print .far,
    .reader .menu .menu-other .fas,
    .reader .menu .menu-other .far {
        font-size: 24px;
        margin: 0 5px;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    .reader .menu {
        height: 50px;
        padding: 5px;
    }

    .reader #literature-preview {
        height: calc(100vh - 92px) !important;
    }

    .reader .literature-content {
        padding: 0;
        height: calc(100vh - 50px) !important;
    }

    .reader .menu .menu-logo {
        margin: 0 15px 0 !important;
    }

    .reader .menu .menu-item {
        margin: 8px 15px 0;
    }

    .reader .menu .menu-page {
        width: 157px;
        margin: 2px 10px 0 18px;
    }

    .reader .reader-logo .logo {
        height: 35px;
        margin: 2px;
    }

    .reader .menu .page-info {
        font-size: 26px;
    }

    .reader .menu .scale {
        height: 25px;
        width: 160px;
        margin-top: -2px;
    }

    .reader .menu .fa-search {
        font-size: 24px !important;
    }
    
    .reader .menu .scale button {
        width: 25px;
        font-size: 22px;
        height: 28px;
    }

    .reader .menu .scale #inputScale {
        height: 28px;
        font-size: 25px;
    }

   .reader .menu .scale * {
        height: 25px;
    }

    .reader .menu .scale .input-group-addon {
        height: 24px;
    }

    .reader .menu .fas,
    .reader .menu .far {
        font-size: 24px;
        margin: 0 3px;
    }
}

.literature-sidebar .tab > a {
    border-radius: 0;
}

.literature-sidebar .tab.active a {
    background-color: #337ab7;
    color: #fff;
}

body {
    height: 100vh;
    max-height: 100vh;
}

form .form-control {
    border-radius: 0 !important;
}

.system-msg {
    padding: 5px 10px;
}

.has-success .help-block, 
.has-success .control-label, 
.has-success .radio, 
.has-success .checkbox, 
.has-success .radio-inline, 
.has-success .checkbox-inline, 
.has-success.radio label, 
.has-success.checkbox label, 
.has-success.radio-inline label, 
.has-success.checkbox-inline label {
    color: #333;
}

.has-success .form-control {
    border-color: #ccc !important;
    box-shadow: none !important;
}

.modal-content {
    border-radius: 0;
}

.reader .literature-content {
    background-color: #f3f3f3;
    height: calc(100vh - 70px);
    max-height: 100vh;
}

.reader .literature-sidebar {
    height: calc(100vh - 70px);
    max-height: 100vh;
}

.reader .literature-sidebar #literature-preview {
    background-color: #f3f3f3;
    height: calc(100vh - 112px);
    max-height: 100vh;
    overflow: auto;
}

.reader #literature-content {
    height: 100%;
    width: 100%;
    overflow: auto;
}

.reader #literature-content .page,
.reader #literature-preview .preview-page {
    display: block;
    margin: 25px auto;
    background: #fff;
}

.reader #literature-preview .preview-page.active {
    border: 2px solid #337ab7;
    margin: 23px auto;
}

.reader .conainer {
    position: relative;
}

.reader #bookmarks {
    padding-top: 10px;
}

.reader #bookmarks a {
    display: inline-block;
    padding: 0;
    height: 20px;
}

.reader #bookmarks > a:first-child {
    margin-right: 40px;
}

.reader #bookmarks a:hover {
    text-decoration: none;
    cursor: pointer;
}

.reader a[data-toggle="dropdown"]:hover {
    cursor: pointer;
}

.reader ul.bookmarks {
    list-style: none;
    padding: 0;
    padding-top: 10px;
}

.reader ul.bookmarks li {
    padding: 2px 5px;
    color: #337ab7;
    overflow: auto;
}

.reader ul.bookmarks li:hover {
    cursor: pointer;
    background-color: #f7f7f7;
}

.reader ul.bookmarks li .col-left {
    float: left;
    width: 30px;
}

.reader ul.bookmarks li .col-left i.fa-bookmark {
    font-size: 25px;
    padding: 5px;
}

.reader ul.bookmarks li .col-right {
    margin-left: 30px;
    padding-top: 2px;
    padding-left: 5px;
}

.reader ul.bookmarks li p {
    margin: 0;
    padding: 0;
}

.reader ul.bookmarks li p.bookmark-pageNum {
    line-height: 15px;
}

.reader ul.bookmarks li p.bookmark-description {
    margin-top: 2px;
    font-size: 12px;
    color: #999;
}

.reader a[data-target="#print-modal"] {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.reader .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
}

.reader .footer #status-message {
    font-size: 12px;
    color: #fff;
}