* {
    box-sizing: border-box;
}
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

#main-view-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#map {
    flex: 1;
}

.bus-map-icon-outer {
    margin-left: -12px;
    margin-top: -12px;
}

.bus-map-icon {
    width: var(--icon-size);
    height: var(--icon-size);
    background: white;
    border-radius: 50%;
    padding: var(--icon-padding);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.bus-map-icon.outdated {
   --route-color: gray !important;
   opacity: 0.7;
}

.bus-map-icon::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    background-color: var(--route-color);
    z-index: -1;
    opacity: 0.15;
}

.bus-map-icon svg {
    height: 100%;
    transform: scaleX(1.6) scaleY(0.95) translateX(-8%) translateY(4%);
    width: auto;
}

#popup-panel {
    position: fixed;
    background: white;
    bottom: 100px;
    right: 100px;
    width: 350px;
    height: 200px;
    overflow: auto;
    z-index: 9999;
    padding: 0.5em 1em;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.25);
}
@media all and (max-width: 700px) {
    #popup-panel {
        position: static;
        height: 200px;
        width: 100%;
    }
}

#popup-panel h3 {
    margin: 0.25em 0;
    opacity: 0.75;
    font-weight: 500;
}

#popup-panel h2 {
    margin: 0.25em 0;
    opacity: 0.9;
}
#popup-panel h4 {
    opacity: 0.6;
    margin: 0.25em 0;
    font-weight: normal;
}
.route-container + .route-container {
    margin: 1em 0;
}

#popup-app-info {
    padding: 0.75em;
}

#popup-app-info:after {
    content: "";
    clear: both;
    display: table;
}

#connection-warning {
    padding: 0.5em;
    background-color: #fd786c;
    border: 1px solid #f96b5e;
    color: white;
    border-radius: 3px;
    margin-bottom: 0.5em;
}
#connection-warning i {
    vertical-align: text-top;
    margin: 0 8px 0 6px;
}
