﻿* {
   box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Fira Sans"
}

#map {
    height: 100%;
    flex-grow: 1;
    border-right: 2px solid #aaa;
}

#content {
    display: flex;
}

#meta {
    text-align: center;
    width: 300px;
    padding: 20px;
    background: #ccc;
    position: relative;
}

#progress .val, #progress .label {
    display: block;
    width: auto;
    height: 50px;
}

#progress .val {
    font-size: 80px;
    font-weight: 300;
}

#progress .label {
    font-size: 18px;
    opacity: 0.5;
    font-weight: 500;
}

#total {
    margin-top: 20px;
}

#total .total-val {
    font-size: 20px;
}

#total .total-unit {
    margin-left: 3px;
}

#total .total-label {
    color: #777;
    font-size: 12px;
}

.leaflet-popup-content-wrapper {
    border-radius: 0;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    font-family: "Fira Sans";
    font-size: 14px;
    font-weight: 500;
    color: black;
    text-align: center;
    padding: 6px 12px;
    border: 4px solid #276fb7;
}

.leaflet-popup-close-button {
    display: none;
}

.leaflet-popup-tip {
    background: #276fb7;
}

@media (max-width: 900px) {
    #content {
        flex-direction: column;
    }

    #meta {
        height: 340px;
        width: auto;
    }

    #map {
        border-right: none;
        border-bottom: 2px solid #aaa;
    }

    #josm-overpass {
        display: none;
    }
}

img.leaflet-tile {
    filter: grayscale(100%);
}

#josm-overpass {
    position: absolute;
    margin: 16px;
    bottom: 0;
    left: 0;
}

#josm-overpass h1 {
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    margin: 0 0 4px 0;
    color: #777;
}

#josm-overpass .code {
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    padding: 8px 0;
    text-align: left;
    font-size: 12px;
    color: #333;
}

[alt="Fork me on GitHub"] {
    filter: hue-rotate(220deg) brightness(2.2) saturate(0.6);
}