html {
    transform: translate3d(0);
}

body {
    margin:0;
    font-weight: 200;
    background-color: #282a31;
    font-family: 'Montserrat', 'Open Sans', 'Verdana', sans-serif;
}

a {
    color: white;
    text-decoration: none;
}

select {
    font-family: 'Montserrat', 'Open Sans', 'Verdana', sans-serif;
    font-weight: 200;
    padding: 6px;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    border: none;
    border-radius: 3px;
    padding: 8px 10px;
}

code {
    white-space: pre;
}

#msg {
    width: calc(100% - 140px);
    padding: 10px;
    text-align: center;
    color: white;
    position: fixed;
    z-index: 5;
    top: 0;
    border: 1px solid white;
    display: none;
    margin: 10px 10px 0 70px;
    border-radius: 3px;
}

#msg.success {
    background-color: #45ab69;
}

#msg.error {
    background-color: #982a2a;
}

#msg.visible {
    display: block;
}

#speedometer {
    color: black;
    position: absolute;
    z-index: 2;
    font-weight: bold;
    font-size: 20px;
    background-color: white;
    padding: 34px 0 28px;
    border: 3px double black;
    border-radius: 8px;
    bottom: 10px;
    left: 10px;
    text-align: center;
    width: 100px;
    pointer-events: none;
    font-family: 'Montserrat', 'Open Sans', 'Verdana', sans-serif;
    line-height: 1.3em;
}

#speedometer .ctrl-label {
    position: absolute;
    top: 0;
    font-size: 11px;
    width: 100%;
    font-weight: bold;
}

#map {
    width: 100%;
    height: 100%;
    position: absolute;
}

.mapboxgl-ctrl-attrib.mapboxgl-compact.mapboxgl-compact-show {
    max-width: 52%;
    border-radius: 4px 4px 12px 4px;
    font-size: 11px;
    padding: 6px 28px 6px 10px;
}

.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button {
    top: auto;
    bottom: 0;
}

#about {
    position: absolute;
    top: 100%;
    color: white;
    padding: 50px 0;
    box-shadow: inset 0 0 100px #101219;
    font-size: 14px;
    line-height: 1.75em;
    width: 100%;
    text-align: center;
    min-height: calc(100% - 100px);
}

#about-content {
    width: 80%;
    max-width: 468px;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

#menu {
    position: fixed;
    z-index: 3;
    background-color: #1d1c1c;
    height: calc(100% - 70px);
    box-shadow: inset 0 0 70px black;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    padding-top: 60px;
    padding-bottom: 10px;
    color: white;
    overflow-y: auto;
    border-right: 1px solid #292929;
}

#menu.visible {
    opacity: 1;
    pointer-events: auto;
}

.menu-bar {
    height: 3px;
    width: 28px;
    background-color: white;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}

#menu-toggle {
    padding: 10px 10px 5px 10px;
    background-color: rgb(0, 0, 0, 65%);
    display: inline-block;
    position: fixed;
    z-index: 4;
    top: 10px;
    left: 10px;
    border: 1px solid black;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.2s;
}

#menu-toggle:hover {
    border-color: white;
}

.menu-item {
    padding: 12px 20px;
    transition: background-color 0.2s;
    display: block;
    border-top: 1px solid #292929;
}

.menu-item:last-child {
    border-bottom: 1px solid #292929;
}

.menu-item:hover {
    background-color: #2b2a2a;
}

a.menu-item {
    cursor: pointer;
}

#menu.visible + #menu-toggle .menu-bar:first-child {
    transform: rotate(45deg) translateX(5px) translateY(5px);
}

#menu.visible + #menu-toggle .menu-bar:nth-child(2) {
    opacity: 0;
}

#menu.visible + #menu-toggle .menu-bar:last-child {
    transform: rotate(-45deg) translateX(6px) translateY(-6px);
}

#menu.visible + #menu-toggle {
    background: transparent;
}

.mapboxgl-user-location-accuracy-circle,
.mapboxgl-ctrl-bottom-left {
    pointer-events: none;
}

.mapboxgl-popup-content {
    font-weight: 100;
    padding: 15px 20px !important;
}

.mapboxgl-popup-content a {
    color: red;
    cursor: pointer;
    font-weight: bold;
}

.mapboxgl-popup-content a:hover {
    color: #ec5e5e;
}

.mapboxgl-ctrl-bottom-left {
    bottom: 136px;
}

.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {
    color: white;
    font-family: monospace;
    text-shadow: 1px 1px 1px black;
    text-align: center;
    font-size: 28px;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.15);
    width: 104px;
    padding-bottom: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ctrl-label {
    font-size: 13px;
    margin: 6px 0;
}

.select-label {
    font-size: 13px;
    margin-bottom: 10px;
    position: relative;
}

.select-label:after {
    content: '\25BC';
    display: block;
    position: absolute;
    color: #989898;
    right: 7px;
    bottom: -34px;
    font-size: 10px;
}

.mapboxgl-map {
    font-family: 'Montserrat', 'Open Sans', 'Verdana', sans-serif;
}
