html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    padding: 0;
    margin: 0;
}

/* fixed below the navbar (66 px high) */
#map {
    position: fixed;
    width: 100vw;
    height: calc(100% - 66px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.form-control:focus {
    box-shadow: none;
}

/* a group of vehicles; map.js sets border-color by their number */
.vehicle-cluster {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid;
    border-radius: 100%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 1rem;
}

/* the user's own position on the map */
.user-position {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(52, 172, 224, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 172, 224, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* panels */
.panel-card {
    background-color: #f7f7f7;
}

.vehicle-bus {
    color: #0dcaf0;
}

.vehicle-tram {
    color: #0f52ba;
}

#contact-content {
    height: 200px;
}

.contact-send {
    color: #fff;
    background-color: #33b5e5;
    border-color: #33b5e5;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
}

.contact-send:hover,
.contact-send:focus {
    background-color: #0089bc;
    border-color: #0089bc;
}

/* hx-disable turns the button off while the message is being sent */
.contact-send:disabled {
    background-color: #33b5e5;
    border-color: #33b5e5;
}

.toast-container {
    z-index: 1080;
}
