:root {
    font-size: 10px;
}

* {
    padding: 0;
    margin: 0;
}

body {
    background-color: black;
    font-size: 5.5rem;
    font-family: arial, sans;
}

#banner {
    box-sizing: border-box;
    height: 10rem;
    color: white;
    margin: 0.8rem;
}

#banner img {
    height: 7rem;
    margin: 1.5rem;
    float: left;
}

#banner .text {
    padding-top: 1.8rem;
    margin-left: 1rem;
    float: left;
}

#banner .time {
    padding-top: 1.8rem;
    margin-right: 1rem;
    float: right;
}

.route {
    margin: 0.8rem;

}

.route img {
    height: 10rem;
    float: left;
}

.destination {
    box-sizing: border-box;
    height: 10rem;
    background-color: white;
    padding-top: 1.4rem;
    padding-left: 11rem;
    white-space: nowrap;
    overflow: clip;
}

.destination:first-child {
    border-radius: 5rem 5rem 0 0;
}

.destination:last-child {
    border-radius: 0 0 5rem 5rem;
}

.destination:only-child {
    border-radius: 5rem 5rem 5rem 5rem;
}

.destination .text {
    color: black;
    margin-right: 1.6rem;
}

.destination .seperator {
    color: grey;
    display: none;
}

.destination .combined {
    display: inline-block;
    color: white;
    min-width: 8rem;
    padding: 0.4rem;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    background-color: #666;
    box-sizing: border-box;
    border-radius: 0.4rem;
    text-align: center;
}

.now {
    color: rgb(199, 147, 147);
}

.destination .combined:first-child {
    background-color: #333;
}

.combined[style*="--acValue"]::after {
    content: ""; 
    display: inline-block;
    width: 0.85em; 
    height: 0.85em;
    margin-right: -0.05em; 
    vertical-align: -0.1em;
    background-image: linear-gradient(to right, rgb(255, 80, 80) 0%, rgb(80, 80, 255) 90%);
    background-size: 2000% 100%;
    background-position: calc((var(--acValue, 0) + 10) * 5%) center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 13V5A3 3 0 0 0 9 5v8a5 5 0 1 0 6 0z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.combined.old {
    background-color: #6b5273;
    color: rgb(255, 255, 255);
}
.combined.old:first-child {
    background-color: #3a2444;
    color: rgb(255, 255, 255);
}

.combined.new {
    background-color: #616192;
    color: rgb(255, 255, 255);
}
.combined.new:first-child {
    background-color: #282857;
    color: rgb(255, 255, 255);
}

.combined.electro {
    background-color: #4e754e;
    color: rgb(255, 255, 255);
}
.combined.electro:first-child {
    background-color: #1f431f;
    color: rgb(255, 255, 255);
}

.combined.historical {
    background: linear-gradient(-135deg, rgb(80, 86, 255), rgb(197, 80, 255), rgb(80, 80, 255), rgb(182, 80, 255));
    color: black;
}

.combined.rainbow {
    background: linear-gradient(-135deg, rgb(255, 100, 100), rgb(255, 201, 100), rgb(255, 255, 100), rgb(100, 255, 100), rgb(100, 100, 255), rgb(190, 100, 255));
    color: black;
}
.combined.rainbow:first-child {
    background: linear-gradient(-135deg, rgb(255, 80, 80), rgb(255, 194, 80), rgb(255, 255, 80), rgb(80, 255, 80), rgb(80, 80, 255), rgb(182, 80, 255));
    color: black;
}

#footer {
    text-align: center;
    font-size: 1.4rem;
    color: grey;
    margin-top: 2rem;
    padding: 2rem 0;
}

#footer a {
    color: grey;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

#footer a:hover {
    text-decoration: underline;
}


@keyframes rainbowBackground {
    0% { background-color: rgb(100, 0, 0); }
    8% { background-color: rgb(99, 64, 0); }
    16% { background-color: rgb(99, 99, 0); }
    25% { background-color: rgb(64, 99, 0); }
    33% { background-color: rgb(0, 100, 0); }
    41% { background-color: rgb(0, 100, 64); }
    50% { background-color: rgb(0, 100, 100); }
    58% { background-color: rgb(0, 64, 100); }
    66% { background-color: rgb(30, 30, 107); }
    75% { background-color: rgb(72, 26, 99); }
    83% { background-color: rgb(100, 0, 100); }
    91% { background-color: rgb(100, 0, 64); }
    100% { background-color: rgb(100, 0, 0); }
}

body.rainbow-alert {
    animation: rainbowBackground 10s linear infinite;
}

body.split-layout {
    display: flex;
    padding: 0;
    margin: 0;
    width: 100vw; 
    height: 100vh;
}

body.split-layout > div:first-child { 
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

#pdf-container {
    flex: 1;
    display: flex; 
    margin: 0; 
    padding: 0;
}

#pdf-container iframe {
    margin: 0;
    padding: 0;
}