
:root {
	--green: #bce003;
	--light-blue: #07a9ff;
	--blue: #005de1;
	--mid-blue: #013076;
	--dark-blue: #001d46;
	--undifferentiated: #a1a1a1;
	--ultramafic: #90f;
	--ophiolite: #f42fc9;
	--mafic: #ff8000;
	--relevant-metamorphic: #17e0c2;
	--sed-basin: #ccc;
	--oceanCrust-without: #f8c153;
	--oceanCrust-with: #ffd98d;
	--eez: #f85353;
	--sed-thickness: #535ef8;
	--bathymetry: #9d00ff;
}

#mapboxMap {
	position: relative;
	width: 100%;
	width: 100%;
	height: 960px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

.mapboxgl-control-container {
	display: none !important;
}

.ogciLogo {
	position: absolute;
	bottom: 32px;
	left: 32px;
	z-index: 9;
	width: 100px;
}

/*  Filter styles */
#mb-filter {
	position: absolute;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
	top: 0;
	right: 70px;
	min-width: 260px;
	height: 100% !important;
	padding-bottom: 0 !important;
	/* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
	
	/* overflow-y: scroll; */
	font-size: 13px;
	z-index: 10;
	transform: translateX(calc(100% + 1px));
	transition: all .5s ease-in-out;
	overflow: hidden;
}

#mb-filter.open {
	transform: translateX(0);
	right: 0;
}

#filter_btns {
	display: flex;
	flex-direction: column;
	border-radius: 16px 0 0 16px;
	background-color: var(--dark-blue);
	width: 70px;
	min-width: 70px;
	max-width: 70px;
	overflow: hidden;
}

.filter_btn {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	width: 70px;
	aspect-ratio: 1/1;
	background: none;
	border: none;
	border-radius: 0px;
	cursor: pointer;
}

.filter_btn.collapsed, .filter_btn.expanded {
	background-color: var(--blue);
}

.filter_btn.active {
	background-color: var(--green);
	border-color: var(--green);
}

#filter_controls {
	display: flex;
	flex-direction: column;
	background-color: var(--mid-blue);
	width: 100%;
	min-width: 450px;
	max-width: 500px;
	height: 100%;
	overflow: hidden;
}

.filter_tabs {
	display: flex;
	flex-direction: row;
	background-color: var(--blue);
}

.data {
	padding: 2rem;
	height: 100%;
	overflow: scroll;
}

div.controls {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .2rem;
	padding: .5rem;
	border: 1px solid rgba(255, 255, 255, .47);
	border-radius: 8px;
}

.dragContainer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	cursor: move;
}

div.controls > input[type='range']::-webkit-slider-thumb, div.controls > input[type='range']::-ms-range-thumb {
	background-color: var(--ophiolite) !important;
	border: 2px solid var(--green);
	box-shadow: 0 0 2px rgba(0, 0, 0, .5);
}

div.controls > input[type='range']::-webkit-slider-thumb {
	margin-top: -4.5px;
}

div.controls > input[type='range']::-webkit-slider-runnable-track {
	height: 5px;
	background: linear-gradient(to right, var(--green) var(--progress), #e6e6e6 var(--progress));
}

div.controls > input[type='range']::-moz-range-track {
	height: 5px;
	background: #e6e6e6;
}

div.controls > input[type='range']::-moz-range-progress {
	height: 5px;
	background: var(--green);
}

div.controls > input[type='range']::-moz-track {
	height: 5px;
	background: transparent;
	border-color: transparent;
	color: transparent;
}

.sortable-ghost {
	opacity: .3;
	background-color: var(--mid-blue);
	border: 1px solid rgba(255, 255, 255, .13);
}

/* Range Slider ToolTips */
.tooltip {
	position: absolute;
	display: none;
	z-index: 150;
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	background-color: var(--dark-blue);
	padding: 5px;
	border-radius: 8px;
	transform: translateX(-50%);
}

.tooltip.active {
	display: block;
}

/* toggle switchs */
.toggleContainer {}

/* Lip Information */
#lipInfo {
	position: absolute;
	display: none;
	top: 32px;
	left: 32px;
	gap: .5rem;
	width: 260px;
	max-width: 400px;
	background-color: var(--dark-blue);
	border-radius: 16px;
	padding: 1rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
	overflow-y: scroll;
	font-size: 13px;
	z-index: 50;
	opacity: 90%;
}

/* Double Thumb Slider Code */
.doubleRangeSlider {
	position: relative;
	width: 100%;
	height: 5px;
	margin: .5rem 0;
	background-color: #828282;
}

.sliderTrack {
	height: 100%;
	position: absolute;
	background-color: var(--green);
}

.doubleRangeSlider input[type='range'] {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	width: 100%;
	height: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	pointer-events: none;
}

input[type='range']::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid var(--green);
	cursor: pointer;
	box-shadow: 0 0 2px rgba(0, 0, 0, .5);
}

input[type='range']::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid var(--green);
	cursor: pointer;
	-moz-appearance: none;
	box-shadow: 0 0 2px rgba(0, 0, 0, .5);
}

.hidden {
	display: none !important;
}

.mobile-close_btn {
	display: none;
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
}

@media (max-width: 600px) {
	#filter_controls {
		width: 100%;
		min-width: 100%;
		max-width: 100%;
	}
	
	#mb-filter.open {}
	
	.mobile-close_btn {
		display: block;
	}
}
