
body {
    text-align: center;
    background-color: white;
}

div.navigation {
    background-color: #ffffffbb;
}

div#outMap {
    position:fixed;
    top: 0;
    height: 100%;
    width: 100%;
}

div#map {
    height: 100%;
    width: 100%;
    max-height: 100%;
}

.leaflet-container.sp-measure-cursor,
.leaflet-container.sp-measure-cursor * {
    cursor: crosshair !important;
}

.map-attribution {
    position: absolute;
    right: 0px;
    bottom: 0px;
    max-width: 260px;
    font-size: 11px;
    line-height: 1.3;
    color: #3a3a3a;
    background: rgba(255, 255, 255, 0.82);
    padding: 0px 5px;
    text-align: left;
    pointer-events: none;
    z-index: 400;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
}

@media screen and (max-width: 767px) {
    div#outMap {
        position: relative;
        max-height: 400px;
    }
}

div#backdrop {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0px; left: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
}

div#loader {
    position: absolute;
    top: 200px; left: 0px; right: 0px; bottom: 0px;
    text-align: center;
    display: none;
}

div#loader h2 {
    color: white;
    font-size: 24px;
}

#input {
    height: 30px;
    display: inline-block;
    margin: 0 auto 0 auto;
}

button {
    height: 30px;
}

div.search-box {
    width: 400px;
    right: 40px;
    top: 0;
}

div#resultDiv {
    display: none;
}

@media screen and (max-width: 767px) {
    div#resultDiv {
        position: relative;
        top: 0px;
    }

    div.search-box {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
    }
}

div.search-title {
    border-radius: 5px 5px 0 0;
}

div.resultBody {
    background-color: white;
    padding: 15px;
    border-radius: 0 0 5px 5px;
}

div.resultBody p.sectionName {
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    padding-left: 8px;
    margin: 0;
}

div.resultBody p#resultText {
    text-align: right;
    font-weight: 600;
    margin: 10px 0px 0 0px;
    font-size: 14px;
}

div.resultBody p#measureTools a {
    display: inline-block;
    vertical-align: middle;
    height: 64px;
    width: 74px;
    background-size: 64px;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 54px;
}

div.resultBody p#measureTools a#measureSurfaceButton {
    background-image: url("/static/web/img/surface.png");
}

div.resultBody p#measureTools a#measureSurfaceButton:hover {
    background-image: url("/static/web/img/surface_active.png");
}

div.resultBody p#measureTools a#measureSurfaceButton.active {
    background-image: url("/static/web/img/surface_active.png");
}

div.resultBody p#measureTools a#measureDistButton {
    background-image: url("/static/web/img/distance.png");
}

div.resultBody p#measureTools a#measureDistButton:hover {
    background-image: url("/static/web/img/distance_active.png");
}

div.resultBody p#measureTools a#measureDistButton.active {
    background-image: url("/static/web/img/distance_active.png");
}

div.resultBody p.search-info {
    margin: 10px 0 0 0;
    text-align: left;
}

div.resultBody p.search-info input#shareResult {
    /* hack to hide the input used for the clipboard */
    position: absolute;
    left:     -1000px;
    top:      -1000px;
}

div.resultBody div.separator {
    margin: 15px 0 18px 0;
    height: 2px;
    background-color: #F2F2F2;
}

div.adv {
    background-color: white;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

@media screen and (max-width: 767px) {
    div.adv {
        background-color: #F2F2F2;
    }
}

div.adv p#adv {
    line-height: 1.5;
    font-size: 15px;
}

div.adv p#adv strong {
    line-height: 1.5;
    font-size: 20px;
}

div.adv p#advAction {
    margin: 10px 0 0 0;
}

div.adv button {
    background-color: #763AE3; /* purple */
    border-color: #763AE3;
}

div.adv button:hover {
    background-color: #844ee6; /* light purple */
}

div#errorDiv {
    display: none;
    width: 100%;
    position: absolute;
    top: 170px;
}

div#errorDiv div.errorDiv-inner {
    display: inline-block;
    background-color: #F2F2F2;
    padding: 20px 20px;
}

div#errorDiv h2 {
    font-size: 24px;
    margin: 0 0;
}

div#infoDiv {
    display: none;
    z-index: 1;
    width: 100%;
    position: absolute;
    bottom: 50px;
}

div#infoDiv div.infoDiv-inner {
    display: inline-block;
    background-color: #F2F2F2;
    border-radius: 5px;
    padding: 10px 10px;
}

div#infoDiv p {
    font-size: 14px;
    margin: 0 0;
}

table {
    width: 100%;
}

table td {
    padding: 8px;
}

table td.address {
    text-align: left;
}

table td span.parcelCode {
    font-size: 10px;
    font-style: italic;
}

table td.surface {
    text-align: right;
}


/* Popup */

/* The popup styling. */
.popup {
    /* Position the popup centred-above its parent. */
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -100%);
    /* Style the popup. */
    background-color: white;
    padding: 5px;
    overflow-y: auto;
    max-height: 300px;
    font-size: 14px;
}

.popup button.close {
    position: relative;
    top: -8px;
}

.popup p#popupTitle {
    text-align: left;
    font-weight: 600;
    margin-left: 5px;
    margin-bottom: 0;
}


/* The parent of the popup. A zero-height div at the top of the tip. */
.popup-anchor {
    /* Position the div a fixed distance above the tip. */
    position: absolute;
    bottom: /* TIP_HEIGHT= */ 18px;
    left: 0;
}

/* JavaScript will position this div at the bottom of the popup tip. */
.popup-container {
    cursor: auto;
    height: 0;
    position: absolute;
}

div#mutationPopupContent {
    width: 500px;
}

div#measurePopupContent p {
    margin: 0;
    padding-right: 20px;
    padding-left: 5px;
}

@media screen and (max-width: 767px) {
    div#mutationPopupContent {
        width: 350px;
        font-size: 10px;
    }
}
