/* ---------------------------------------------------
	GLOBAL STYLE
----------------------------------------------------- */
body {
	margin: 0px;
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	text-align: left;
	background-color: #fff;
}

.noselect {
	-webkit-touch-callout: none;
	/* iOS Safari */
	-webkit-user-select: none;
	/* Safari */
	-khtml-user-select: none;
	/* Konqueror HTML */
	-moz-user-select: none;
	/* Firefox */
	-ms-user-select: none;
	/* Internet Explorer/Edge */
	user-select: none;
	/* Non-prefixed version, currently supported by Chrome and Opera */
}

.nowrap {
	white-space: nowrap;
}

.bg-purple {
	background-color: #7f3f98 !important;
}

.bg-dark-blue {
	background-color: #25408f !important;
}

/* ---------------------------------------------------
	MAP STYLE
----------------------------------------------------- */
#map {
	height: 100%;
	width: 100%;
	margin: 0px;
	overflow: hidden;
}

#map:focus {
	outline: #4A74A8 solid 0.15em;
}

/* ---------------------------------------------------
	OpenLayers ZOOM Control
----------------------------------------------------- */
.ol-zoom {
	display:none;
	z-index: 990;
	top: auto;
	bottom: 8px;
	left: auto;
	right: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	background: #fff;
	padding: 2px;
	opacity: 0.95;
	border-radius: .2rem;
	padding: 0px;
}

body.noTouch .ol-zoom:hover {
	background-color: #fff;
}

.ol-zoom button {
	width: 33px;
	height: 33px;
	font-size: 1.3rem !important;
	color: rgba(0, 0, 0, 0.5);
	background: #fff;
	cursor: pointer;
	transition: all .3s ease;
	border: 2px solid #25408f;
	margin: 0px;
}

.ol-zoom-in {
	border-bottom: none !important;
	border-top-left-radius: .2rem !important;
	border-top-right-radius: .2rem !important;
}

.ol-zoom-out {
	border-top: none !important;
	border-bottom-left-radius: .2rem !important;
	border-bottom-right-radius: .2rem !important;
}

body.noTouch .ol-zoom button:hover {
	color: #fff;
	background: #0066b3 !important;
}

/* ---------------------------------------------------
	OpenLayers STATUS Controls
----------------------------------------------------- */
#ol-layer-loading {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 1001;
	display: none;
	border-radius: 0px;
}

/* ---------------------------------------------------
	OpenLayers TOGGLE ELEMENTS Controls
----------------------------------------------------- */
#toggleElements {
	position: absolute;
	bottom: 19px;
	right: 15px;
	margin-bottom: -8px;
	opacity: 0.7;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-ms-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	cursor: pointer;
}

body.noTouch #toggleElements:hover,
#toggleElements:focus {
	opacity: 0.8;
}

/* ---------------------------------------------------
	OpenLayers LOGO
----------------------------------------------------- */
#logo {
	position: absolute;
	bottom: 15px;
	right: 15px;
	z-index: 997;
}

#logo img {
	height: 50px;
}

/* ---------------------------------------------------
	MENU CONTAINER STYLE
----------------------------------------------------- */
#map-controls-container {
	position: absolute;
	display:none;
	left: 0;
	top: 0;
	width: auto;
	transition: left .6s;
}

#map-controls-background {
	width: 100%;
	height: 100%;
	opacity: 0;
	background-color: whitesmoke;
}

#map-info {
	background-color: #25408f;
}

/* ---------------------------------------------------
	BUTTONS STYLE
----------------------------------------------------- */
.map-button {
	background: transparent !important;
	display:inline-block;
	vertical-align:top;
}

.map-button a {
	padding: 10px;
	display: block;
	color: #25408f !important;
	background: #ffffff !important;
	border:1px solid #dee2e6;
}

.map-button a:hover {
	background: #0066b3 !important;
	border-color:#ffffff;
	color:#ffffff !important;
}

.map-button .active {
	background: #25408f !important;
	color:#ffffff !important;
}

.map-button-right {
	float: right;
	margin-left:8px;
}

.map-float-left {
	position: absolute;
	float: left;
	left: 0px;
}

