﻿﻿html {
    position: relative;
    height: 100%;
}

body {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    height: 100%;
}

    body > .container {
        padding: 0;
    }



/*
    HEADER
*/
header {
    border-bottom: 2px solid var(--theme-border-color);
    height: var(--header-height);
    overflow: hidden;
}

    header .logo > img {
        height: calc(var(--header-height) - 0.5rem);
    }

    header .logo > span {
        font-size: 1.2rem;
        font-weight: 500;
        line-height: 4rem;
    }

    header #toggleMap {
        background-color: var(--theme-color);
        border-color: var(--theme-border-color);
        color: var(--theme-text-color);
        display: none;
        justify-content: space-between !important;
        margin-right: 2.5rem;
        padding: 0.2rem 0.5rem;
    }

        header #toggleMap > img {
            height: 1.2rem;
            margin-right: 0.4rem;
            vertical-align: -3px;
        }

    header .stop-name {
        justify-content: flex-end;
    }

        header .stop-name > div {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        header .stop-name h1 {
            display: flex;
            flex-direction: column;
            font-size: 1.7rem;
            font-weight: 300;
        }

            header .stop-name h1 span {
                color: #c5c5c5;
                font-size: 0.8rem;
                font-weight: 500;
                padding-left: 2px;
            }



/*
    INFO PANEL
*/
.info-panel {
    background-color: #EDEDED;
    bottom: 0;
    box-shadow: inset 0px 1px 1px 0px rgb(0 0 0 / 4%);
    border-top: 1px solid rgb(0 0 0 / 11%);
    height: 1.3rem;
    left: 0;
    position: absolute;
    width: 100%;
}

    .info-panel .spinner {
        line-height: 1.3rem;
    }

    .info-panel .spinner-border {
        animation-duration: 1s;
        border-width: 0.13rem;
        border-color: var(--theme-color);
        border-right-color: transparent;
        height: 0.8rem;
        width: 0.8rem;
    }

    .info-panel .timestamp {
        margin: 0;
        text-align: right;
        font-size: 0.8rem;
        line-height: 1.4rem;
    }



/*
    STOP
*/
#map {
    height: var(--map-height-default);
    width: 100%;
    height: 100%;
}

.vehicles-list {
    height: var(--map-height-default);
    list-style: none;
    overflow-y: auto;
    padding-bottom: 1.54em !important;
}

    .vehicles-list .no-results {
        font-size: 1.4em;
        font-weight: 300;
        line-height: 1.8em;
        background-color: #ededed;
    }

    .vehicles-list li.vehicle {
        background-color: #ececec;
        min-height: 90px;
        position: relative;
    }

        .vehicles-list li.vehicle:last-child {
            margin-bottom: 0 !important;
        }

        .vehicles-list li.vehicle span.overlay {
            border-style: solid;
            border-width: 2px;
            display: none;
            height: 100%;
            left: 0;
            pointer-events: none;
            position: absolute;
            top: 0;
            width: 100%;
            z-index: 100;
        }

        .vehicles-list li.vehicle.active span.overlay {
            display: block;
        }

        .vehicles-list li.vehicle > div > span {
            font-size: 0.8rem;
            font-weight: 500;
            color: #a5a5a5;
            padding-left: 1px;
        }

        .vehicles-list li.vehicle .line {
            text-align: center;
        }

            .vehicles-list li.vehicle .line > span {
                color: #FFFFFF;
            }

            .vehicles-list li.vehicle .line > div {
                font-size: 2.5em;
                font-weight: 500;
                text-align: center;
                line-height: 1.7em;
            }

        .vehicles-list li.vehicle .route > div {
            font-size: 1.1rem;
            line-height: 1.4rem;
        }

        .vehicles-list li.vehicle .departure {
            background-color: #747474;
            text-align: center;
        }

            .vehicles-list li.vehicle .departure > span {
                color: #c5c5c5;
            }

            .vehicles-list li.vehicle .departure > div {
                color: #FFFFFF;
                font-size: 2.4em;
                font-weight: 700;
                text-align: center;
                line-height: 1.5em;
            }

                .vehicles-list li.vehicle .departure > div span {
                    color: #c5c5c5;
                    display: block;
                    font-size: 0.8rem;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 0;
                }


        .vehicles-list li.vehicle.vplaceholder {
            background-color: #E7E7E7;
            opacity: 0.5;
        }

            .vehicles-list li.vehicle.vplaceholder .line {
                background-color: #B5B5B5;
            }

            .vehicles-list li.vehicle.vplaceholder > div > span {
                background-color: #CACACA;
                display: inline-block;
                min-height: 0.9em;
                width: 50%;
            }

            .vehicles-list li.vehicle.vplaceholder .line > div {
                background-color: #CACACA;
                min-height: 1.2em;
            }



            .vehicles-list li.vehicle.vplaceholder .route > div {
                background-color: #CACACA;
                min-height: 1.0em;
            }

            .vehicles-list li.vehicle.vplaceholder .departure > div {
                background-color: #CACACA;
                min-height: 1.4em;
            }


