html body {
    color: #c0c0c5;
    background: #1c1c1e;
}

@media (prefers-color-scheme: light) {
    html body {
        background-color: white;
        color: black;
    }
    #loading {
        background: rgba(207, 207, 207, 0.4) !important;
    }
}

@media (prefers-color-scheme: dark) {
    html body {
        color: #c0c0c5;
        background: #1c1c1e;
    }
    #loading {
        background: rgba(73, 73, 73, 0.4) !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
    padding: 1px 18px 11px;
    margin: 0 auto;
    min-height: max(calc(100dvh - 12px), 100dvw);
    container-type: size;
    font-size: 4cqw;
    position: relative;
}

.material-symbols-outlined {
    vertical-align: middle;
}

.relative {
    position: relative;
}

#loading {
    position: absolute;
    text-align: center;
    top: 0;
    translate: -50% -4cqw;
    left: 50%;
    font-size: large;
    width: max-content;
    background: rgba(73, 73, 73, 0.4);
    padding: 3cqw;
    border-radius: 3cqw;
    backdrop-filter: blur(5px);
}

h1 {
    font-size: 6cqw;
    font-weight: 600;
    padding-bottom: 0;
    text-align: center;
    white-space: nowrap;
    overflow: clip;
    text-overflow: ellipsis
}

h3 {
    font-size: 5cqw;
    font-weight: 600;
    margin-bottom: 1.5cqw;
}
h3 .material-symbols-outlined {
    font-size: 4.5cqw;
}

#error {
    color: red;
}

.faster {
    color: green;
    font-weight: 500;
}
.slower {
    color: red;
    font-weight: 500;
}

.predicted {
    position: relative;
}
.predicted > .delay {
    position: absolute;
    right: 0;
    translate: 0 5cqw;
}

.trip h3 {
    display: flex;
    justify-content: space-between;
}

.connection {
    display: flex;
    justify-content: space-between;
    gap: 2cqw;
}

.endpoint {
    position: absolute;
    top: 50%;
    translate: 0 calc(5.5cqw - 50%);
    font-size: 3cqw;
    width: max-content;
    max-width: 30cqw;
    max-height: 3em;
    line-height: 1em;
    display: inline-flex;
    gap: .2em;
}
.startContainer {
    left: 0;
}
.endContainer {
    right: 0;
    text-align: right;
}
.endpoint .material-symbols-outlined {
    font-size: 3cqw;
}
.endpoint:has(> [hidden]) {
    visibility: hidden;
}

.sections {
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    margin-bottom: 3.5cqw;
}
.section {
    width: 100%;
    display: flex;
}

.transportIcon {
    font-size: 5cqw;
    border-radius: 50%;
    padding: .5cqw;
    z-index: 1;
}
.transportBar {
    height: .4em;
    width: 100%;
    align-self: center;
    translate: -.1cqw 0;
}

.transportNumContainer {
    position: absolute;
    left: 50%;
    translate: -50% 7.5cqw;
    font-size: .8em;
}
.transportNum {
    border-radius: 1cqw;
    text-align: center;
    padding: .1em .2em .1em .2em;
}
.section:first-child .transportNumContainer.largeNum {
    left: 0;
    translate: 0 7.5cqw;
}
.transportDelay {
    position: absolute;
    left: calc(100% + .2em);
}
