/* Fonts */

@font-face {
    font-family: 'FS Millibank';
    src: url('./_fonts/FSMillbankWeb-Light.woff') format('woff'), url('./_fonts/FSMillbankWeb-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'FS Millibank';
    src: url('./_fonts/FSMillbankNegativeWeb-Light.woff') format('woff'), url('./_fonts/FSMillbankNegativeWeb-Light.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'FS Millibank';
    src: url('./_fonts/FSMillbankWeb-Regular.woff') format('woff'), url('./_fonts/FSMillbankWeb-Regular.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'FS Millibank';
    src: url('./_fonts/FSMillbankWeb-Heavy.woff') format('woff'), url('./_fonts/FSMillbankWeb-Heavy.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'FS Millibank';
    src: url('./_fonts/FSMillbankNegativeWeb-Heavy.woff') format('woff'), url('./_fonts/FSMillbankNegativeWeb-Heavy.woff') format('woff2');
    font-weight: 700;
    font-style: normal;
}

body,
html {
    width: 384px;
    height: 280px;
    font-size: 9pt;
    font-family: "FS Millibank", sans-serif;
    color: white;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #1c304e;
    margin: 0;
}

.title-area {
    display: flex;
    flex-wrap: wrap;
    height: 62px;
}

.img-area {
    width: 46px;
    height: 46px;
    padding-left: 70px;
    padding-top: 6px;
}

.title-text {
    font-size: xx-large;
    font-weight: bold;
    padding-top: 15px;
}

.title-area-child {
    width: 100%;
    flex: 0 32%;
}

.error {
    color: red;
}

.uppercase {
    text-transform: uppercase;
}

.light {
    font-weight: 300;
}

.hidden {
    visibility: hidden !important;
}

.main {
    position: relative;
    max-height: 36px;
}

ul {
    list-style: none;
    margin: 0;
    margin-left: 0;
    padding-left: 0;
    position: absolute;
    display: inline-block;
    width: calc(100% - 37px);
    margin-bottom: 0;
    overflow: hidden;
    /* height: 36px; */
}

ul li {
    height: 18px;
    width: 347px;
    background-color: #2f466d;
    position: relative;
    font-weight: 200;
}

li.first:nth-child(2n+1) {
    background-color: #2f466d;
}

li.first {
    background-color: #1c304e;
    /* z-index: 10; */
}

li.first.transitioning::after {
    position: absolute;
    /* content: ' '; */
    width: 100%;
    height: 100%;
    background-color: #2f466d;
    bottom: -18px;
    right: 0;
    z-index: 499;
}

li.first.transitioning.empty-last::after {
    background-color: #1c304e;
}


/* li.first .text:nth-child(2),
li.first .text:nth-child(3) {
    opacity: 0;
    z-index: 500;
    margin-bottom: -1px;
} */

li.animated .text {
    background-color: #2f466d;
}

li .bus-number {
    display: inline-block;
    width: 40px;
    text-align: center;
    margin-left: -2px;
    margin-right: 1px;
    font-weight: bold;
}

li .arrow {
    float: right;
    padding-left: 0;
    font-weight: 200;
}

li .destination {
    padding-left: 4px;
}

.text {
    display: inline-block;
    position: relative;
    width: 100%;
    line-height: 14px;
    padding: 2px 0;
    padding-top: 3px;
}

.text b {
    text-align: right;
    display: inline-block;
    position: absolute;
    right: 15px;
    font-weight: bold;
}

.logo {
    display: inline-block;
    height: 100%;
    padding: 5px 7px;
    padding-left: 15px;
}

.number-area {
    padding-right: 55px;
}

.min-area {
    padding-right: 29px;
}

.logo img {
    max-height: 22px;
    margin-top: 2px;
}

.dots {
    font-size: 12px;
    line-height: 2px;
    position: absolute;
    z-index: 200;
    right: 17px;
    padding-top: 1px;
    bottom: 4px;
}

.platform-area {
    padding-right: 2px;
}

.dots.two-dots {
    bottom: 2px;
}

.dots.dots.two-dots .dot-active {
    margin-top: 3px;
}

.dot {
    border-radius: 100px;
    background-color: white;
    height: 2px;
    width: 2px;
    display: inline-block;
    position: relative;
}

.dot.dot-hidden {
    visibility: hidden;
}

.dot.dot-active {
    margin-top: 2px;
    border: 1px solid white;
    background-color: #2f466d;
    margin-left: -1px;
    z-index: 2;
    bottom: -1px;
}

.incoming {
    animation: slide-up .6s linear;
}

@keyframes slide-up {
    from {
        padding-top: 20px;
    }
    to {
        padding-top: 3px;
    }
}

.fade-in {
    animation-name: fade-in;
    animation-duration: 2s;
    animation-timing-function: ease-in;
}

@keyframes fade-in {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

.fade-out {
    animation-name: fade-out;
    animation-duration: 0.5s;
    animation-timing-function: ease-out;
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}