* {
	font-family: "Open Sans", sans;
    color: #353131;
}

h1 {
    font-size: 1em;
}

p, li {
    font-size: 0.75em;
}

li {
	margin-bottom: 4px;
}

ul {
	padding-left: 24px;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.info-button {
    position: fixed;
    top: 12px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px) saturate(125%);
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    height: 40px;
    width: 40px;
    border-radius: 12px;
    z-index: 1;
}

#info-button {
    display: flex;
    background-color: transparent;
    border: none;
    padding: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.bottom-container {
	position: absolute;
    bottom: 12px;
    left: 50%;
	display: flex;
	align-items: flex-end;
    transform: translateX(-50%);
}

.inner-bottom-container {
	display: flex;
	flex-direction: column;
	flex: 1;
	margin-left: 12px;
}

.graph-container {
	flex: 1;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px) saturate(125%);
    max-width: 600px;
	justify: center;
	margin-bottom: 12px;
	padding: 0 4px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    border-radius: 12px;
    z-index: 1;
    display: none;
}

#graph-img {
    width: 105.2%;
    height: auto;
    margin: 12px auto 12px -14px;
    display: block;
}

.graph-button {
    bottom: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    height: 40px;
    width: 40px;
    border-radius: 12px;
    z-index: 1;
}

#graph-ico {
    display: flex;
    background-color: transparent;
    border: none;
    padding: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.bottom-bar {
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
	flex: 1;
    backdrop-filter: blur(8px) saturate(125%);
    max-width: 600px;
    min-height: 40px;
	padding: 0 4px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    border-radius: 12px;
    z-index: 1;
}

/* Slider */
.slider {
    position: relative;
    width: 500px;
    height: 20px;
    display: flex;
    align-items: center;
}

.range-bar {
    position: absolute;
    width: calc(100% - 16px); /* Subtract thumb size */
    height: 8px;
    background: rgb(134,225,251);
	background: linear-gradient(to right, rgba(134,225,251,1) 0%, rgba(93,176,253,1) 10%, rgba(88,231,208,1) 37.8%, rgba(130,227,123,1) 65.6%, rgba(225,214,78,1) 71.1%, rgba(255,177,104,1) 76.7%, rgba(254,127,141,1) 82.2%, rgba(253,118,207,1) 93.3%, rgba(198,132,250,1) 95.3%);
    border-radius: 4px;
    left: 8px; /* Half thumb size to center with slider*/
    padding: 2px;
}

.range-label-left {
    width: 40px;
    text-align: center;
    padding-left: 12px;
    font-weight: bold;
    font-size: 14px;
    color: #353131;
    padding-right: 12px;
}

.range-label-right {
    width: 40px;
    text-align: center;
    padding-right: 12px;
    font-weight: bold;
    font-size: 14px;
    color: #353131;
    padding-left: 14px;
}

.range-bar-fill {
    position: absolute;
    height: 100%;
    background: inherit;
    border-radius: 4px;
    width: 50%;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 8px;
    background: transparent;
    appearance: none;
    accent-color: #353131;
    pointer-events: none
}

.range-input::-webkit-slider-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    background-color: #353131;
    cursor: grab;
    border-radius: 50%;
    position: relative;
    z-index: 3;
}

.range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    background-color: #353131;
    cursor: grab;
    border-radius: 50%;
    position: relative;
    z-index: 3;
}

/* Sidebar */
.sidebar {
    display: flex;
    position: absolute;
    width: calc(100% - 24px);
    max-width: 400px;
    overflow-y: auto;
    padding: 18px 24px 18px 24px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px) saturate(125%);
    top: 64px;
    right: 12px;
    bottom: 64px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    border-radius: 12px;
    z-index: 1;
}

.sidebar-text{
	margin: 12px
}

.building-image {
    object-fit: contain;
    width: 100%;
    max-height: 450px;
    justify-content: center;
}

.sidebar-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    scale: 120%;
}

/* Popup */
.popup {
    align-items: center;
    overflow-y: auto;
	margin-bottom: 12px;
    padding: 18px 24px 18px 24px;
    display: none;
    backdrop-filter: blur(8px) saturate(125%);
	max-height: calc(100vh - 164px);
    max-width: 560px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    border-radius: 12px;
    z-index: 2;
	height: 99999px; /* Matej oprosti <3 */
    text-align: justify;
}

.popup-text{
	margin: 12px
}

.close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    scale: 120%;
}

/* Layer switcher */
.layer-switcher {
    position: fixed;
    top: 12px;
    right: 64px;
    z-index: 1;
}

.layer-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.layer-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px) saturate(125%);
    z-index: -1;
    border-radius: 12px;
}

.layer-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.layer-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px) saturate(125%);
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    display: none;
    z-index: 4;
    width: 150px;
}

.layer-dropdown.open {
    display: block;
}

.layer-dropdown button {
    display: block;
    border: none;
    border-radius: 12px;
    background: none;
    padding: 6px 8px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.layer-dropdown button:hover {
    background: none;
}

/* Checkbox style */
.layer-switcher button .checkmark {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 1px solid #ccc;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    position: relative;
}

.layer-switcher button .checkmark:after {
    content: "";
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #fd76cf;
    border-radius: 2px;
}

.layer-switcher button.active .checkmark:after {
    display: inline-block;
}

.mapboxgl-ctrl.mapboxgl-ctrl-scale {
    background-color: transparent;
    border-right: 2px solid rgb(253, 118, 207);
    border-bottom: 2px solid rgb(253, 118, 207);
    border-left: 2px solid rgb(253, 118, 207);
    border-top: transparent; 
}

::-webkit-scrollbar {
    width: 8px;
    height: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
}

::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #ebf3fc;
}

@media (max-width: 689px) {
    .graph-button {
        display: none;
    }

	.bottom-container {
		width: calc(100vw - 24px);
	}
	
	.slider {
		flex: 1;
		width: unset;
	}
	
	.inner-bottom-container {
        margin-left: 0px;
    }
	
	.popup {
		max-height: calc(100vh - 220px);
		height: calc(100vh - 220px);
	}
	
	.mapboxgl-ctrl-bottom-left {
        top: 12px;
        left: 12px;
        position: absolute;
    }
}
