/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

main > .container-fluid {
  padding: 50px 15px 0;
  position: absolute;
  padding-bottom: 40px;
}
#map-viz main > .container-fluid {
  padding: 0;
  position: absolute;
}
.h1, h1 {
  font-size:1.5rem;
}
.h2, h2 {
  font-size:1.35rem;
}
.h3, h3 {
  font-size:1.25rem;
}
.h4, h4 {
  font-size:1.15rem;
}
header {
  z-index: 1000;
}
header > nav {
  height: 50px;
}
.navbar > .container-fluid {
  position: absolute;
}
.navbar-brand {
  font-size: 24px;
  padding: 0;
  margin-right: 1.5rem;
}
.navbar-dark .navbar-nav .nav-link.active {
  color:#fff;
}
#navbarCollapse {
  margin-top: 5px;
  margin-left:25px;
}
footer {
  height: 40px;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px #ddd solid;
  z-index:1000;
}

ul.subjects, ul.subjects ul {
  list-style: none;
  padding-left: 15px;
  columns: 1 !important;
  padding-top:0 !important;
}
ul.subjects ul {
  list-style: none;
  padding-left: 0px !important;
}
ul.subjects h2 {
  padding-left: 0px !important;
}
ul.subjects h2, #browse .tab-pane h2 {
  padding-top:15px;
  font-size: 19px;
  font-weight: bold;
  padding-left: 15px;
}
#browse #myTabContent>.active {
  overflow: auto;
  height: calc(100% - 190px);
  position: absolute;
  width: calc(100% - 30px);
}
#browse .nav-tabs .nav-link.active {
  background-color: #f2f2f2;
}
#browse #myTabContent>.active tr:nth-child(even) {background: #f3f3f3; border-top: 1px dashed #ccc; border-bottom: 1px dashed #ccc;}
#browse table td + td {     border-left: 1px dashed #ccc;
  padding: 0 5px; }
#browse table { padding-top:10px; display: block; padding-left:15px;}
#browse #myTabContent ul {
  list-style: none;
  padding-top:15px;
  columns: 2;
}
#browse #myTabContent ul li {
  margin-left: 20px;
  text-indent: -20px;
}

.map {
  height: 100%;
  top: 0;
  position: relative;
}

.map-marker-icon {
  background:#484B70;
  border-color:darkblue;
  border-radius:50%;
  border-style:solid;
  border-width:1px;
  opacity:0.4
 }
 .map-marker-icon.addressee-location {
  background:#9F3432;
  border-color:darkred
 }
 .map-marker-icon.selected {
  border-width:2px;
  opacity:0.7
 }
 .map-line {
  opacity:0.4
 }

@media (max-width:768px) {
   .leaflet-sidebar{width:305px;max-width:305px}
}
 
.leaflet-verticalcenter {
  /********************************************/
  /* Same as .leaflet-top and .leaflet-bottom */
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  /********************************************/
  top: 50%;
  transform: translateY(-50%);
  padding-top: 10px;
}
.leaflet-top .leaflet-control {
  margin-top: 60px !important;
}
.leaflet-sidebar-tabs i {
  font-size:20px;
  margin-left:-2px
}
.leaflet-sidebar-tabs ul li.active i {
  color:white;
}
.leaflet-sidebar-tabs {
  background-color: #eee !important;
}
.leaflet-sidebar-header {
  font-size:1.4rem !important;
}
.leaflet-sidebar-content h2 {
  margin-top: 8px;
  font-size: 1.3rem;
}
.leaflet-sidebar-content h3 {
  font-size: 1.15rem;
}
.leaflet-sidebar {
  z-index: 1010 !important;
}
.leaflet-container,.popup {
  font-size:16px !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

.leaflet-control.leaflet-timeline-control {
  max-width: 1400px !important;
}
#sidebar,.popup,.leaflet-control-container {
  font-size:15px !important;
}
.leaflet-container option {
  font-size:14px !important;
}
.leaflet-bottom {
  bottom: 40px !important;
}
.leaflet-container .results a,
.leaflet-container ul.listBibl li a {
  color: #88291a !important;
}
.leaflet-bar a {
  color: black !important;
}
.leaflet-right {
  left: 460px;
  width: calc(100% - 458px);
}
.legend-dot {
  height: 11px;
  width: 11px;
  border-radius: 50%;
  display: inline-block;  
}


