.ol-rotate-reset,
.ol-attribution {
display: none;
}

.legendContainer {
max-height:calc(100vh - 152px);/*better detect height by JS?*/
}


/*
#chart.chart {
width: calc(100% - 32px);
max-width: 300px;
right: 0;
top: 0;
height: 100vh;
background: transparent;
border-radius: 10px;
z-index: 2222;
}

.legendContainer.chartLegend {
background: #fff;
}

#chart.chart .card-body {
max-height: calc(40vh);
}


#Legende {
left: 0;
top: 0;
}
*/

.collapse.show .card-body {
max-height:calc(100vh - 228px);/*better detect height by JS?*/
}


#cmsHide, #cmsShow {/* grouped both - same position almost equal to legend */
position:absolute;
z-index:6;
right:0;
z-index:200000;
background:white;
height:37px;
width:37px;
box-shadow:0px -3px 3px rgba(0,0,0,0.15);
background:white;
border-radius:4px;
display:block;
text-align:center;
line-height:36px;
cursor:pointer;
}


/*.show-panel {*/
/*-webkit-transform: rotate(180deg);*/
/*-moz-transform: rotate(180deg);*/
/*-ms-transform: rotate(180deg);*/
/*-o-transform: rotate(180deg);*/
/*transform: rotate(180deg);*/
/*}*/


.list-group.inner li {
border: none;
display: flex;
/* align-items: center; */
}

.layerImageDop {
position: relative;
border: 2px solid #fff;
border-radius:4px;
/* width:48px;
height:48px; */
cursor:pointer;
}


.layerImages {
position: relative;
bottom: 55px;
right: 20px;
background: #eaeaeade;
width: 98px;
}

footer {
height: auto;
width: 240px;
position: fixed;
left: 50%;
margin-left:-120px;
bottom: 0px;
border-top-right-radius: 16px;
border-top-left-radius: 16px;
padding: 8px 16px;
z-index: 2;
background: rgba(209, 209, 209, 0.85);
box-shadow: 0px -3px 8px rgba(0,0,0,0.25);
}

footer:hover {
background:rgba(209,209,209,1);
}



.zoomTool{
background:rgba(255,255,255,0.5);
color:rgba(72,72,73,0.5);
display:inline-block;
border-radius:4px;
border:1px solid rgba(72,72,73,0.25);
height:32px;
width:32px;
text-align:center;
line-height:32px;
font-size:24px;
}
.zoomTool.sg-full-extent{
    font-size: 16px;
}

.zoomTool:hover{
background:rgba(255,255,255,1);
color:rgba(72,72,73,1);
}

/*
.legendContainer {
min-height: calc(100vh - 100px);
}
*/

#cmsShow{
    display: none;
}


/*@media (max-width: 1024px) {*/
/*#hideShowContent {*/
/*!*display: none;*!*/
/*    right: -500px;*/
/*    !*opacity: 0;*!*/
/*    transition: right 0.5s ease-in-out, opacity 0.5s ease-in-out;*/
/*}*/
/*#cmsShow{*/
/*display: block;*/
/*}*/
/*}*/

/*@media only screen and (max-width: 800px) {*/
/*#hideShowContent {*/
/*!*display: none; !*cmsHide right arrow*!*!*/
/*    right: -500px;*/
/*    !*opacity: 0;*!*/
/*    transition: right 0.5s ease-in-out, opacity 0.5s ease-in-out;*/
/*}*/

/*#cmsShow{*/
/*    display: block; !*cmsShow left arrow *!*/
/*}*/
/*}*/

#hideShowContent{
    position: absolute;
    right: 0; /* Default position */
    opacity: 1; /* Visible by default */
    transition: right 0.5s  ease-in-out;

}

.content-collapsed{
    /* display: none; */
    right: -500px !important;
    opacity: 0;
}

.content-expanded{
    /* display: block; */
    right: 0;
    /*display: block !important;*/
    opacity: 1;
}





/* extra touch */

/* #Legend */

.list-group.inner li {
align-items: top;
}

.labelLegend, .custom-control .custom-control-label {
line-height: 1.25rem;
}

.legendToggler {
position: absolute;
z-index: 6;
left:auto;
right: 0;
}

#showLegend, #Legende {
top:16px;
    z-index: 999;
}

.nav-tabs .nav-link {
font-size: 1rem;
}

.legendToggler a {
height: 40px;
width: 40px;
line-height: 40px;
}

#showLegend a {
height: 40px;
width: 40px;
line-height: 40px;
}

.legendContainer {
max-height: calc(100vh - 220px);
margin-bottom:0;
}



/* #Chart */

.show-cms-button {
/* position:fixed;
top:calc(50% + 24px); */
position: absolute;
top: 0;
right:0;
left:auto;
bottom:auto;
z-index: 999;
}

.hide-cms-button {
    position: absolute;
    left: 0px;
    top: 0;
    /* top: 50%; */
    transform: translateY(-50%);
    z-index: 99999;
    transition: transform 0.5s ease;
    opacity: 1;
}
.hide-cms-button.hidden {
    opacity: 0;
}


#hideShowContent {
    position: relative;
}


#cmsHide, #cmsShow {
    /* height: 106px; */
    height: 40px;
    width: 40px;
    /* border-top-right-radius: 0px;
    border-bottom-right-radius: 0px; */
    /* line-height: 110px; */
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    line-height: 40px;
    background-color: white;
}

#chart {
    z-index: 999;
}
.card-header h2.collapsed {
border-radius:4px;
}

