.line-page-title h1 {
    display: inline-block;
    background-color: red;
    color: white;
    margin: 0 auto 16px auto;
    padding: 2px 18px;
    border-radius: 7px;
    width: fit-content;
    font-size: 1.7rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .line-page-title h1 {
        margin: 0 auto 16px auto;
        padding: 2px 18px;
        border-radius: 7px;
        font-size: 2.5rem;
    }
}

.route-direction-picker {
    padding: 12px;
}

.route-pattern-direction {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 12px 8px 12px;
    border-radius: 18px;
}

.route-pattern-direction .direction-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    background-image: url("/images/live-bus-times/direction-arrow.png");
    margin-right: 20px;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .route-pattern-direction .direction-arrow {
        background-image: url("/images/live-bus-times/direction-arrow@2x.png");
    }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .route-pattern-direction .direction-arrow {
        background-image: url("/images/live-bus-times/direction-arrow@3x.png");
    }
}

@media (prefers-color-scheme: dark) {
    .route-pattern-direction .direction-arrow {
        background-image: url("/images/live-bus-times/direction-arrow-dark.png");
    }

    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .route-pattern-direction .direction-arrow {
            background-image: url("/images/live-bus-times/direction-arrow-dark@2x.png");
        }
    }

    @media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
        .route-pattern-direction .direction-arrow {
            background-image: url("/images/live-bus-times/direction-arrow-dark@3x.png");
        }
    }
}

.route-pattern-direction-selected .direction-arrow {
    background-image: url("/images/live-bus-times/direction-arrow-selected.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .route-pattern-direction-selected .direction-arrow {
        background-image: url("/images/live-bus-times/direction-arrow-selected@2x.png");
    }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .route-pattern-direction-selected .direction-arrow {
        background-image: url("/images/live-bus-times/direction-arrow-selected@3x.png");
    }
}

.route-pattern-direction h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #00000099;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
    .route-pattern-direction h3 {
        color: #FFFFFF99;
    }
}

.route-pattern-direction-not-selected {
    background: none!important;
}

.route-pattern-direction-selected {

}

.route-pattern-direction-selected h3 {
    color: #FFFFFF;
}

.line-stop-list .stop {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.line-stop-list .stop .vertical-line {
    width: 24px;
    background-color: red;
    margin-right: 18px;
    margin-left: 20px;
    flex: 0 0 24px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-stop-list .stop .stop-dot {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
}

.line-stop-list .current-stop .stop-dot {
    width: 16px;
    height: 16px;
}

.line-stop-list .first-stop .vertical-line {
    border-radius: 12px;
    transform: translateY(calc(50% - 12px));
}

.line-stop-list .first-stop .stop-dot {
    transform: translateY(calc(-50% - 6px));
}

.line-stop-list .last-stop .vertical-line {
    border-radius: 12px;
    transform: translateY(calc(-50% + 12px));
}

.line-stop-list .last-stop .stop-dot {
    transform: translateY(calc(50% + 6px));
}

.line-stop-list .stop .stop-name-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 18px 12px 0;
}

.line-stop-list .stop .connections .line-name {
    background-color: red;
    color: white;
    margin: 0 1px 0 0;
    padding: 1px 4px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    font-size: 0.6rem;
    font-weight: bold;
}

.line-stop-list .stop:not(:last-child) .stop-name-container {
    border-bottom: solid 1px #0000001F;
}

@media (prefers-color-scheme: dark) {
    .line-stop-list .stop:not(:last-child) .stop-name-container {
        border-bottom: solid 1px #FFFFFF1F;
    }
}

.line-stop-list .stop p {
    margin: 0;
    padding: 0;
}

