html,
body {
    font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.app-shell,
.bikeway-map {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
}

.map-legend {
    bottom: max(24px, env(safe-area-inset-bottom));
    right: max(24px, env(safe-area-inset-right));
    width: 190px;
}

.legend-toggle {
    align-items: center;
    background: none;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 25px;
    height: 22px;
    justify-content: center;
    line-height: 1;
    margin: -4px 0 4px -4px;
    padding: 0;
    width: 22px;
}

.legend-content-hidden {
    display: none;
}

.legend-minimized {
    padding-bottom: 8px !important;
    padding-top: 8px !important;
}

.definitions-button {
    align-items: center;
    background: none;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    margin-top: -14px;
    min-height: 44px;
    padding: 4px 0;
    text-decoration: underline;
}

#definitions-modal {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
}

.definitions-content {
    max-height: 86vh;
    max-height: 86dvh;
    max-width: 660px;
    padding: 28px;
    width: calc(100vw - 32px);
}

.definitions-close {
    align-items: center;
    background: none;
    border: 0;
    color: #25303a;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 12px;
    top: 10px;
    width: 32px;
}

button,
input,
select,
textarea,
.leaflet-container {
    font-family: inherit;
}

.bikeway-map .leaflet-interactive:focus {
    outline: none;
}

@media (max-width: 600px) {
    .map-legend {
        bottom: max(12px, env(safe-area-inset-bottom));
        right: max(12px, env(safe-area-inset-right));
        width: min(190px, calc(100vw - 24px));
    }

    .definitions-content {
        max-height: calc(100dvh - 24px);
        padding: 20px;
        width: calc(100vw - 24px);
    }
}