html {
    font-family: Georgia,Times New Roman,Times,serif!important;
    font-size: 14px!important;
    color: #344c5c!important;
}

body {
    font-family: Georgia,Times New Roman,Times,serif!important;
    font-size: 14px!important;
    color: #344c5c!important;
    background-image: url(../img/duke_background.jpg)!important;
    background-color: #ebdac2!important;
    background-repeat: repeat;
    background-position: 50% 130px;
}

a {
    color: #C17953 !important;
}

a:hover {
    color: #a59657 !important;
}

figure {
    background: #f1f1f1 none repeat scroll 0 0;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 0.313rem 0.313rem 0;
    text-align: center;
}
figure > figcaption {
    font-size: 18px;
}

#clo-header-div {
    background-image: url(../img/clo-header-background.png);
    background-repeat: repeat;
    background-size: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#clo-header-image {
    width: 100%;
    max-width: 1440px;
    height: 25%;
    margin-left: auto;
    margin-right: auto;
}

#clo-nav-div {
    background-color: #21596f;
}

#clo-nav-links-div {
    width: 90%;
}

#clo-nav-links-div a, #clo-nav-links-div button {
    color: #c17953!important;
    font-size: 16px;
    text-decoration: none;
}

#clo-nav-links-div a:hover, #clo-nav-links-div button:hover {
    color: #a59657!important;
}

.dropdown-item:focus, .dropdown-item:hover, .dropdown-item.active, .dropdown-item:active {
    background-color: unset !important;
}

.clo-boxed-block {
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px;
    gap: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media screen and (min-width: 1601px) {
    #clo-nav-links-div a, #clo-nav-links-div button {
        font-size: 18px !important;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1600px) {
    #clo-nav-links-div a, #clo-nav-links-div button {
        font-size: 16px !important;
    }
}

@media screen and (min-width: 1000px) and (max-width: 1199px) {
    #clo-nav-links-div a, #clo-nav-links-div button {
        font-size: 14px !important;
    }
}

@media screen and (max-width: 999px) {
    #clo-nav-links-div a, #clo-nav-links-div button {
        font-size: 14px !important;
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.clo-search-bar {
    color: #666d77;
    background: url(../img/magnifying-glass.png) no-repeat 98%/8% #f8f1e5;
    border: 1px solid #9db993;
    padding-left: 5px;
    border-radius: 5px;
}

.clo-search-bar::placeholder {
    color: #c17953;
    opacity: 1;
}

footer {
    border-top: 2px dotted #c17953!important;
}

#footer_links, #footer_links a {
    color: #517b89!important;
}

h1, h2, h3, h4, h5, h6 {
    color: #5c8c48!important;
    font-weight: 700!important;
    font-family: Georgia,Times New Roman,Times,serif!important;
    margin-top: 0!important;
    margin-bottom: 10px!important;
}

h4 {
    font-size: 24px!important;
}

h5 {
    font-size: 20px!important;
    line-height: 25px!important;
}

h6 {
    font-size: 16px!important;
    color: #517b89!important;
    line-height: 22px!important;
}

.clo-heading {
    margin-top: 20px!important;
    padding-bottom: 10px;
    border-bottom: 2px dotted #c17953!important;
}

.orange-border-bottom {
    border-bottom: 2px dotted #c17953!important;
}

.orange-border-right {
    border-right: 2px dotted #c17953!important;
}

.clo-quote-container p {
    font-size: 22px;
    font-style: italic;
    color: #6e6e6e;
}

.clo-quote-container.small p {
    font-size: 18px;
}

summary {
    font-size: 16px;
    font-weight: 700;
    color: #c17953!important;
    list-style: none;
}

summary:hover {
    color: #a59657!important;
}

summary::before {
    font-family: "Dashicons";
    content: "\f345";
}

details[open] summary::before {
    font-family: "Dashicons";
    content: "\f347";
}

details details {
    padding-left: 20px;
}

details div.pl-2 {
    text-indent: -40px;
    margin-left: 40px;
    margin-top: 5px;
}

.clo-volume-batch {
    margin-bottom: 30px;
}

.clo-volume-link {
    color: #21596f!important;
    font-weight: 700;
    padding-left: 30px;
}

#clo-volume-navigator-div {
    display: flex;
    flex-direction: column;
    width: 250px;
    min-height: 100px;
    border: 1px solid #21596f;
    border-bottom: 0;
    border-top: 0;
    border-radius: 10px 10px 0 0;
}

#clo-vol-info {
    padding: 5px;
    background: #21596f;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
    color: #5c8c48;
    cursor: pointer;
}

#clo-vol-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: #c17953;
    padding: 5px;
    background: #21596f;
}

#clo-vol-nav a {
    color: #c17953;
}

#clo-vol-nav a, .clo-vol-nav-link {
    cursor: pointer;
}

.clo-vol-front-matter-div {
    padding: 5px;
    font-size: 12px;
    background: #d2e0dc;
    border-bottom: 1px solid #5c8c48;
}

.clo-vol-front-matter-link {
    color: #21596f!important;
}

