* {
    margin: 0;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    color: #666665;
    background: #ffffff;
    font-family: "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.471;
}

#search::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #b7b7b7;
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #b7b7b7;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: #b7b7b7;
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #00537b;
    -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.header-box {
    margin-top: 15px;
}

.header-menu-wrapper {
    border-bottom: 1px solid gray;
    border-top: 1px solid gray;
    font-size: 16px;
    margin-top: 15px;
}

.content {
    margin-top: 10px;
    padding-bottom: 110px;
}

.sidebar {
    color: #666665;
    margin-bottom: 30px;
}

/*navbar*/
.navbar-light .navbar-nav .nav-item {
    color: #666665;
}

.navbar-light .navbar-nav .dropdown-item {
    color: #666665!important;
}

.navbar-light .navbar-nav .dropdown-item:active {
    background-color: inherit;
}

.navbar-light .navbar-nav .dropdown-item:hover {
    background-color: #5ec2ed;
}

.navbar-light .navbar-nav .nav-item.active {
    color: #313131;
    text-decoration: underline;
}

.navbar-light .navbar-nav .nav-item:hover {
    font-weight: 500;
    color: white;
}
.nav-item:hover{
    border-radius: 3px;
    background-color: #5ec2ed;
}

@media (max-width: 992px) {
    .navbar-nav {
        margin-top: 15px;
    }

    .navbar-nav .nav-item {
        padding-left: 6px!important;
    }
}

h2.title {
    margin-top: 15px;
}

.bg-light {
    background-color: #ffffff!important;
}

.login-box {
    width: 300px;
    margin: 0 auto;
    margin-top: 60px;
    min-height: 400px;
}

.login-box .message {
    margin-bottom: 15px;
    display: none;
    color: red;
}

.login-box .message.green {
    margin-bottom: 15px;
    display: none;
    color: green!important;
}

.register-link {
    margin-top: -13px;
    text-align: right;
}

.forgot-password-link {
    text-align: right;
}

input[name="email"] {
    border-radius: 4px;
}

input[name="password"], input[name="password_confirm"] {
    border-radius: 4px;
}

button {
    padding: 4px 12px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    background: #0088cc;
    color: #ffffff;
    transition: all .2s;
    border-width: 0;
    border-style: solid;
    border-color: #04c #04c #002a80;
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    -ms-transition: all .2s;
    -o-transition: all .2s;
    -webkit-border-radius: 4px;
    outline: none;
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));
    background-image: -webkit-linear-gradient(top,#08c,#04c);
    background-image: -o-linear-gradient(top,#08c,#04c);
    background-image: linear-gradient(to bottom,#08c,#04c);
    background-repeat: repeat-x;
}

button.close {
    background-image: none!important;
}


button:hover {
    background-color: #04c;
    text-decoration: none;
    background-position: 0 -15px;
    -webkit-transition: background-position .1s linear;
    -moz-transition: background-position .1s linear;
    -o-transition: background-position .1s linear;
    transition: background-position .1s linear;
}

button:focus {
    outline: none!important;
}

button:active:not(.close) {
    /*background-color: #957474!important;
    box-shadow: 0 0 0 0.2rem rgba(169, 127, 103, 0.5);*/
    background-image: none;
    color: #fff;
    background-color: #04c!important;
    outline: 0;
    -webkit-box-shadow: inset 0 2px 4px rgb(0, 0, 0), 0 1px 2px rgb(0, 0, 0);
    -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);
    box-shadow: inset 0 2px 4px rgb(0, 0, 0), 0 1px 2px rgb(0, 0, 0);
}

.login-box .btn-primary:not(:disabled):not(.disabled):active:focus {
    background-color: #957474!important;
    box-shadow: 0 0 0 0.2rem rgba(169, 127, 103, 0.5);
}

.login-box label {
    color: #666665;
}

.form-control {
    border: 1px solid #d8d0d0;
}

.form-control:focus {
    border-color: #a29389;
    box-shadow: none;
}

.search-result img, .annotations-table img {
    border: 1px solid #e6e6e6;
}

.search-result .table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

#search {
    border-radius: 4px;
}

input#search:-webkit-autofill,
input#search:-webkit-autofill:first-line {
    font-size: 1rem;
    font-weight: 400;
    line-height: inherit;
    /* font-family: font name; */
}

.pagination .page-link {
    border-radius: 10px;
    margin-right: 4px;
}

.pagination .page-link:active {
    background: #D4D7DA;
    box-shadow: none !important;
}

.pagination .active .page-link {
    color: white;
    background: #22abe7;
}