.map-float-right {
	position: absolute;
	float: right;
	right: 0px;
}

.map-buttons {
	--display:none;
	top: 0px;
	--height: 50px;
	--box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	--transition: all .3s ease;
	padding:4px;
	/*margin:0 0 10px 0;*/
}

.map-buttons .nav-link > .far {
	display: block;
	width: 16px;
	font-size: 16px;
}

/* ---------------------------------------------------
	MENU STYLE
----------------------------------------------------- */
#map-controls {
	position: absolute;
	top: 0;
	left: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all .3s ease;
}

#map-controls #map-info {
	height: 2.25rem;
}

#map-controls .navbar {
	padding-bottom: 2px;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-flow: row nowrap;
	flex-flow: row nowrap;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	border-top-left-radius: .2rem;
	border-top-right-radius: .2rem;
	min-width: 22rem;
	background-color: #25408f;
}

/*
#map-controls .nav-item {
	margin-left: .1rem;
	margin-right: .1rem;
	border-bottom: 2px solid $secondary-color;
}

#map-controls .active {
	border-bottom: 2px solid $primary-color;
}
*/

#map-controls .nav-link {
	text-align: center;
	display: table-cell;
	height: 4rem;
	/*width: 4rem;
	max-width: 4rem;*/
	vertical-align: middle;
	padding-top: 15%;
	padding-bottom: 0;
	font-size: 0.825rem;
}

#map-controls .nav-link > .far {
	display: block;
	width: 1.5rem;
	font-size: 1.5rem;
	margin: 2px auto 4px auto;
	top: 0;
	line-height: 12px;
}

/*
.navbar .mr-auto {
	padding-right: 3rem;
}
*/

/* ---------------------------------------------------
	Right Menu (collapse)
----------------------------------------------------- */
#map-controls .right {
	position: absolute;
	right: -20px;
	top: 20px;
	z-index: 9000;
}

#map-controls .right .nav-link {
	font-size: 1rem !important;
	background-color: #f8f9fa;
	color: rgba(0, 0, 0, 0.5);
	border-radius: 100%;
	height: 2.25rem;
	width: 2.25rem;
	line-height: 2rem !important;
	border: 2px solid #0066b3;
	cursor: pointer;
	transition: all .3s ease;
}

#map-controls .right .icons {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

#map-controls .right .icons i {
	position: absolute;
	display: block;
}

#map-controls .right .icons .icon-open,
#map-controls .right .icons .icon-collapse {
	transition: opacity .6s, transform .6s;
}

#map-controls .right .icons .icon-collapse {
	opacity: 1;
	bottom: -6px;
	left: 3px;
}

#map-controls .right .icons .icon-open {
	opacity: 0;
	bottom: -6;
	left: 1.5;
}

#map-controls .right:hover {
	transform: scale(1.2);
}

#map-controls .right:hover .nav-link {
	background-color: #0066b3;
	color: #fff;
}

/* ---------------------------------------------------
	OpenLayers SCALE LINE Control
----------------------------------------------------- */
.ol-scale-line {
	top: auto;
	left: auto;
	bottom: 0.5rem;
	right: 1.5rem;
	background: rgba(0, 0, 0, 0);
}

.ol-scale-line-inner {
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-top: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.825rem;
}

/* ---------------------------------------------------
	OpenLayers MOUSE POSITION Control
----------------------------------------------------- */
.ol-mouse-position {
	top: auto;
	left: 1.5rem;
	bottom: 0.5rem;
	right: auto;
	padding: 0;
	line-height: 1.75rem;
	font-size: 0.825rem;
	text-align: left;
	color: rgba(255, 255, 255, 0.5);
}

#map-controls-popovers {
	display: none;
	position: absolute;
	overflow: hidden;
	left: 0px;
}

.popover {
	position: relative !important;
	border-radius: .2rem;
	background-color: #fff;
	max-width: 100vw;
	top: auto !important;
	transform: none !important;
	margin: 0px;
	width: 100%;
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	margin-bottom: 8px;
}

.popover .arrow {
	display: none;
}

