@font-face {
    font-family: 'Parisine';
    src: url('./font/Parisine-Italic.eot');
    src: url('./font/Parisine-Italic.eot?#iefix') format('embedded-opentype'),
        url('./font/Parisine-Italic.woff2') format('woff2'),
        url('./font/Parisine-Italic.woff') format('woff'),
        url('./font/Parisine-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Parisine';
    src: url('./font/Parisine-Bold.eot');
    src: url('./font/Parisine-Bold.eot?#iefix') format('embedded-opentype'),
        url('./font/Parisine-Bold.woff2') format('woff2'),
        url('./font/Parisine-Bold.woff') format('woff'),
        url('./font/Parisine-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parisine';
    src: url('./font/Parisine-Regular.eot');
    src: url('./font/Parisine-Regular.eot?#iefix') format('embedded-opentype'),
        url('./font/Parisine-Regular.woff2') format('woff2'),
        url('./font/Parisine-Regular.woff') format('woff'),
        url('./font/Parisine-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parisine';
    src: url('./font/Parisine-BoldItalic.eot');
    src: url('./font/Parisine-BoldItalic.eot?#iefix') format('embedded-opentype'),
        url('./font/Parisine-BoldItalic.woff2') format('woff2'),
        url('./font/Parisine-BoldItalic.woff') format('woff'),
        url('./font/Parisine-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}


body {
    font-family: "Parisine", "Trebuchet MS", "Helvetica", sans-serif;
    font-size: 14px;
    margin: 0px;
    overflow: hidden;
    background: black;
    color: white;
    cursor: default;
}

body.indexof {
    overflow: auto !important;
}

#background {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: -100;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

    @keyframes dotAnimation {
        0% {
            opacity: 0.4;
        }

        10% {
            opacity: 1;
        }

        100% {
            opacity: 0.4;
        }
    }

    #background .dot {
        display: block;
        width: 45px;
        height: 45px;
        border-radius: 45px;
        background: #333333;
        animation-name: dotAnimation;
        animation-duration: 3s;
        animation-iteration-count: infinite;
    }

    #background .dot:nth-child(1) { animation-delay: 0s; }
    #background .dot:nth-child(2) { animation-delay: 0.4s; }
    #background .dot:nth-child(3) { animation-delay: 0.8s; }

#main {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

    #banner {
        background-color: white;
        color: black;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        height: 50px;
    }

        #banner #line {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
        }
        
            #banner #line_logo {
                width: 46px;
                height: 46px;
                margin: 2px;
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
            }

            #banner #line_logo img {
                display: none;
            }

            .bus        #banner #line_logo .logo-bus { display: block; }
            .metro      #banner #line_logo .logo-metro { display: block; }
            .rer        #banner #line_logo .logo-rer { display: block; }
            .tram       #banner #line_logo .logo-tram { display: block; }
            .transilien #banner #line_logo .logo-transilien { display: block; }


            #banner #line_identifier {
                margin: 2px;
                width: 46px;
                height: inherit;
                display: block;
            }
            
            #banner #line_identifier_label {
                display: table-cell;
                text-align: center;
                vertical-align: middle;
                font-size: 34px;
                font-weight: bold;
            }
            .bus        #banner #line_identifier { width: auto; }
            .bus        #banner #line_identifier_label { height: 46px; padding: 0px 12px; }
            .rer        #banner #line_identifier { border-radius: 8px; }
            .rer        #banner #line_identifier_label { width: inherit; height: 46px; font-size: 30px; }
            .tram       #banner #line_identifier { width: auto; border-radius: 4px; padding: 4px 0px; }
            .tram       #banner #line_identifier_label { height: 38px; padding: 0px 10px; background: white; color: black !important; }
            .transilien #banner #line_identifier { border-radius: 12px; }
            .transilien #banner #line_identifier_label { width: inherit; height: 46px; }
            .metro      #banner #line_identifier { border-radius: 46px; }
            .metro      #banner #line_identifier_label { width: inherit; height: 46px; font-size: 32px; }

        #banner #stopname {
            padding: 0px 12px;
            text-align: left;
            font-size: 28px;
            font-weight: bold;
            width: 100%;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }

        #banner #clock {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            height: inherit;
            align-items: center;
            background: black;
            color: yellow;
            padding: 0px 12px;
        }

            .hideclock #clock {
                display: none !important;
            }

            #banner #clock > * {
                font-size: 30px;
            }

            #banner #clock_separator {
            }



    #nextVehicles {
        flex-grow: 1;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
    }

        #nextVehicles > * {
            flex-grow: 1;
        }

        #nextVehicles .vehicle {
            flex-basis: 0;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background-color: black;
            cursor: pointer;
            overflow: hidden;
            flex-grow: 0;
            opacity: 0;
            border-left-width: 0px;
            border-right-width: 0px;
            border-left-style: solid;
            border-right-style: solid;
            border-color: transparent;
            transition: border-color 2s, border-right-width 2s, border-left-width 2s, background-color .5s, flex-grow 2s, opacity 2s;
            animation: vehicleAppear 2s ease;
        }

        @keyframes vehicleAppear {
            from {
              opacity: 0;
              flex-grow: 0;
            }
            to {
              opacity: 1;
              flex-grow: 1;
            }
          }

        #nextVehicles .visible {
            flex-grow: 1;
            opacity: 1;
            border-color: #555;
            border-left-width: 1px;
            border-right-width: 1px;
        }

        .vehicle.hide {
            flex-grow: 0 !important;
            opacity: 0 !important;
            border-color: transparent;
            border-left-width: 0px;
            border-right-width: 0px;
        }

        .vehicle.filtered {
            display: none !important;
        }

            .vehicle .vehicleTitle {
                display: none;
            }

            .vehicle .vehicleWait {
                transition: color .3s;
                flex-grow: 1;
                color: yellow;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
            }

                .vehicleWait > .container {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    justify-content: center;
                    align-items: baseline;
                }

                    .vehicleWait_value {
                        font-size: 200px;
                        font-weight: bold;
                    }

                    .vehicleWait_unit {
                        font-size: 50px;
                        opacity: .6;
                    }

        .vehicle.follow {
            background-color: yellow !important;
        }

            .vehicle.follow .vehicleWait {
                color: black !important;
            }