#clo-volume-navigator-div details, #clo-volume-navigator-div summary {
    font-size: 12px;
    font-weight: normal;
    background: #d2e0dc;
}

#clo-volume-navigator-div details {
    border-bottom: 1px solid #21596f;
    padding-top: 5px;
    padding-bottom: 5px;
}

#clo-volume-navigator-div details details:first-of-type {
    border-top: 1px solid #21596f;
    margin-top: 10px;
}

#clo-volume-navigator-div details details:last-of-type {
    border-bottom: none;
}

#clo-volume-navigator-div summary::before, #clo-letter-sourcenote-div summary::before, #clo-letter-footnotes-div summary::before {
    font-family: "Dashicons";
    font-size: 16px;
    width: 20px;
    margin-right: 5px;
    margin-left: 5px;
    content: "\f139";
    color: #21596f;
    background-color: #9db993;
    float: left;
    text-align: center;
    line-height: 20px;
}

.clo-vol-letter-link-div {
    margin-left: 15px;
}

.clo-vol-letter-link-div:first-of-type {
    margin-top: 5px;
}

.clo-vol-letter-link-div, .clo-vol-letter-link {
    color: #344c5c!important;
}

.clo-vol-nav-link:hover, .clo-vol-nav-link.active {
    color: #a59657!important;
}

.clo-vol-letter-link-date {
    font-weight: bold;
}

.clo-letter-frontispiece-div {
    width: 600px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 25px;
    justify-content: flex-start;
    border: 1px solid #21596f;
    border-radius: 5px;
    background: #f5ebdc;
    max-height: 700px;
    align-items: center;
}

.clo-letter-frontispiece-image {
    max-height: 600px;
    width: auto;
}

.clo-letter-frontispiece-caption {
    margin-top: 20px;
}

#clo-letter-content-div {
    width: 100%;
    /*display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;*/
    height: 700px;
    font-size: 16px;
    overflow: auto;
    padding: 25px;
    border: 1px solid #21596f;
    border-radius: 5px;
    background: #f5ebdc;
}

.clo-letter-nav-div {
    display: block;
    width: 100%;
    height: 30px;
    padding: 5px;
    margin-bottom: 5px;
    margin-top: 5px;
    background: #d2e0dc;
    border: 1px solid #21596f;
    border-radius: 5px;
    font-weight: 700;
}

#clo-letter-sourcenote-div, #clo-letter-footnotes-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    background: #d2e0dc;
    border: 1px solid #21596f;
    border-radius: 5px 5px 0 0;
}

#clo-letter-sourcenote-div summary, #clo-letter-footnotes-div summary {
    font-size: 14px;
    font-weight: normal;
    color: #c17953!important;
}

.clo-note-div {
    width: 100%;
    background: #f5ebdc;
    font-size: 12px;
    border: 1px solid #21596f;
    border-radius: 0 0 5px 5px;
    padding: 10px;
    margin-top: 5px;
}

.clo-letter-nav-div a {
    color: #344c5c!important;
    cursor: pointer;
}
.clo-letter-nav-link.prev { float: left; }
.clo-letter-nav-link.next { float: right; }

span.rend-italic {
    font-style: italic;
}

span.rend-small-caps {
    font-variant: small-caps;
}

#clo-letter-content-div .dateline, #clo-letter-content-div p {
    margin-bottom: 1rem;
}

img.clo-figure {
    max-width: 80%!important;
    display: block;
    margin: 20px auto 20px auto;
}

sup.footnote.origin {
    color: #007bff;
    font-size: 14px;
}

a.footnote.target {
    font-size: 14px;
    color: #c17953!important;
    margin-right: 5px;
}

.footnote {
    cursor: pointer;
}

#clo-letter-image-viewer {
    display: block;
    height: 700px;
    border: 1px solid #21596f;
    border-radius: 10px;
    background: #f5ecdc;
    font-size: 16px;
    color: #21596f;
    overflow: hidden;
    margin-bottom: 10px;
}

.clo-letter-image {
    height: 588px;
}

.clo-bold-orange {
    font-weight: 700;
    color: #c17953;
}

#clo-album-viewer {
    background: #F5ECDC;
    border: 1px solid #21596f;
    border-radius: 10px;
    height: calc(100vh - 300px);
    justify-content: center;
    overflow: auto;
    /*width: 75%;*/
    padding: 20px;
    padding-top: 40px;
    display: flex;
    flex-wrap: wrap;
}

.clo-album-cell {
    padding: 4px;
    cursor: pointer;
}

.clo-album-cell-matte {
    background: #f5ecdc;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid #ddd!important;
    border-radius: 4px!important;
    padding: 5px;
}

.clo-album-cell-inner {
    display: inline-block;
}

.clo-album-tooltiptext {
    visibility: hidden;
    width: 150px;
    background-color: #414141;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    margin-top: -30px;
    font-size: 12px;
}

.clo-album-cell:hover .clo-album-tooltiptext {
    visibility: visible!important;
}