/* Change jsTree icons */
.jstree-closed > .jstree-icon.jstree-ocl{
    background: url("/static/img/jstree-icons/ocl-closed.png") no-repeat !important;
}
.jstree-open > .jstree-icon.jstree-ocl{
    background: url("/static/img/jstree-icons/ocl-open.png") no-repeat !important;
}
.jstree-icon.jstree-checkbox {
    background: url("/static/img/jstree-icons/checkbox.png") no-repeat !important;
}
.jstree-icon.jstree-checkbox:hover {
    background: url("/static/img/jstree-icons/checkbox-hover.png") no-repeat !important;
    transition: 0.2s;
}
.jstree-clicked .jstree-icon.jstree-checkbox {
    background: url("/static/img/jstree-icons/checked.png") no-repeat !important;
}
.jstree-clicked .jstree-icon.jstree-checkbox:hover {
    background: url("/static/img/jstree-icons/checked-hover.png") no-repeat !important;
    transition: 0.2s;
}
.jstree-icon.jstree-checkbox.jstree-undetermined {
    background: url("/static/img/jstree-icons/undetermined.png") no-repeat !important;
}
.jstree-icon.jstree-checkbox.jstree-undetermined:hover {
    background: url("/static/img/jstree-icons/undetermined-hover.png") no-repeat !important;
    transition: 0.2s;
}

#info-btn {
    width: 26px;
    height: 26px;
    padding: 6px 0px;
    /* margin-right: 3px; */
    border-radius: 13px;
    border-width: 2px;
    border-color: #5ac1ec;
    background: white;
    text-align: center;
    float: right;
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
    line-height: 0px;
    color: #5ac1ec;
}

#info-btn:hover {
    background-color: #1fabe6;
    border-color: #b5e3f7;
    color: white;
}

button.close:hover {
    background: none;
}

#reading-page .category-list .category-item a:hover {
    background: #98d8f3;
    transition: 0.2s;
    color: #007cb7;
}

#reading-page .category-list .category-item a {
    display: block;
    color: #00537b;
    padding: 10px;
    margin: 5px 5px 5px 0;
    border: solid 1px #007cb7;
    border-radius: 10px;
    text-decoration: none;
}

#reading-page .breadcrumbs {
    margin-bottom: 25px;
}

#reading-page .breadcrumbs a {
    padding: 5px;
    color: #17a8e5;
}
.column-title {
    color: #17a8e5;
}
.newspaper-info {
    color: #17a8e5;
}
.newspaper-link a {
    padding: 10px 0;
    color: #737373;
}

/*jstree custom*/
.jstree-default .jstree-wholerow-clicked {
    background: none!important;
}

.jstree-default .jstree-wholerow-hovered {
    background: none!important;
}

/*.jstree-icon.jstree-themeicon.fa.fa-folder-open.jstree-themeicon-custom {
    width: 28px;
    height: 27px;
}*/
.jstree-default .jstree-icon:empty {
    width: 28px!important;
    height: 27px!important;
}

.jstree-icon.jstree-themeicon.fa.fa-folder-open.jstree-themeicon-custom:before {
    font-size: 20px;
    color: #22abe7;
}

/*pagination*/
.pagination .disabled {
    color: black;
}

.pagination .active {
    color: #cec8c0;
}

.pagination .active a {
    background: #9e8465;
}

.pagination .page-link {
    color: #946d50;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(160, 135, 77, 0.25);
}

/*footer*/
.footer-wrapper {
    position: relative;
}

.footer {
    border-top: 1px solid #d3d3d3;
    padding-top: 5px;
    height: 80px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer .left-box {
    color: #666665;
}
.footer .left-box .label {
    font-size: 14px;
}
.footer .left-box .email a {
    font-size: 12px;
    color: #7f7f7f;
}
.footer img {
    float: right;
    width: 260px;
    margin-top: 9px;
}

.footer .copyright {
    margin-top: 5px;
    text-align: center;
    font-size: 13px;
}

/*reading-page*/


/*home-page*/
#home-page .home-content {
    color: #967272;
}

#home-page .home-content p {
    font-size: 16px;
    line-height: 26px;
}

#home-page .home-content h2 {
    color: #906e59;
    margin-bottom: 25px;
}

blockquote {
    background: #f5f5f5;
    color: #af9072;
    border-left: 4px solid #a07a41;
    padding: 15px;
    margin-top: 2em;
    margin-bottom: 2em;
}

blockquote p {
    margin-bottom: 0;
    font-style: italic;
}

.sep-line {
    border-bottom: 1px solid gray;
    margin-top: 15px;
}

/*spinner*/
/* FullScreen Loader/Spiner */
.fullscreenloader {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.7);
    z-index: 1050;
}

.fullscreenloader > .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
    color: #000;
    font-size: 40px;
}

.hidden {
    display: none;
}

/*******************************/
/* viewer page */
/*******************************/
.viewer-box {
    padding-bottom: 110px;
    margin-top: 50px;
}

.viewer-box .controls-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.viewer-box .controls {
    display: inline;
}

.viewer-box .controls .previous-page, .viewer-box .controls .next-page {
    display: inline-block;
}

