.departuresWrapper {
    /* animation: maxHeight calc(3*var(--transition-time)) forwards; */
    padding-top: var(--border-radius);
    margin-top: calc(0px - var(--border-radius));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--primary-highlight);
    box-shadow: inset 0 10px 0px var(--primary-shade), inset 0 23px 10px -10px var(--shadow-color);
    max-height: 0;
    padding-bottom: 0;
    transition: all var(--transition-time);
    color: var(--primary-text);
}

.departuresWrapper::after {
    content: " ";
    width: 100%;
    height: var(--margin);
    background-color: var(--primary-highlight);
    z-index: 1;
    box-shadow: 0 0 calc(.5 * var(--margin)) calc(.5 * var(--margin)) var(--primary-highlight);
}

.departuresHeader {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: medium;
    background-color: var(--primary);
    height: var(--card-line-height);
    line-height: var(--card-line-height);
    padding: 0 var(--margin);
    box-shadow: 0 0 5px var(--shadow-color);
}

.departuresHeader .icon {
    width: var(--card-line-height);
    margin-right: var(--margin);
    text-align: center;
}

.departuresHeader .remove.icon {
    width: auto;
    margin-left: auto;
    margin-right: 0;
    font-size: x-large;
}

.departuresList {
    display: flex;
    flex-direction: column;
    overflow: auto;
    height: calc(7 * 32px);
    padding-top: var(--margin);
}

.departuresWrapper .departure {
    display: flex;
    flex-direction: row;
    margin-bottom: 2px;
    font-size: medium;
    align-items: baseline;
    padding: 0 var(--margin);
}

.direction {
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeWrap {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.timeDiff {
    font-size: xx-small;
    color: hsl(0deg 59% 58%);
    margin-right: 5px;
    width: 4ex;
    text-align: right;
    align-self: flex-start;
    line-height: 20px;
}

.countdown {
    margin-left: 1ex;
    text-align: right;
    font-size: x-small;
    overflow: visible;
}

@keyframes flash {
    0% {
        opacity: 1;
    }
    50% {
        opacity: .3;
    }
    100% {
        opacity: 1;
    }
}

.countdown.finished {
    animation: flash 1s infinite;
}

.line {
    padding: 5px;
    width: var(--card-line-height);
    height: var(--card-line-height);
    border-radius: 1000px;
    /* background: white; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--margin);
    overflow: visible;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 1px 4px var(--shadow-color);
    background-color: var(--mot-color);
    color: var(--secondary-text);
}