#indexOf h1 {
    text-align: center;
}

#indexOf ul {
    display: flex;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#indexOf ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid white;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: opacity .3s;
}

    #indexOf ul a .line {
        font-size: 20px;
        padding: 4px;
        border-radius: 4px;
    }

    #indexOf ul a .name {
        font-size: 30px;
    }

    #indexOf ul:has(a:hover) a {
        opacity: .5;
    }

    #indexOf ul li a:hover {
        opacity: 1;
    }

@media (max-width: 1200px) {
    .vehicleWait_value {
        font-size: 170px;
    }

    .vehicleWait_unit {
        font-size: 40px;
    }
}

@media (max-width: 1000px) {
    #banner #stopname {
        font-size: 25px;
    }

    .vehicleWait_value {
        font-size: 120px;
    }

    .vehicleWait_unit {
        font-size: 30px;
    }
}

@media (max-width: 800px) {
    #banner #stopname {
        font-size: 24px;
    }

    .vehicleWait_value {
        font-size: 70px;
    }

    .vehicleWait_unit {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    #banner #stopname {
        font-size: 20px;
    }

    .vehicleWait_value {
        font-size: 50px;
    }

    .vehicleWait_unit {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .vehicleWait_value {
        font-size: 35px;
    }

    .vehicleWait_unit {
        font-size: 10px;
    }
}

@media (max-width: 350px) {
    #banner #stopname {
        visibility: hidden;
    }
}

@media (max-width: 250px) {
    #banner {
        display: none;
    }
}

@media (max-height: 300px) {
    .vehicleWait_value {
        font-size: 160px;
    }

    .vehicleWait_unit {
        font-size: 40px;
    }
}

@media (max-height: 250px) {
    .vehicleWait_value {
        font-size: 120px;
    }

    .vehicleWait_unit {
        font-size: 30px;
    }
}

@media (max-height: 200px) {
    .vehicleWait_value {
        font-size: 80px;
    }

    .vehicleWait_unit {
        font-size: 20px;
    }
}

@media (max-height: 150px) {
    .vehicleWait_value {
        font-size: 60px;
    }

    .vehicleWait_unit {
        font-size: 15px;
    }
}