html, body{
	height: 100%;
	padding: 0;
	margin: 0;
	font-family: 'Source Sans Pro', sans-serif;
}

#header{
	height: 50px;
	padding: 0;
	margin: 0;	
	overflow: hidden;
	background-color: #224a68;
	background: linear-gradient(145deg, rgba(22,48,68,1) 0%, rgba(34,74,104,1) 35%, rgba(53,116,163,1) 100%);
	color: #FFF;
	padding-left: 5px;
}

#logoLeft{
	display: inline-block;
	
}

#logoLeft img {
  width: 40px;
  vertical-align: bottom;
  border-radius: 8px;
  margin-top: 5px;
}

#logoRight {
  display: inline-block;
  text-align: left;
  margin-left: 10px;
}

.site-title{
	font-size: 1.5rem;
	margin: 0;
	padding: 0;
}

.site-description{
	margin: -0.2em 0 0.6em;
}

#header a, #header a:hover, #header a:active, #header a:visited{
	color: #FFF;
	text-decoration: none;
}

.leaflet-modal .modal{
	overflow: hidden;
	max-height: 90%;
}

.modal-content{
	max-height: 90%;
	overflow:auto;
}

.modal-inner{
	padding-bottom: 40px;
}

.modal-inner h1{
	background-color: #224a68;
	color: #FFF;
	font-weight: normal;
	padding: 10px;
	margin-top: 20px;
	border-radius: 4px;
}


.modal-content{
	cursor: default;
}

.modalForTable{
	max-width: 900px !important;
	overflow: auto !important;
}

.center{
	text-align: center;
}

.right{
	text-align:right;
}

.floatRight{
	float:right;
}

#paneOpts{
	margin-top:0;
}

#closeStorypane{
	margin-left: 5px;
}

#paneTitle{
	padding:2px 5px 5px 0;
	float:left;
	font-size: 1rem;
	font-weight: bold;
}

.absoluteRight{
	margin:0;
	position: absolute;
	right: 10px;
}



#loading{
	height: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
	min-height: 300px;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(13, 13, 13, 0.9);
	z-index: 1000;
	text-align:center;
}

#loading h1{
	background-color: #FFF;
	display: inline-block;
	padding: 10px;
	margin: 0 auto;
	top: 40%;
	position: absolute;
	left: 45%;
	border-radius: 4px;	
}

#loadingText{
	font-weight: normal;
	font-size: 1rem;
}

#map{
	height: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
	min-height:300px;
}

#mapFilters {
  background-color: rgba(255, 255, 255, 0);
  border-radius: 4px;
  color: #000;
  pointer-events: all;
  padding: 1px 5px;
  text-align: left;
  padding: 0px;
  font-family: 'Montserrat', sans-serif;
}

#mapFilters h3{
	margin:0;
	padding: 0;
}

.mapAccordionHeader{
	display: block;
	text-decoration: none;
	color: #FFF !important;
	padding: 4px;
	background-color: #224a68;
	font-weight: normal;
	border-bottom: 1px solid #B3B3B3;
	font-size: 1rem;
}

.mapAccordionHeaderActive{
	background-color: #92c2e8;
	border-bottom: 1px solid #92c2e8;
}

.mapAccordionHeader:hover, .mapAccordionHeader:active{
	background-color: #0d3651;
}

.mapAccordionBody{
	margin: 0;
	padding: 5px;
	border: 2px solid #92c2e8;
	border-top: 0;
	background-color: #FFF;
}

label{
	cursor:pointer;
}

#checkboxList{
	margin-top: 30px;
	clear:both;
}

#fullscreenAutocompletePadder{
	height: 150px;
	display:none;
}

#optionIcons{
	background-color: #92c2e8;
	margin: 0;
	padding: 5px 0;
	color: #FFF;
	border-bottom-right-radius: 4px;
	border-bottom-left-radius: 4px;
	text-align: center;
}

#optionIcons a{
	color: #FFF;
	text-decoration: none;
	margin-right: 1px;
	background-color: #224a68;
	padding: 0px 5px;
	display: inline-block;
}

#openCite{
	border-radius: 4px;
}

#downloadCSV{
	border-bottom-right-radius: 4px;
	border-top-right-radius: 4px;
}

#optionIcons a:hover, #optionIcons a:active{
	background-color: #8c1818;
}