.collapse.show .card-body {
max-height: calc(100vh - 244px);/* needs to be detected by JS because height is flexible (headline multiline is
possible) */
}



/* Footer and below */

footer {
bottom:16px;
}

@media (max-width: 576px) {
footer {
width: 200px;
right:0;
left:auto;
margin-left: 0px;
border-top-right-radius: 0;
border-top-left-radius: 16px;
padding: 8px 16px 8px 8px;
z-index: 2;
background: rgba(209, 209, 209, 0.85);
box-shadow: 0px -3px 8px rgba(0,0,0,0.25);}
}




.zoomTool {
cursor:pointer;}

.zoomTool:first-child {
border-right:0;
border-top-right-radius:0;
border-bottom-right-radius:0;
}

.zoomTool:nth-child(2) {
border-top-left-radius:0;
border-bottom-left-radius:0;
}


#license {
bottom:0;
right: 0;
height: 16px;
line-height: 16px;
font-size: 11px;
background:rgba(0,0,0,0.5);color:#fff;
}

#license a {color:#fff}

#license:hover {background:rgba(0,0,0,0.5);}

.imprint {
position:fixed;
bottom:32px;
left:16px;
z-index:20;
}

.layerImageDop {
border: 2px solid rgba(72,72,73,0.5);;
}

.layerImageDop:hover {
border: 2px solid rgba(255,255,255,1);;
}

.layerImages {
bottom: 82px;
left: -40px;
right:auto;
height:64px;
width:128px;
background:transparent;
z-index:1000;
border-radius: 4px;
}

.layerImages > div {
border-radius: 4px;
}

.layerImages > div:hover {
background-color:white;
}

.layerImages > div img {
width:56px;
height:56px;
border:1px solid rgba(0,0,0,0.5);
}

.mapLegend .colorLegend {
    display: flex !important;
    align-items: center;
}

#popup {
    display: none; /* Hide the popup by default */
}
.ol-popup-active {
    display: block !important; /* Show the popup when this class is added */
}


/* // new style for Apr 15 */
.legendContainer {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}

#Legende {
	width: calc(100% - 64px);
	max-width:420px;
	}
	
.modal-dialog {
	padding-left:1rem;
	padding-right:1rem;
	}

.modal-content {
	border-radius:4px;
	}
	
.modal-header {
	border-radius:0;
	border-top-left-radius:4px;
	border-top-right-radius:4px;
	}
	
.modal-footer {
	border-radius:0;
	border-bottom-left-radius:4px;
	border-bottom-right-radius:4px;
	}

.legendContainer {
	max-height: calc(100vh - 240px);
	max-width:320px;
	margin-left:32px;
	}

.nav-pills ~ .legendContainer {
	margin-top:0.25rem!important;
	}

.legend .nav-pills, .legend .nav-tabs {
	margin-left:32px;
	}
	
.legend .nav-pills .nav-item {
	margin-bottom:4px!important;
	}
	
.nav-pills .nav-link {
	background-color: rgba(250,250,250,0.85);
	margin-right:0.25rem;
	}
	
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
	color: #000;
	background-color: #fff;
	box-shadow: 0px 3px 8px rgba(0,0,0,0.25);
	}

.legendContainer.chartLegend {
	margin-top:0rem!important;
	right:32px!important;
	box-shadow: none;
	overflow:inherit;
	}

.footer-stuff {
	margin-top:0!important;
	}

#chart {
	width: calc(100% - 96px);
	}
	
#chart .card-body {
	border:0;
	box-shadow: none !important;
	}

#showLegend, #Legende {
	z-index: 99009;
	}
	
.tools {
	/* margin-left:16px; */
	}
  
  
@media (max-width: 576px) {
	footer {
		width: auto;
		min-width: 200px;
		left:0;
		right:auto;
		border-top-right-radius: 16px;
		border-top-left-radius: 0px;
		}
	}

.zoomTool:first-child {
	border-right:0;
	border-top-right-radius:0;
	border-bottom-right-radius:0;
	}

.zoomTool:nth-child(2) {
	border-radius:0;
	border-right:0;
	}

#fullscreen-toggle .zoomTool {
	margin-left:0px!important;
	border-radius:4px;
	}

.zoomTool:nth-child(3) {
	border-radius:4px;
	border-top-left-radius:0;
	border-bottom-left-radius:0;
	}

.imprint {
	left:auto;
	right:16px;
	}
	
footer {
	z-index:99008;
	box-shadow: 0px 3px 8px rgba(0,0,0,0.25);
	}

.imprint {
	z-index:100001;
	}

.layerImageDop {
	margin-right:16px;
	}
	
#showLegend {
	left:0;
	}
	
#showLegend a {
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
	}

.legendToggler {
	left:-16px;
	right:auto;
	}
	
.legendToggler a {
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 4px;
	box-shadow: 0px 3px 8px rgba(0,0,0,0.25);
	}
	
#showLegend a {
	box-shadow: 0px 3px 8px rgba(0,0,0,0.25);
	}
	
#cmsHide, #cmsShow {
	box-shadow: 0px 3px 8px rgba(0,0,0,0.25);
	}

#cmsShow {
	right:-16px;
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	}

.hide-cms-button {
	right:-16px;
	}
	
#cmsHide {
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	}
		
.modal-backdrop {
	z-index: 102040;
	}
	
#accordionExample.accordion {
	overflow:inherit
	}

.card.chart-container, .card.info-container {
	box-shadow: 0px 3px 8px rgba(0,0,0,0.25);
	}