.markerInfo {
    font-weight: 500;
}

    .markerInfo span {
        font-weight: 700;
    }


.blink {
    animation: blink 2s linear infinite;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}


.blink-2 {
    animation: blink 2.5s ease-in-out infinite;
}

.blink-3 {
    animation: blink 3s ease-in-out infinite;
}


footer {
    background-color: #99a0a1;
}

    footer > div {
        color: #fff;
        font-size: 1rem;
        font-weight: 300;
        text-align: center;
    }

        footer > div img {
            height: 40px;
        }










/*
    MEDIA QUERIES
*/

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}





@media (max-width: 992px) {
    header .stop-name h1 {
        font-size: 1.5rem;
    }

        header .stop-name h1 span {
            font-size: 0.7rem;
        }


    #map {
        height: var(--map-height-992);
    }

    .mapRow > div, .mapRow > ul {
        max-width: 100%;
        flex: 0 0 100%;
    }


    .vehicles-list {
        height: calc(100vh - var(--header-height) - var(--map-height-992) - 4.1rem);
        padding-bottom: 0 !important;
    }

        .vehicles-list li.vehicle > div > span {
            font-size: 0.8rem;
            padding-left: 0;
        }

        .vehicles-list li.vehicle .departure > div {
            line-height: 3rem;
        }


    .info-panel {
        bottom: 2.7rem;
        position: fixed;
    }

        .info-panel .timestamp {
            font-size: 0.9em;
        }

    footer {
        position: fixed;
        bottom: 0;
        height: 2.7rem;
        left: 0;
        right: 0;
    }

        footer > div {
            font-size: 0.8rem;
        }

            footer > div img {
                height: 35px;
            }
}





@media (max-width: 768px) {
    header .stop-name h1 {
        font-size: 1.4rem;
    }


    #map {
        height: var(--map-height-768);
    }


    .vehicles-list {
        height: calc(100vh - var(--header-height) - var(--map-height-768) - 4.1rem);
    }
}





@media (max-width: 575.98px) {
    .mapRow {
        margin: 0;
    }

    #map {
        display: none;
    }

        #map.show {
            display: block;
        }

    header {
        height: var(--header-height-576);
    }

        header .logo {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-left: 1rem;
            margin-right: 1rem;
        }

            header .logo > img {
                height: calc(var(--header-height) - 0.7rem);
            }

        header .stop-name {
            background-color: var(--theme-color);
            color: var(--theme-text-color);
            justify-content: flex-start;
        }

        header #toggleMap {
            display: block;
        }

        header .stop-name h1 {
            font-size: 20px;
            padding: 0.5rem 0.6rem 0.2rem 0.6rem
        }

            header .stop-name h1 span {
                color: var(--theme-text-color);
                line-height: 0.7rem;
            }

    .vehicles-list {
        height: calc(100vh - var(--header-height-576) - 4.1rem);
    }

        .vehicles-list.with-map {
            height: calc(100vh - var(--header-height-576) - var(--map-height-768) - 4.1rem);
        }
}