.regionSearchBtn{
	margin-left: 5px;
	display: inline-block;
	text-decoration: none;
	padding: 1px 3px;
	background-color: #243742 ;
	border-radius: 4px;
	color: #FFF !important;
	border: 0;
}

.mfButton{
	display: inline-block;
	text-decoration: none;
	padding: 5px;
	background-color: #243742 ;
	border-radius: 4px;
	color: #FFF !important;
	border: 0;
	margin-bottom: 5px;
}

.mfButtonSmall{
	font-size: 0.6rem;
	padding: 2px;
}

.mfButtonWide{
	width: 90%;
	text-align: center;
}

.mfButtonHalfWide{
	width: 40%;
	text-align: center;
}

.jumpToElementLetter{
	padding: 2px 5px;
	margin-right: 2px;
}

#elementLetterLinks span{
display: inline-block;
  text-decoration: none;
  padding: 2px 5px;
  background-color: #c6c6c6;
  border-radius: 4px;
  color: #FFF !important;
  border: 0;
  margin-bottom: 5px;
  margin-right: 2px;
}

.glossToTop{
	float:right;
	padding: 2px 5px;
}

.openRecord{
	background-color: #98b8c8;
	color: #000 !important;
}

.mfButton:hover, .mfButton:active, .regionSearchBtn:hover, .regionSearchBtn:active{
	background-color: #92c2e8;
	color: #FFF !important;
}

.hidden{
	display: none;
}

#filterOptions-body label{
	margin-bottom: 2px;
}

#slidar{
	vertical-align:middle;
}

#showHideLegend {
  display: block;
  text-align: center;
  padding: 0px 5px;
  background-color: #224a68;
  color: #FFF !important;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  text-decoration: none;
}

#showHideLegend:hover, #showHideLegend:active{
	background-color: #92c2e8;
}

#legendInfo{
	display: inline-block;
	font-weight: bold;
	margin-bottom: 5px;
}

#mapFilters select{
	display: block;
	width: 100%;
	padding: .375rem 2.25rem .375rem .75rem;
	-moz-padding-start: calc(0.75rem - 3px);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	border: 1px solid #ced4da;
	border-radius: .25rem;
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
}

#mapFilters option{
	font-family: 'Montserrat', sans-serif;
}

input[type="text"], select{
	padding: 4px;
	font-size: 0.9rem;
	background-color: #fff;
	border: 1px solid #ced4da;
	border-radius: 4px;  
	margin-right: 5px;
	width: 90%;
}

#advSearchForm input[type="text"]{
	width: 90%;
	margin-bottom: 5px;
}

#advSearchForm select{
	width: 93%;
	margin-bottom: 5px;
}

.multiSelect{
	max-height: 300px;
	padding: 5px;
	overflow: auto;
	border: 1px solid #CCC;
	width: 90%;
}

.multiSelect label{
	margin-bottom: 5px;
}

.advLabel{
	font-weight: bold;
	cursor:pointer;
	display: block;
}

.ui-tooltip{
	z-index: 10003 !important;
	background-color: #000;
	color: #FFF;
	font-size: 0.8rem;
	font-family: 'Montserrat', sans-serif;
}


.ui-autocomplete {
    z-index:10004!important;
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
}

.specCharToggle{
	margin-right: 5px;
}

.browseList{
	list-style: none;
	margin: 0;
	padding: 0;	
}

.browseList li{
	display: inline-block;
}

.browseItem{
	display: block; padding: 5px;
	margin: 0 5px 5px 0;
	border: 1px solid #CCC;
	text-decoration: none;
	border-radius: 4px;
	background-color: #F7F7F7;
}

.browseItem:hover, .browseItem:active, .browseItemCurrent{
	background-color: #92c2e8 !important;
	color: #FFF !important;
}

.browseCount{
	padding: 1px 3px;
	background-color: #464646;
	border-radius: 5px;
	font-size: 0.6rem;
	color: #FFF !important;
	display: inline-block;
	margin-left: 2px;
}

.browsePageItem{
	margin-bottom: 10px;
	border-bottom: 1px dashed #CCC;	
}

.browsePageItem h3{
		margin-bottom: 0;
}

.browsePageItem p{
	margin-top: 0;
}