.clo-album-photo {
    width: auto;
    pointer: cursor;
    margin-bottom: 5px;
}

.clo-album-photo-placeholder {
    width: 300px!important;
    height: 400px!important;
}

.clo-album-photo:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

#clo-album-feature-modal-content {
    background: #F5ECDC!important;
    height: calc(100vh - 60px);
}

#clo-album-feature-image {
    width: 100%;
    cursor: pointer;
}

#clo-album-feature-modal-footer {
    max-height: 100px;
    overflow-y: scroll;
}

#clo-album-feature-modal-footer:hover {
    max-height: 200px!important;
}

.clo-album-metadata-label {
    width: 30%;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    padding: 10px;
    vertical-align: top;
}

.clo-album-metadata-value {
    font-size: 16px;
    vertical-align: top;
    padding: 10px;
}


/* ---------------------
     ADVANCED SEARCH
 ----------------------*/
#advanced-search-container {
    max-width: 1232px;
    width: 85vw;
    margin-left: auto;
    margin-right: auto;
}

#adv-search-bar {
    display: flex;
    flex-direction: row;
    gap: 0px;
}

#adv-search-box {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    flex-grow: 1;
    border: solid 2px #c17953;
    border-right: none;
    color: #344c5c;
    height: 50px;
    font-size: 18px;
    font-style: italic;
    padding-left: 20px;
}

#adv-search-button,
#adv-search-clear-filter-button,
#adv-search-dates-apply-button {
    display: inline-block;
    text-decoration: none;
    border: solid 2px #344c5c;
    padding: 10px;
    color: #21596f;
    background-color: #9db993;

    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

#adv-search-button:hover,
#adv-search-clear-filter-button:hover,
#adv-search-dates-apply-button:hover {
    color: #9db993;
    background-color: #21596f;
}

#adv-search-button {
    width: 107px;
}

#adv-search-clear-filter-button {
    margin-top: 20px;
}

#adv-search-dates-apply-button.pulse {
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

#adv-search-type-bar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: solid 1px var(--heading-text-color);
}

#adv-search-filter-and-results {
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 4fr;
    grid-column-gap: 20px;
}

#adv-search-filter .metadata-label,
.adv-date-search-bar,
#adv-search-dates-apply-button {
    margin-top: 10px;
}

#adv-search-content-filter-container {
    display: flex;
    flex-direction: column;
}

#adv-search-filter-and-results details {
    padding-left: 20px;
}
#adv-search-filter-and-results details summary {
    margin-left: -20px;
    margin-bottom: 10px;
}

#adv-search-filter-and-results label {
    font-weight: bold;
}

.date-box {
    max-width: 70px;
    height: 60px;
    padding: 10px;
    color: var(--default-text-color);
    font-family: var(--default-text-font);
    font-style: italic;
    font-size: 14px;
    font-weight: 400;

}

.date-box.month, .date-box.day {
    max-width: 55px;
}

#adv-search-people-filter-container thead {
    display: none;
}

div.dt-container div.row { margin-bottom: 0; }
.dt-search label { display: none; }
div.dt-container div.dt-search input { margin-left: 0; border: none; border-radius: 0; width: 100%; }
.dt-container .col-md-auto.mr-auto { display: flex; flex-grow: 1; }
.dt-search { display: flex; flex-grow: 1; }
div.dt-container div.dt-scroll-body { -ms-overflow-style: -ms-autohiding-scrollbar; }
div.dts div.dt-scroll-body table, div.dts div.dataTables_scrollBody table { background: rgba(255, 255, 255, .5); }
table.dataTable td { padding: 5px; cursor: pointer; }
table.dataTable td:hover { color: #21596f; background-color: #9db993; }
table.dataTable.filtered td { color: #21596f; background-color: #9db993; }
table.dataTable.filtered td::after {
    font-family: "Dashicons";
    content: '\f335';
    background-color: #21596f;
    color: #9db993;
    border-radius: 10px;
    position: relative;
    left: 10px;
}

#adv-search-results-tabs {
    margin-bottom: 8px;
}

#adv-search-photos-results-meta-bar {
    margin-bottom: 8px;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link {
    border: solid 2px #344c5c!important;
    border-radius: 0!important;
    padding: 10px;
    color: #21596f!important;
    background-color: #9db993!important;
    margin-right: 8px;
    font-weight: bold;
}

.nav-tabs .nav-link.active {
    color: #9db993!important;
    background-color: #21596f!important;
}

div.tab-pane {
    display: none;
}

div.tab-pane.active {
    display: block;
}

.scrollable-results-pane {
    max-height: 70vh;
    overflow-y: scroll;
}

.clo-search-result {
    margin-top: 20px;
    padding: 10px;
    background-color: #f5ebdc!important;
}

.clo-search-result-heading {
    font-size: 18px;
    font-weight: 700;
    text-decoration: underline;
}

.clo-search-result-excerpt {
    margin-top: 10px;
    margin-bottom: 10px;
}

mark.clo-letter-highlight {
    background-color: #c17953;
    color: #FFFFFF;
}
