
html {
    margin: 0;
    padding: 0;
    font-size: 62.5%;
}
body {
    margin: 0;
    padding: 0;
    font-size: 1.6rem;
}
pre {
    position: fixed;
    inset: auto 10px 1.8rem 10px;
    padding: 1rem;
    max-width: 100vw;
    z-index: 2;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
}

.hidden {
    display: none;
}

#msg {
    white-space: pre-wrap;
    font-size: clamp(3vw, 1em, 3vh);
}
#map {
    position: relative;
    width: 100%;
    height: 100%;
}
iframe {
    width: 100%;
    height: 100%;
}
#status, #error {
    position: fixed;
    left: 50%;
    bottom: 0;
    padding: .2rem .4rem;
    background-color: rgba(255,255,255,0.8);
    z-index: 2;
    transform: translateX(-50%);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    border-radius: 4px 4px 0 0;
}

#error {
    display: none;
    padding: 2rem;
    bottom: 50%;
    max-width: 80vw;
    transform: translate(-50%, 50%);
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 2rem;
    color: #900;
}

#error.active {
    display: block;
}

#applemaps, #googlemaps, #geogr, #gisgr {
    position: fixed;
    right: 5px;
    background-color: #fff;
    z-index: 2;
    border-radius: 8px;
}

#applemaps a, #googlemaps a, #geogr a, #gisgr a {
    display: block;
    width: 50px;
    aspect-ratio: 1;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 8px;
    border: 3px solid #000;
}

#applemaps {
    bottom: calc(50% + 5px);
}

#applemaps a {
    background-image: url("../applemaps.png");
}

#googlemaps {
    top: calc(50% + 5px);
}

#googlemaps a {
    background-image: url("../googlemaps.png");
}

#geogr {
    top: calc(50% + 71px);
}

#geogr a {
    background-image: url("../geogr.png");
}

#gisgr {
    top: calc(50% + 137px);
}

#gisgr a {
    background-image: url("../gisgr.png");
}

#applemaps a[href="#"], #googlemaps a[href="#"], #geogr a[href="#"] {
    display: none;
}