.viewer-box .controls .jump-to-input, .viewer-box .controls .jump-to-btn, .pages-view-format {
    display: inline-block;
}

.viewer-box .controls .jump-to-input input {
    width: 80px;
    height: 40px;
    font-size: 14px;
}

.viewer-box .controls button {
    height: 40px;
    width: 40px;
    background: border-box;
    box-shadow: inset 0 0 2px 1px #e0e0e0;
    border: 1px solid #b7b7b7;
    border-radius: 0;
    font-size: 14px;
    line-height: 1;
}

.viewer-box .controls .fa {
    font-size: 10px;
    color: brown;
}

.viewer-box .highlight {
    opacity: 0.6;
    border-radius: 4px;
    background-color: yellow;
}

.viewer-box .description-wrapper {
    /* background: #f5f5f5; */
    border: 1px solid #d0d0d0;
    padding: 15px 15px 6px 15px;
    margin-top: 25px;
}

.viewer-box .description-wrapper .description-item {
    color: #985f38;
}

.viewer-box #right-page-viewer {
    border: 1px solid #dbdbdb;
    box-shadow: 3px 4px 4px 2px #f0f0f0;
}

.viewer-box #left-page-viewer {
    border: 1px solid #dbdbdb;
    box-shadow: -3px 4px 4px 2px #f0f0f0;
}

.viewer-box #single-page-viewer {
    border: 1px solid #dbdbdb;
    box-shadow: 3px 4px 4px 2px #f0f0f0;
}

#prev-btn, #next-btn, #jump-btn, #pages-view-format-btn {
    /* background: blue; */
    border-radius: 15px;
    border: none;
}

#prev-btn:hover, #next-btn:hover, #jump-btn:hover {
    background-color: #F7F5F5;
}
#prev-btn:active, #next-btn:active, #jump-btn:active {
    background-color: #E2D9D9 !important;
}

#prev-btn i, #next-btn i, #jump-btn i, #pages-view-format-btn i {
    font-size: 12px;
    color: #af9072;
}

#pages-view-format-btn.active {
    background: #fff1e2;
    border: 1px solid #976c2a;
}

.jump-to-input input {
    border-radius: 10px;
    border: none;
    box-shadow: inset 0 0 2px 1px #e0e0e0;
}

.jump-to-input input:focus {
    border-radius: 10px;
    border: none;
    box-shadow: inset 0 0 2px 2px #D4CDC9;
}

#left-page-number, #right-page-number {
    font-size: 14px;
    text-align: center;
}

/*******************************/
/* Profile page */
/*******************************/
#profile-page .profile-details {
    color: #985f38;
    font-size: 14px;
}

#profile-page .profile-details .value.active {
    color: white;
    background: #00800070;
    border-radius: 2px;
    padding: 4px;
}

#profile-page .profile-details .value.expired {
    color: white;
    background: #f304049c;
    border-radius: 2px;
    padding: 4px;
}

#profile-page .profile-details .value.trial {
    color: white;
    background: #f39c04ba;
    border-radius: 2px;
    padding: 4px;
}

#profile-page .profile-details .note {
    color: #fb3232;
}

#profile-page .profile-details .note a {
    color: #caa88c;
}

#profile-page .section-title {
    margin-bottom: 20px;
    font-size: 20px;
    color: #deaa93;
    text-decoration: underline;
}

#profile-page #change-password-form .message {
    margin-bottom: 15px;
    display: none;
}

#profile-page #change-password-form .message.success {
    color: green;
}

#profile-page #change-password-form .message.error {
    color: red;
}

#loading-spinner-left, #loading-spinner-right {
    position: absolute;
    width: 100%;
    top: 50%;
    text-align: center;
}

/*ANNOTATIONS*/
.annotations-table {
    width: 100%;
    border-collapse: collapse;
}

/*SEARCH RESULT PAGE-MODAL*/
#searchResultModal {
    padding-bottom: 15px;
}

@media (min-width: 576px) {
    #searchResultModal .modal-dialog {
        max-width: 100%;
        margin: .5rem;
    }
}

.hit-controls-box {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    top: 12px;
}

.previous-hit, .next-hit {
    display: inline-block;
}

.hit-controls-box #prev-hit-btn, .hit-controls-box #next-hit-btn {
    height: 27px;
    line-height: 17px;
    width: 95px;
}

.hit-controls-box #prev-hit-btn:hover, .hit-controls-box #next-hit-btn:hover {
    background: #0064cf;
}

.hit-controls-box #prev-hit-btn:disabled, .hit-controls-box #next-hit-btn:disabled {
    background-color: #8bc0ff;
}

.hit-controls-box #prev-hit-btn.disable-btn, .hit-controls-box #next-hit-btn.disable-btn {
    background: #e2e2e2;
    pointer-events: none;
}