.popover-header {
	background-color: #25408f;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.5rem;
	border-top-left-radius: .2rem;
	border-top-right-radius: .2rem;
	padding: .75rem .75rem;
	font-weight: 400;
	cursor: pointer;
	box-shadow: 0 0px 1px rgba(0, 0, 0, 0.2);
	transition: all .3s ease;
	margin-top: 0px;
	margin-bottom: 0px;
}

.popover-header a {
	color: white;
	font-size: 1.5rem;
}

.popover-header a:hover {
	text-decoration: underline;
}

.popover-header:after {
	font-family: "Font Awesome 5 Pro";
	content: "\f2d3";
	float: right;
	margin-left:10px;
}

body.noTouch .popover-header:hover {
	color: #fff;
}

.popover-body {
	font-size: 0.825rem;
	color: #343a40;
	padding-bottom: 16px;
	overflow: auto;
}

.popover-body .map-custom-control.disabled label {
	opacity: 0.7;
}

.popover-body h5 {
	margin-top: 0.5rem;
}

.popover-body::-webkit-scrollbar {
	width: 6px;
}

.popover-body::-webkit-scrollbar-thumb {
	background-color: #b9b9b9;
	border-radius: 0.2rem;
}

.popover-body::-webkit-scrollbar-track {
	background-color: #fff;
	border-radius: 0.2rem;
	margin-bottom: 2px;
	margin-top: 2px;
}

/* ---------------------------------------------------
	TOOLTIP STYLE
----------------------------------------------------- */
#map-controls-popovers .tooltip {
	background: rgba(0, 0, 0, 0) !important;
}

#map-controls-popovers .tooltip-inner {
	white-space: normal;
	word-wrap: break-word;
	max-width: 12.5rem;
}

/* ---------------------------------------------------
	POPOVER CONTENT STYLE
----------------------------------------------------- */
.popover .list-group-item i {
	line-height: 1.5;
}

.popover .list-group-item i.fa-eye {
	margin-right: 12px;
}

.tooltip {
	position: relative;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 4px;
	color: white;
	padding: 4px 8px;
	opacity: 0.7;
	white-space: nowrap;
}

.tooltip-measure {
	opacity: 1;
	font-weight: bold;
}

.tooltip-static {
	background-color: #ffcc33;
	color: black;
	border: 1px solid white;
}

.tooltip-measure:before,
.tooltip-static:before {
	border-top: 6px solid rgba(0, 0, 0, 0.5);
	border-right: 6px solid transparent;
	border-left: 6px solid transparent;
	content: "";
	position: absolute;
	bottom: -6px;
	margin-left: -7px;
	left: 50%; 
}

.tooltip-static:before {
	border-top-color: #ffcc33;
}

#ol-site-switcher-content i {
	font-size: 16px;
}
#ol-site-switcher-content .list-group-item {
	padding-right: 25px;
}
#ol-site-switcher-content .list-group-cluster {
	padding-right: 5px;
}
#ol-site-switcher-content .list-group-cluster .list-group-item {
	padding-right: 20px;
}
#ol-site-switcher-content .list-group-cluster > i {
	margin-right: 5px;
}

.list-group-cluster {
	font-weight: 600;
}

button.list-group-collapse {
	--position: relative;
	display: block;
	padding: 0px;
	--margin-bottom: -1px;
	background-color: #fff0;
	border: none;
	--height: 16px;
	width: 16px;
}
button.list-group-collapse:focus {
	outline: none;
}

.popover .list-group-collapse i {
	line-height: 1;
	margin-top: 3px;
}

.list-group-expanded .list-group-item {
	display: block;
}

.list-group-collapsed .list-group-item {
	display: none;
}

/* ---------------------------------------------------
	NOTIFICATION CONTAINER STYLE
----------------------------------------------------- */
#owl-notification-container {
	display: none;
	position: absolute;
	top: 8;
	right: 8;
	z-index: 999999;
}

