/*-------------------------------
# BODY
-------------------------------*/
.bg-wrapper {
	background: url(../images/background-blured.jpg) no-repeat center center;
    position: fixed;
    display: block;
    top: 0;
	bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    transform: translateZ(0);
    will-change: transform;
    z-index: -1;
}
.bg-overlay:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212529;
    opacity: .5;
}
tspan{
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
}

h2{
	font-family: 'Great Vibes', cursive;
	font-size: 36px !important;
    color: #fff !important;
}
.hide{
	display: none;
	-webkit-transition: all .2s ease;
    -o-transition: all .2s ease;
    transition: all .2s ease;
}
#opcina-konjic{
	overflow: hidden;
}
.map-container{
	position: relative;
	box-shadow: 0px 0px 6px rgba(0,0,0,.3);
}
.map{
	height: 90vh;
	background-color: #cddee0;
}
.map svg{
    display: block;
    text-align: center;
    width: 100%;
	height: 100%;
    margin: auto;
}
/*-------------------------------
# YouTube MODAL
-------------------------------*/
.modal-dialog-centered {
    max-width: 800px !important;
}
.modal-body {
	position: relative !important;
	padding: 0px !important;
}
.close {
	position: absolute;
	right: -25px !important;
	top: -9px !important;
	z-index: 999 !important;
	font-size: 2rem !important;
	font-weight: normal !important;
	color: #fff !important;
	opacity:1 !important;
}
.ytp-cued-thumbnail-overlay{
	position: relative;
    width: 100%;
	min-height: 200px;
	height: 100%;
	margin-bottom: 16px;
	cursor: pointer;
    box-shadow: 0px 0px 3px 1px #ddd;
}
.ytp-cued-thumbnail-overlay:hover{
	cursor:pointer;
}
.ytp-cued-thumbnail-overlay-image {
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
}
.ytp-large-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    margin-left: -34px;
    margin-top: -24px;
    -moz-transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);
    -webkit-transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);
    transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);
    z-index: 63;
}
.ytp-button:not([aria-disabled=true]):not([disabled]):not([aria-hidden=true]) {
    cursor: pointer;
}
.ytp-button:focus, .ytp-button {
    outline: 0;
}
.ytp-button {
    border: none;
    background-color: transparent;
    padding: 0;
    color: inherit;
    text-align: inherit;
    font-size: 100%;
    font-family: inherit;
    cursor: default;
    line-height: inherit;
}
/*-------------------------------
# ZOOM BUTTONS
-------------------------------*/
.mapael .zoomButton {
	background-color: #fff;
	border: 1px solid #ccc;
	color: #000;
	width: 30px;
	height: 30px;
	font-size: 25px;
	line-height: 0.9;
	text-align: center;
	border-radius: 3px;
	cursor: pointer;
	position: absolute;
	top: 0;
	font-weight: bold;
	left: 10px;
	z-index: 999;
	-webkit-user-select: none;
	-khtml-user-select : none;
	-moz-user-select: none;
	-o-user-select : none;
	user-select: none;
}
.mapael .zoomReset {
	top: 110px;
}
.mapael .zoomIn {
	top: 145px;
}
.mapael .zoomOut {
	top: 180px;
}
.button-container{
	position: absolute;
    z-index: 0;
    top: 8px;
    display: block;
    outline: none;
    border: 0px;
	transition:all 1s linear;
}
button.arrow{
	width: 23px;
    height: 48px;
    cursor: pointer;
	background-color: #fff;
	border: 0px;
}
button.arrow:before{
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	font-family: "Font Awesome 5 Free";
	font-weight: 600;
	content: "\f0da";
}
.move{
	-webkit-transform: translateX(0px);
    transform: translateX(0px);
	right: 0px;
	display: block !important;
	visibility: visible;
	transition: right 0.5s ease;
}
.tzks-logo{
	position: absolute;
    width: auto;
    height: auto;
    z-index: 0;
    left: 0;
    bottom: 10px;
}
.dozivi-konjic-logo{
	position: absolute;
	top: 10px;
}
.dozivi-konjic-logo img{
	margin-left: 10px;
    margin-top: 7px;
}
.mapael .mapTooltip {
	position: absolute;
	background-color: #474c4b;
	moz-opacity: 0.70;
	opacity: 0.70;
	filter: alpha(opacity=70);
	border-radius: 3px;
	padding: 5px 10px;
	z-index: 1000;
	max-width: 200px;
	display: none;
	color: #fff;
}
.pane::-webkit-scrollbar {
    width: 7px;
    background-color: #f5f5f500;
}
.pane::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #cddee0;
}
.pane::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    border-radius: 10px;
    background-color: #f5f5f500;
}
.pane{
	width: 300px;
    position: absolute;
    top: 0;
    z-index: 9999;
    opacity: 0;
    height: 0;
    right: 0;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
    transition-property: -webkit-transform,transform,opacity;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.0,0.0,0.2,1);
}
.pane-visible{
	opacity: 1;
    height: 100%;
    background-color: #fff;
}
.pane-collapsed-mode .pane {
    box-shadow: none;
    -webkit-transform: translateX(500px);
    transform: translateX(500px);
	overflow: hidden;
	overflow: auto;
}
.pane-content{
	position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
	background-color: #fff;
	padding: 10px;
}
.text-content{
	display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: left;
    overflow: visible;
    position: absolute;
	width: 280px;
}
.scrollable-x, .scrollable-y {
    outline-offset: -2px;
    overflow-x: hidden;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.pane-content.scrollable-y {
 -ms-overflow-style:-ms-autohiding-scrollbar;
}
.scrollable-x.scrollable-show,
.scrollable-x:focus,
.scrollable-x:hover,
.scrollable-show-all .scrollable-x {
 overflow-x:auto
}

.scrollable-y.scrollable-show,
.scrollable-y:focus,
.scrollable-y:hover,
.scrollable-show-all .scrollable-y {
    overflow-y: auto;
}

.scrollable-x::-webkit-scrollbar,
.scrollable-y::-webkit-scrollbar {
    width: 7px;
    background-color: #f5f5f500;
}

.plotLegend.scrollable-x::-webkit-scrollbar,
.plotLegend.scrollable-y::-webkit-scrollbar {
    width: 4px;
    background-color: transparent;
}

.plotLegend.scrollable-x::-webkit-scrollbar-thumb, 
.plotLegend.scrollable-y::-webkit-scrollbar-thumb {
    background-color: transparent;
}

.plotLegend.scrollable-x::-webkit-scrollbar-thumb, 
.plotLegend.scrollable-y::-webkit-scrollbar-thumb {
    -webkit-box-shadow: none;
	box-shadow: none;
    background-color: #b4cbce;
}

.plotLegend.scrollable-x::-webkit-scrollbar-track,
.plotLegend.scrollable-y::-webkit-scrollbar-track{
	-webkit-box-shadow: none;
	box-shadow: none;
    background-color: transparent;
}

.scrollable-x::-webkit-scrollbar-thumb, 
.scrollable-y::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #cddee0;
}
.scrollable-x::-webkit-scrollbar-track,
.scrollable-y::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #f5f5f500;
}
.video-link{
	position: relative;
	display: block;
    overflow: hidden;
    height: 158px;
	cursor: pointer;
	box-shadow: 0px 0px 3px 1px #ddd;
    margin-bottom: 16px;
}
.youtube-image{
	position: relative;
    top: 50%;
    width: 100%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.pane-toggle-button-container{
	position: absolute;
    z-index: 0;
    top: 8px;
    right: 100%;
    display: none;
}
.video-preview-icon{
	display: block;
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 0 18px 28px;
    border-color: transparent transparent transparent rgba(255,255,255,.5);
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    -webkit-transition: all .2s ease;
    -o-transition: all .2s ease;
    transition: all .2s ease;
	border-left-color: rgba(234, 39, 39, 0.5);
}
.video-link:hover .video-preview-icon{
	border-left-color: rgba(234, 39, 39, 1);
}
.pane-visible .pane-toggle-button-container {
    display: block;
}
.pane-toggle-button{
	width: 23px;
    height: 45px;
    cursor: pointer;
    border: 0px;
    background-color: #fff;
    font-size: 22px;
}
.pane-toggle-button:focus{
	outline: none;
}
.active-legend{
	fill: #212529;
	opacity: 1 !important;
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.small-opacity{
	opacity: 0.2 !important;
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
	pointer-events: none;
}
.active-legend-mobile{
	fill: #212529;
	opacity: 1 !important;
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
.small-opacity-mobile{
	opacity: 0.2 !important;
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
	pointer-events: none;
}

image.plot, text, image{
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
	cursor: pointer;
}

.pane-collapsed-mode .plotLegend{
	right: 0px;
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.pane-open-mode .plotLegend{
	right: 300px;
		-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.plotLegend{
	position: absolute;
	top: 0;
	right: 0;
	overflow: auto;
	overflow-x: none;
	height: 100%;
	padding-top: 10px;
	width: 250px;
}

.plotLegend svg{
	width: 100%;
}
@media (min-width: 1200px){
	.container.mapael {
		max-width: 80% !important;
	}
}

@media only screen and (min-width: 992px) {
	.legend-mobile{
		display: none;
	}
}

@media only screen and (min-width: 768px) {
	#opcina-konjic {
		position: absolute;
		width: 100%;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	.container.mapael {
		position: relative;
	}
}

@media only screen and (max-width: 991px) {
	.map{
		background-color: transparent;
	}
	.map-container{
		box-shadow: none;
	}
	.plotLegend{
		bottom: 0;
		top: unset;
		width: 100%;
		height: auto;
		display: none !important;;
	}
	.plotLegend svg{
		display: none;
	}
	.plotLegend image{
		display: none;
	}
	.legend-mobile .scrollable-x::-webkit-scrollbar{
		height: 5px;
	}
	.legend-mobile .scrollable-x::-webkit-scrollbar-track{
		-webkit-box-shadow: none;
		background-color: unset;
	}
	.legend-mobile-wrapper{
		overflow-x: scroll;
		overflow-y: hidden;
		white-space: nowrap;
		padding: 0px 5px;
	}
	.legend-mobile{
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		z-index: 999;
	}
	.active-legend{
		background: #11578e !important;
		border: 1px solid #11578e !important;
	}
	.label {
		/* display: inline-block;
		padding: 5px 10px;
		font-size: 14px;
		line-height: 1;
		background-color: #aebdc0;
		border: 1px solid #aebdc0;
		border-radius: 15px;
		margin-bottom: 10px;
		cursor: pointer; */

		display: inline-block;
		padding: 10px 10px;
		font-size: 16px;
		line-height: 1;
		background-color: #398bcd;
		border: 1px solid #398bcd;
		border-radius: 15px;
		margin-bottom: 10px;
		cursor: pointer;
		color: #fff;
	}
	.label:hover{
		cursor: pointer;
	}
	
	.pane-toggle-button {
		width: 20px;
		height: 40px;
		cursor: pointer;
		border: 0px;
		background-color: #fff;
		font-size: 20px;
		line-height: 40px;
	}
}

@media only screen and (max-width: 767px) {
	html, body{
		overflow: auto;
	}
	h2{
		font-size: 22px !important;
	}
	.map{
		/* height: 75vh; */
		position: relative;
		margin-top: 30px;
	}
	.map svg{
		height: auto;
		position: absolute;
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%);
		-ms-transform: translate(-50%, -50%);
		-webkit-transform: translate(-50%, -50%);
	}
	.mapael .zoomButton{
		width: 30px;
		height: 30px;
		line-height: 30px;
		font-size: 25px;
		left: 10px;
	}
	.mapael .zoomReset{
		top: 80px;
	}
	.mapael .zoomIn{
		top: 115px;
	}
	.mapael .zoomOut{
		top: 150px;
	}
	.tzks-logo,
	.dozivi-konjic-logo{
		width: 120px;
	}
	.dozivi-konjic-logo{
		top: 10px;
		bottom: unset;
	}
	.dozivi-konjic-logo img{
		margin-left: 10px;
	}
	.pane-visible{
		width: 100%;
	}
	.text-content{
		width: auto;
		position: relative;
	}
	.scrollable-y{
		overflow-y: auto;
	}
	.pane-visible .close-mobile{
		color: red;
		font-size: 34px;
		cursor: pointer;
		font-weight: 700;
		display: block;
	}
	.close-button-wrapper{
		position: absolute;
		right: 20px;
		z-index: 9;
		line-height: 1;
	}
	.text-content img{
		width: 100%;
	}
}
@media screen and (orientation:landscape) and (max-height:450px) {
	.map {
		height: 110vh;
	}
}
@media screen and (max-width:991px) and (min-width:768px) {
	.dozivi-konjic-logo{
		bottom: 70px;
	}
}
@media screen and (max-width:767px) and (min-width:576px) {
	.map {
		height: 90vh;
	}
	.ytp-cued-thumbnail-overlay{
		height: 270px;
	}
}
@media screen and (max-width:575px){
	.ytp-cued-thumbnail-overlay{
		min-height: 250px;
	}
}