#title_container {
  z-index: 10000;
  position: absolute;
  left: 100px;
}
#timeline {
  height: 120px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index:1000;
  background-color:white;
  opacity: 0;
}
.vis-item.vis-background {
  box-shadow: 0 0 10px gray;
  background-color: red;
  border-color: darkred;
}
.datetimeControl p {
  margin: 0;
  font-size: 16px;
}
.hidden {
  display:none;
}


#ent_results_main,
#results_main,
#objects_main {
    margin-left: 15px;
}
#ent_results_main img:hover,
#results_main img:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

#ent_results_main ol li h3,
#results_main ol li h3,
#objects_main ul li h3 {
    margin-top:5px;
    margin-bottom:0px;
    display: inherit;
}
#ent_results_main ol li,
#results_main ol li,
#objects_main ul li {
    border-bottom: 1px solid rgba(190,190,188,0.4);
    padding: 10px 0 15px 5px;
    clear: both;
    text-indent: unset;
    width:100%;
}
#ent_results_main ol li div div span,
#results_main ol li div div span,
#objects_main ul li div div span {
/*    font-weight: 600;*/
   font-variant: small-caps;
}
#ent_results_main ol li div.item-desc,
#results_main ol li div.item-desc,
#objects_main ul li div.item-desc {
    display:block;
}
.item-desc div {
    text-indent: -1.5rem;
    margin-left: 1.5rem;
}
.item-desc .item-tools,
.item-desc .snippets,
.item-desc .snippets ul li span,
.item-desc .snippet {
    text-indent: unset;
    margin-left: unset;
    font-variant: normal !important;
}
#ent_results_main ol li div.item-tools ul,
#results_main ol li div.item-tools ul,
#objects_main ul li div.item-tools ul {
    padding: 10px 15px 0 0;
}
#ent_results_main ol li div.item-tools li,
#results_main ol li div.item-tools li,
#objects_main ul li div.item-tools li {
    border: 0;
    padding: 3px 10px 3px 0;
    display: inline;
}
#ent_results_main ol li div div,
#results_main ol li div div,
#objects_main ul li div div {
    font-size: .95rem;
}
#ent_results_main h3,
#results_main h3,
#objects_main h3 {
    font-size: 1.2rem;
    line-height: 1.4em;    
}
#ent_filters_main ul li .facet_label,
#filters_main ul li .facet_label {
    width:100%;
    text-align: left;
    margin-left: 3px;
}
#ent_filters_main ul li .facet_count,
#filters_main ul li .facet_count {
    width: 50px;
    text-align: right;
}
#ent_filters_main ul li,
#filters_main ul li {
    text-indent: unset;
    display: flex;
 /*   width: 100%;*/
}
#ent_filters_main div.collapse {
    margin-top: 5px;
    max-height: 80vh;
    overflow: auto;
}
#filters_main div.collapse {
    max-height: 160px;
    overflow: auto;
    margin-top: 5px;
}
#ent_filters_main a[role],
#filters_main a[role] {
    width:100%;
    background-color:#f3f3f3;
}
#ent_filters_main .collapsing,
#filters_main .collapsing {
    max-height: 160px !important;
}
#ent_filters_main .filter,
#filters_main .filter {
    margin-bottom: 10px;
    font-size:15px;
}
.filter > a {
  font-weight: 700;
}
.filter > a:before {
  content: '\2014\0020';
}
.filter > a::after {
  content: '\0020\2014';
}
#ent_filters_main .facet_delete,
#filters_main .facet_delete {
    display: block;
    font-size: 18px;
    writing-mode: vertical-lr;
}
#ent_filters_header,
#filters_header {
    margin-bottom: 15px;
}