/* ---------------------------------------------------
	OVERLAY CONTAINER STYLE
----------------------------------------------------- */
#ol-feature-query {
	margin-top: 11px;
	z-index: 997;
	background-color: rgba(255, 255, 255, 0.85);
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.2);
	width: 450px;
	height: auto;
	overflow: auto;
	/* not all of this may be required but good to ensure consistency */
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	text-align: start;
	text-decoration: none;
	text-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	word-break: normal;
	word-spacing: normal;
	white-space: normal;
	line-break: auto;
	font-size: .825rem;
}

/* ---------------------------------------------------
	OVERLAY CONTAINER STYLE
----------------------------------------------------- */
#ol-feature-query:after,
.ol-popup:before {
	top: -10px;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

#ol-feature-query:after {
	border-bottom-color: #25408f;
	border-width: 11px;
	left: 50%;
	margin-left: -11px;
}

#ol-feature-query:before {
	border-bottom-color: rgba(0, 0, 0, 0.2);
	border-width: 11px;
	left: 50%;
	margin-left: -11px;
	display: none;
}

/* ---------------------------------------------------
	OVERLAY TITLE STYLE
----------------------------------------------------- */
#ol-feature-query .popover-header {
	left: 0;
	top: 11px;
	width: 100%;
}

/* ---------------------------------------------------
	OVERLAY CONTENT STYLE
----------------------------------------------------- */
#ol-feature-query .cqContent {
	--padding: .8rem .75rem;
	overflow: none;
}

#ol-feature-query .cqContent .cqDetails {
	margin: 1.6rem 1.5rem;
	max-height: 300px;
	overflow: hidden;
}

#ol-feature-query .cqContent .cqDetails h5 {
	font-weight: 600;
}

#ol-feature-query .cqContent .cqDetails span {
	display: inline-block;
	min-width: 50px;
	vertical-align: top;
}

#ol-feature-query .cqContent .cqDetails span.cqDataset {
	color: #800080;
	text-align: center;
	padding:8px;
}
#ol-feature-query .cqContent .cqDetails span.cqDataset h5 {
	margin:4px;
}
#ol-feature-query .cqContent .cqDetails span.cqDataset:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	background-color: #8000802f;
}

#ol-feature-query .cqAttributes a {
	color: #00a5f8;
}

body.noTouch #ol-feature-query .cqAttributes a:hover,
#ol-feature-query .cqAttributes a:focus {
	color: #00a5f8;
	border-bottom: 1px dashed #00a5f8;
}

#ol-feature-query .cqContent .cqAttributes {
	margin: .8rem .75rem;
	max-height: 300px;
	overflow: auto;
}

#ol-feature-query .cqContent .attr-container {
	overflow: auto;
	border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
	padding: 5px 0px;
}

#ol-feature-query .cqContent .attr-container:last-of-type {
	border-bottom: none;
}

#ol-feature-query .cqContent .attr-heading {
	display: inline-block;
	width: 30%;
	font-weight: 700;
	text-transform: capitalize;
}

#ol-feature-query .cqContent .attr-value {
	display: inline-block;
	width: 70%;
}

/* ---------------------------------------------------
	OVERLAY CONTENT SCROLLBAR STYLE
----------------------------------------------------- */
#ol-feature-query .cqAttributes::-webkit-scrollbar,
#ol-feature-query .cqContent::-webkit-scrollbar {
	width: 6px;
}

#ol-feature-query .cqAttributes::-webkit-scrollbar-thumb,
#ol-feature-query .cqContent::-webkit-scrollbar-thumb {
	background-color: #b9b9b9;
	border-radius: 0.2rem;
}

#ol-feature-query .cqAttributes::-webkit-scrollbar-track,
#ol-feature-query .cqContent::-webkit-scrollbar-track {
	background-color: #fff;
	border-radius: 0.2rem;
	margin-bottom: 2px;
	margin-top: 2px;
}

/* ---------------------------------------------------
	OVERLAY SLICK STYLE
----------------------------------------------------- */
.slick-prev,
.slick-next {
	height: 2.25rem;
	width: 2.25rem;
	top: calc(100% - 3rem);
	transform: none;
	-webkit-transform: none;
	z-index: 1020;
	background: whitesmoke;
	border-radius: 100%;
	border: 2px solid #0066b3;
	cursor: pointer;
	opacity: 0.5;
}