.leaflet-container{
	font-family: 'Montserrat', sans-serif;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip{
	background-color: #FFF;
	color: #000;
}

.leaflet-popup-content h3{
	background-color: #224a68;
	color: #FFF;
	font-weight: normal;
	padding: 10px;
	margin-top: 20px;
	border-radius: 4px;
}

.advRow{
	--bs-gutter-x: 1.5rem;
	--bs-gutter-y: 0;
	display: flex;
	flex-wrap: wrap;
	margin-top: calc(-1 * var(--bs-gutter-y));
	margin-right: calc(-0.5 * var(--bs-gutter-x));
	margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.advRow > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
  margin-bottom: 10px;
}

#recordTabs{
	border-bottom: 1px solid #CCC;
	padding-bottom: 2px;
}

#recordTabs ul{
	list-style:none;
	margin: 0 0 0 10px;
	padding: 0;
}

#recordTabs li{
	display: inline-block;
	margin-top: 10px;
}

#recordTabs li a{
	text-decoration: none;
	border: 1px solid #CCC;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	border-bottom: 0;
	background-color: #ccc;
	margin-right: 5px;
	padding: 5px;
	background-color: #243742;
	color: #FFF;
}

#recordTabs li a:hover, #recordTabs li a:active{
	background-color: #8c1818;
}

.recordActive{
	background-color: #FFF !important;
	color: #000 !important;
}

.advancedElementsBox{
	border: 1px solid #CCC;
	padding: 10px;
	border-radius: 4px;	
}

.hfList{
	list-style:none;
	margin: 10px;
	padding: 0;
	border: 1px solid #CCC;
}

.hfList li{
	padding: 10px;
}

.odd{
	background-color: #edf6f7;
}

.floatRight{
	float:right;
}

#hfSourceLabel{
	margin-right: 10px;
	font-weight: bold;
	cursor:pointer;
}

.clear{
	clear:both;
}

#elementLang{
	width: 100%;
}

.elementItemInner{
	background-color: #F3FAFB;
	border-radius: 4px;
	border: 1px solid #ECECEC;
	text-align: center;
}

.imgWrapper{
	margin-top: 10px;
	background-color: #224a68;
	color: #FFF;
	text-align: center;
	padding: 5px;
	border-radius: 4px;
}

.imgWrapper img{
	width: 100%;
	border-radius: 4px;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
}

table {
  border-collapse: collapse;
}

.table-bordered {
  border: 1px solid #dee2e6;
}

.table-bordered thead td, .table-bordered thead th {
  border-bottom-width: 2px;
}

.table thead th {
  text-align:center;
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  cursor: pointer;
  background-color: #224a68;
  color: #FFF;
}

.table td, .table th {
  padding: .75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
  text-align:center;
}

.table-sm td, .table-sm th {
  padding: .3rem;
}

th {
  text-align: inherit;
}

.table-striped tbody tr:nth-of-type(2n+1) {
  background-color: rgba(0,0,0,.05);
}

#homeLogos img{
	height: 30px;
	margin: 5px;
}

#attributionLogos, #homeLogos{
	border-top: 1px solid #224a68;
	padding-top: 10px;
	margin-top: 20px;	
}

#attributionLogos img{
	height: 38px;
	margin: 5px;
}


.alignCenter{
	text-align:center;
}

.tip{
	cursor:pointer;
}

.regionArea, .dialectArea{
	stroke: #a0a0a0;
	stroke-width: 1;
}

.borderLine{
	stroke: #4F4F4F;
	stroke-width: 3;
	stroke-dasharray: 5,8;
}

.regionHighlight{
	fill: #F00;
	fill-opacity: 0.2;
	stroke: #F00;	
}

.listSelectHighlight{
	fill: #ffef00;
	fill-opacity: 0.5;
	stroke: #282828;		
}

.dialectArea{
	display:none;
}

.dialectHighlight{
	fill: #0000FF;
	fill-opacity: 0.2;
	stroke: #0000FF;
	stroke-width: 1;	
}

.leaflet-attribution-flag{
	display: none !important;
}

@media(min-width: 768px){
	.advCol{
		flex: 0 0 auto;
		width: 45%;		
	}
	
	.elementItem{
		flex: 0 0 auto;
		width: 29%;		
	}
}

@media(max-width: 400px){
	.paneOptsText{
		display:none;
	}
}