﻿html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/* MAP */

#map-container {
    width: 100%;
    height: 100%;
}

#map-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #EEEEEE;
    z-index: 30; /* Above #map-container and #button-main-menu */
}

#map {
    width: 100%;
    height: 100%;
    z-index: 10; /* Below #button-main-menu */
}

/* END OF MAP */

/* MAIN MENU */
#menu-main {
    position: absolute;
    max-width: 50%;
    min-width: 30%;
    height: 100%;
    right: -100%; /* "Hidden" by default */
    top: 0;
    background: #EEEEEE;
    box-shadow: 0 0 32px #00000030;
    z-index: 40;
    transition: right 0.35s ease-in-out;
    user-select: none;
}

#menu-main-title {
    margin: 64px 0 0 32px;
}

#menu-main-content {
    max-height: 75%;
    padding: 0 32px 0 32px;
    overflow-y: scroll;
}

#menu-main-content ul {
    padding-left: 16px;
}

#menu-main-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background-color: #EEEEEE;
    box-shadow: 0 4px 4px 8px #00000010;
}

/* BUTTONS */
.button-main-menu {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 1;
    z-index: 20;
    cursor: pointer;
    transition: opacity 0.4s linear 0.4s;
    background-color: #fff;
    background-clip: padding-box;
    font-size: 22px;
    text-align: center;
    text-decoration: none;
    color: black;
    border: 2px solid #00000030;
    border-radius: 4px;
}

.button-main-menu:hover {
    background-color: #f4f4f4;
}

#button-main-menu-open {
    top: 10px;
    right: 10px;
}

#button-main-menu-close {
    top: 10px;
    left: 10px;
    line-height: 30px;
}

/* MISC */

.leaflet-popup-content ul {
    padding: 0 0 0 16px;
    margin: 0;
}

.marker-cluster-icon {
    padding: 8px;
    background-size: cover;
    background-color: #F37004;
    border-radius: 100%;
}

.marker-cluster-label {
    display: block;
    width: 100%;
    height: 100%;
    padding-top: 25%;
    color: #EEEEEE;
    text-align: center;
}

/* Mobile overrides */
@media only screen and (max-width: 800px) {
    #menu-main {
        min-width: 100%;
    }

    /*#menu-main-content {
        max-height: 60%;
        box-shadow: inset 0 -10px 10px -10px #DDDDDD;
    }*/
}

@media only screen and (max-height: 600px) {
    #menu-main {
        min-width: 100%;
    }

    /*#menu-main-content {
        max-height: 60%;
        box-shadow: inset 0 -10px 10px -10px #DDDDDD;
    }*/
}