#advsearch .input-group span {
    min-width: 210px;
    text-align: left;
    padding-left: 10px;
}
#advsearch .input-group input {
    max-width: 1500px;
}
#advsearch .input-group {
    margin: 10px 0 15px 15px;
    display: flex;
}
#advanced_search .panel-body {
    position:unset;
    padding-bottom:unset;
}
#advanced_search .panel {
    margin-top:63px;
    border: 1px solid #aaa;
    border-radius: 10px;
    padding:10px;
    margin-left:20px;
}
#advsearch button:not(.close) {
    margin-top:10px;
}
.advanced-help {
    padding-top: 10px;
}
.advanced-help li {
    padding: 3px 0;
}
#advsearch .input-group-addon {
    line-height: 1.4;
}
#ent_results_main .item-desc span.snippet,
#results_main .snippets .listBibl li span {
   /* display: inline-block;*/
    background-color: #ffc;
    padding: 0 3px;
}
#ent_results_main .snippets .listBibl li,
#results_main .snippets .listBibl li {
    padding:0;
    border-bottom:unset;
    list-style: none;
}

#texts section .row > div.col-xs-8 {
    border: unset;
}

#home #simsearch {
    margin: 25px auto 15px auto;
    width: 85%;
}
#home #simsearch > .input-group {
/*   width:50%;*/
}
#texts #simsearch,#calendar #simsearch {
    padding-bottom:20px;
    border-bottom: 1px solid #ddd;
}
#results {
    margin-top:15px;
}
#filters {
/*    margin-top:32px;*/
}
.modal-body #filters {
    margin-top: -5px;
}
#myeditions {
    margin-top: 5px;
    font-size:14px;
}
#texts #simsearch > .input-group,#calendar #simsearch > .input-group {
/*    width:85%;*/
}
.sync-pagination {
  height: 40px;
  max-height: 40px;
  border:1px;
  border-style:solid;
  border-color:#ddd;
  text-align: center;
}
.sync-pagination {
  border: 0;
  margin:auto;
}
#ent_results>.sync-pagination,
#results>.sync-pagination {
  margin-bottom: 15px;    
}
#results_header .dropdown-menu > li > a {
    color: unset;
    width: 100%;
    display: inline-block;
    text-decoration: none;
}
.btn {
    border: 1px solid #999;
    color: #212529 !important;
}
.page-link {
    padding: .5rem 0;
    min-width: 40px;
    min-height: 40px;
    color: #88291a;
}
.page-item.active .page-link {
    z-index: 0;
    background-color: #88291a;
    border-color: #ddd;
}
.page-link:hover {
  z-index: 2;
  color: #88291a;
  border-color: #ddd;
}
.bootstrap-select.btn-group .dropdown-menu {
  background-color: yellow;
}
.custom-select {
    width: unset;
}
.modal-header, .modal-footer {
    padding: .4rem 1rem;
    background-color: #f5f5f5;
}
.modal-body {
    height: inherit;
    width: inherit;
    padding: 0;
}
.k-card-subtitle .add_instance,
.k-card-subtitle .show_object {
    font-size:16px;
}

.about_source .bibl a.extRef {
  word-break: break-all;
}
.leaflet-control.leaflet-timeline-control .button-container button.pause::before {
  width:10px !important;
}

ul.reversed {
  display: flex;
  flex-direction: column-reverse;
}
ul.reversed > li {
  flex: 0 0 auto;
}
a.link_ref:not([href^="#"]):not([href^="/"]),a:not(.img).external {
  background: url(/images/extlink.png) right center no-repeat;
  padding-right: .85em;
}
#help img {
  max-width:100%;
}

@media print {
  .modal-dialog {
    max-width: 100%;
    width: 100%;
  }
  .modal-body {
    overflow-y: visible !important;
  }
  .modal {
    visibility: visible;
    /**Remove scrollbar for printing.**/
    overflow: visible !important;
  }
  .modal-dialog {
    visibility: visible !important;
    /**Remove scrollbar for printing.**/
    overflow: visible !important;
  }
}
