body {
    margin: 0;
    padding: 0;
}
.mapboxgl-ctrl-top-right {
    top: 40px !important;
}
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}
.mapboxgl-popup {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    will-change: transform;
    pointer-events: none;
    text-align: center !important;
}
.layersDropdown {
    margin: 7px 5px 0 0;
    width: fit-content;
    justify-content: center;
    float: right;
}

#toggle_property{
    top: 5px;
}

.select{
    height: 30px;
    line-height: 30px;
    width: 215px;
    font-size: 15px;
}

#menu {
    background: #fff;
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    border-radius: 3px;
    width: 165px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    font-family: 'Open Sans', sans-serif;
    display: none;
}

@media (max-width: 768px) {
    #menu {
        top: 90px;
    }
}

#menu a {
    font-size: 13px;
    color: #404040;
    display: block;
    margin: 0;
    padding: 10px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    text-align: center;
}

#menu a:last-child {
    border: none;
}

#menu a:hover {
    background-color: #f8f8f8;
    color: #404040;
}

#menu a.active {
    background-color: #3887be;
    font-weight: bold;
    color: #ffffff;
}

#menu a.active:hover {
    background: #3074a4;
}

.date_filter{
    position: absolute;
    z-index: 2;
    top: 10px;
    left:10px;
    width: 280px;
    /* padding: 8px 0px 8px 0px; */
}

.date_filter #startYear{
    position: absolute;
    top: 6px;
    left: 10px;
}
.date_filter #endYear{
    position: absolute;
    top: 6px;
    right: 10px;
}

.date_filter #currentValue{
    position: absolute;
    top: 3px;
    right: 42%;
    font-weight: bold;
    font-size: large;
}

#date_filter{
    margin: 16px;
    width: 88%;
}

#navigation{
    position: absolute;
    z-index: 2;
    bottom: 10px;
    right: 0;
}

#navigation #navigationMenu{
    list-style: none;
}

#navigation #navigationMenu .navigation-item{
    /* border: 1px solid rgb(139, 139, 139); */
    padding: 5px 20px;
    margin: 10px;
    font-size:medium;
    font-weight: lighter;
    height: 38px;
    justify-content: center;
    padding: 8px;
    width: 120px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background-color: white;
    border-radius: 10px 2px 2px 10px;
}
.navigation-item:before,
.navigation-item:after {
    content: '';
    position: absolute;
    left: -10px;
    width: 22px;
    height: 9px;
    border-radius: 2px;
    background: white;
}
#navigationMenu>li.active::before,
#navigationMenu>li.active::after{
    content: '';
    position: absolute;
    left: -10px;
    width: 22px;
    height: 9px;
    border-radius: 2px;
    background: #3074a4;
}

.navigation-item:before {
    top: 8px;
    -webkit-transform: rotate(130deg);
    -ms-transform: rotate(130deg);
    transform: rotate(130deg);
}
.navigation-item:after {
    bottom: 8px;
    -webkit-transform: rotate(-130deg);
    -ms-transform: rotate(-130deg);
    transform: rotate(-130deg);
}


#navigation #navigationMenu>.active{
    background: #3074a4;
    color: white;
    font-size:medium;
    font-weight:bolder;
}

.json_filter{
    position: absolute;
    z-index: 2;
    top: 10%;
    left: 14px;
}

.json_filter #json_filter_items{
    list-style: none;
    padding: 0 !important;
}

.json_filter #json_filter_items .json-filter-item{
    border: 1px solid rgb(151, 151, 151);
    padding: 5px;
    /* margin: 5px; */
    width: 140px;
    font-size: medium;
    height: 35px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background-color: white;
}


.json_filter #json_filter_items>.active{
    background: #3074a4;
    font-weight: bold;
    color: white;
}

.legend{
    position: absolute;
    max-width: 110px;
    bottom: 35px;
    left: 35px;
    z-index: 2;
    display: none;
}

.legend-sub-container{
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0px 0px 4px 4px;
    padding: 10px;
    margin-top: 0px;
}

#legendHeader{
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    text-align: center;
    padding: 10px;
    margin: 0px !important;
    border-radius: 4px 4px 0px 0px;
}

#legend{
    height: 180px;
    width: 25px;
    background-image: linear-gradient(to top, #ad0000, #ffdd00, #198a00);
}

.legend .max-legend, .legend .min-legend{
    font-weight: bold;
    font-size: small;
}

.filter{
    display: none;
}

.range-container{
    background-color: #ffffff;
    padding: 5px;
    border-radius: 4px;
    padding: 10px 0px 0px 0px;
}

.hero-overlay{
    width: 100%;
    height: 100%;
    z-index: 2;
    position: fixed;
    background-color:#ffffff; /* If the image dosn't appear */
}

.hero-overlay .overlay-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

.hero-overlay img{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .7;
}

.hero-overlay .header{
    z-index: 1;
    margin-bottom: 30px;
}

.hero-overlay h3{
    color: #007dbb;
    font-size: 3.5em;
    text-align: center;
}

.hero-overlay .btns-group{
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-button{
    z-index: 1;
    height: 70px;
    margin: 2%;
    background: #007dbb;
    font-weight: bold;
    font-size: 110%;
    border: 1px solid #595959;
    width: 28%;
}

.start-button:hover{
    background: #005885 !important;
}

@media only screen and (max-width: 576px) {
    .hero-overlay h3 {
        font-size: 2em;
    }
    .start-button{
        width: 70%;
    }
    .hero-overlay .btns-group {
        flex-direction: column;
    }

    #map.excise .layersDropdown {
        top: 50px;
        position: absolute;
        left: 4px;
    }

    #map.excise .date_filter {
        transform: scale(0.75);
        left: -30px;
        top: 5px;
    }

    #map.excise .json_filter {
        transform: scale(0.8);
        left: -5px;
        bottom: 0;
    }

    #map.excise .legend {
        transform: scale(0.8);
        left: 0;
        bottom: 8px;
    }

    #map.sales .date_filter {
        top: 90px;
    }
}