body { margin: 0; padding: 0; }

.mapboxgl-popup {
    max-width: 400px;
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

.mapboxgl-popup {
    max-width: 600px;
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

.rounded-rect {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(0,0,0,.1);
}

.flex-center {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-center.left {
    left: 0px;
}

.flex-center.right {
    right: 0px;
}

.sidebar-content-right {
    position: absolute;
    width: 95%;
    top: 0;
    bottom: 0;
}

.collapsed .sidebar-content-right {
    margin-right: 0% !important;
}

.sidebar-toggle {
    position: absolute;
    width: 1.3em;
    height: 1.3em;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-toggle:hover {
    color: #0aa1cf;
    cursor: pointer;
}

.mapboxgl-ctrl-logo {
    display: none !important;
}

@media only screen and (min-device-width: 850px) {
    #map { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin-top: 75px}

    .sidebar.left {
        width: 35vw !important;
    }

    .sidebar.right {
        width: 20vw !important;
    }

    .sidebar {
        transition: transform .7s;
        z-index: 1;
        top: 20px;
        bottom: 20px;
    }
    .sidebar-content-left {
        position: absolute;
        width: 95%;
        height: 100%;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 32px;
        color: gray;
    }
    .left.collapsed {
        transform: translateX(-35vw);
    }
    .sidebar-toggle.left {
        right: -2em !important;
        transition-duration: .3s;
    }

    #dvf-query-status {
        position: absolute;
        top: 5px;
        left: 5px;
        z-index: 1;
    }
}

@media only screen and (max-device-width: 850px) and (orientation: portrait) {
    #map { position: absolute; top: 0; bottom: 0; left: 0; right: 0;}

    .sidebar.right {
        z-index: 1;
        top: 95px;
        bottom: 20px;
        width: 35vw;
    }
    .sidebar.left {
        transition: transform .7s;
        z-index: 2;
        width: 100vw;
        height: 48vh;
        bottom: 0;
    }
    .sidebar-content-left {
        position: absolute;
        width: 95%;
        height: 98%;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 32px;
        color: gray;
    }
    .left.collapsed {
        transform: translateY(48vh);
    }
    .sidebar-toggle.left {
        top: -2em !important;
        transition-duration: .3s;
    }

    #dvf-query-status {
        position: absolute;
        top: 80px;
        left: 5px;
        z-index: 1;
    }
}

@media only screen and (max-device-width: 850px) and (orientation: landscape) {
    .sidebar {
        transition: transform .7s;
        z-index: 1;
        width: 35vw;
        height: calc(100vh - 50px);
    }
    .sidebar-content-left {
        position: absolute;
        width: 95%;
        height: 78vh;
        margin-top: 20px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 32px;
        color: gray;
    }
    .left.collapsed {
        transform: translateX(-35vw);
    }
    .sidebar-toggle.left {
        right: -2em !important;
        transition-duration: .3s;
    }

    #dvf -query-status {
        position: absolute;
        top: 80px;
        left: 5px;
        z-index: 1;
    }
}