.slick-prev:hover,
.slick-next:hover {
	opacity: 1;
	transform: scale(1.2);
	background: #0066b3;
}

.slick-prev:hover .slick-prev:before,
.slick-prev:hover .slick-next:before,
.slick-next:hover .slick-prev:before,
.slick-next:hover .slick-next:before {
	color: #fff;
}

.slick-prev {
	left: 40%;
}

.slick-prev:before {
	content: "\f053";
	margin-right: 2;
}

.slick-next {
	right: .75rem;
}

.slick-next:before {
	content: "\f054";
	margin-left: 2;
}

.slick-prev:before,
.slick-next:before {
	font-family: "Font Awesome 5 Pro";
	color: rgba(0, 0, 0, 0.5);
	font-size: 1rem;
	line-height: 2rem;
	transition: all .3s ease;
}

/* ---------------------------------------------------
	Bathymetry
----------------------------------------------------- */
#bathyContainer {
	margin-bottom: 1rem;
}

#bathyContainer .fa-grip-lines {
	margin-right: 16px;
}

#bathyUpload p {
	color: #0066b3;
}

/* ---------------------------------------------------
	Overview Maps
----------------------------------------------------- */

#map-overview-button {
	position: absolute;
	bottom: 8px;
	right: 4px;
	z-index: 1;
}

.ol-overviewmap {	/*align bottom right */
	top: unset;
	left: unset;
	right: 0.5em;
	bottom: 0.5em;
}

.ol-overviewmap button {	/*align top right */
	top: 2px;
	left: unset !important;
	right: 2px;
	bottom: unset !important;
}

/* ---------------------------------------------------
	Copyright/Attribution Panels
----------------------------------------------------- */

.ol-attribution,
.ol-attribution.ol-uncollapsible,
.ol-attribution:not(.ol-collapsed) {	/*align bottom left */
	top: unset;
	left: 0;
	right: unset;
	bottom: 0;
	max-width: calc(100% - 52px);
}

/* ---------------------------------------------------
	Custom Controls
----------------------------------------------------- */

.map-custom-control.sublayers-button{
	float: right;
}

.map-custom-control.sublayers-panel,
.map-custom-control.sublayers {
	padding-left: 25px;
}

.map-custom-control.sublayers {
	display: none;
}

/* ---------------------------------------------------
	Modal Forms
----------------------------------------------------- */

.map-modal-overlay {
	position: fixed; /* Positioning and size */
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(128,128,128,0.5); /* color */
	z-index: 9999;
	display: none;
}

.map-modal-panel {
	position: absolute;
	top: 100px;
	left: 100px;
	background: #fff;
	border: 2px solid #25408f;
	border-radius: 10px;
	padding: 10px;
	margin: auto;
	margin-left: auto;
	margin-right: auto;
}

.map-modal-content,
.map-modal-logo {
	display: inline-block;
	padding: 10px;
}

.map-modal-title {
	font-size: 1.5rem;
	font-weight: bold;
}

.map-modal-logo {
	text-align: right;
	vertical-align: top;
}

.map-modal-logo img {
	max-width: 150px;
	margin-left: 20px;
	margin-bottom: 20px;
}

.map-modal-panel label {
	width: 100px;
	text-align: right;
	padding-right: 10px;
	font-weight: bold;
}

.map-modal-panel input {
	width: 150px;
}

.map-modal-buttons input {
	font-weight: bold;
	width: 75px;
	float: right;
	margin: 5px;
}

.map-modal-waiting {
	cursor: progress !important;
}

.map-modal-result {
	color: #800000;
	font-weight: bold;
	float: left;
	margin: 5px;
	vertical-align: middle;
}


/* ---------------------------------------------------
	AVCS Branding
----------------------------------------------------- */

.AVCS-branding {
	display: none;
}

.AVCS-copyright {
	position: absolute;
	left: 25px;
	bottom: 50px;
	z-index: 999;
}

.AVCS-trademark {
	position: absolute;
	right: 25px;
	bottom: 50px;
	padding: 5px;
	background: #fff;
	z-index: 999;
}