/* get the required local files */
@font-face {
    font-family: 'Roboto-Regular';
    src: url('../../../include/css/roboto/Roboto-Regular.ttf');
}

@font-face {
    font-family: 'Roboto-Medium';
    src: url('../../../include/css/roboto/Roboto-Medium.ttf');
}

@font-face {
    font-family: 'Roboto-Light';
    src: url('../../../include/css/roboto/Roboto-Light.ttf');
}

@font-face {
    font-family: 'Roboto-Thin';
    src: url('../../../include/css/roboto/Roboto-Thin.ttf');
}

/* use the font */
html, body {
    font-family: 'Roboto-Regular';
    /*font-size: 48px;*/
}

img {
    vertical-align: baseline;

}

.display_none{
    display:none;
}

html, body{
    height: 100%; 
    margin: 0;
}
body {
    display: flex;
    /*min-height: 100vh;*/
    overflow: hidden;
    flex-direction: column;
}

.main-container{
    height: 100%;
}

.run_icon{
    animation-name: slidein;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    color:#e53935;
}

@keyframes slidein {
    0%{
    font-size:25px;
  }
  50%{
    font-size:35px;
  }
  100% {
    font-size:25px;
  }
}

main {
    flex: 1 0 auto;
    height: calc(100% - 205px);
    margin: 5px;
}

table{
    max-height: 100%;
    min-height: 50%;
/*    height: 100%;*/
    font-size: calc(1.75em  + 1vmin);
}
.nowrap{
    white-space: nowrap;
}
.nav-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-wrapper > div{
    text-align: center;
}

#display-header-logo {
    margin-left: 20px;
    float: left;
    height: 95%;
    background-repeat: no-repeat;
    background-size: cover;
}

#add_logo_src{
    width: auto;
    height: 100%;
}


.navbar-fixed{
    height:120px;
    font-size: calc(2em  + 1vmin);
}

.navbar-fixed > nav{
    height: 120px;
    line-height: 50px
}

#display-header-datetime {
    margin-right: 20px;
}

#display-header-datetime-date-just {
    font-family: 'Roboto-Light';
    font-size: calc(0.4em  + 1vmin);
    text-shadow: 3px 3px 10px #34416f;
}

#display-header-datetime-time-just{
    font-family: 'Roboto-Light';
    text-shadow: 3px 3px 10px #34416f;
}

#display-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    padding-left: 20px;
    align-items: center;
}

.nav-wrapper, #display-footer {
    color: var(--header_and_footer_text_color);
    width: 100%;
    background: var(--header_and_footer_color);
}

p {
    margin:0 !important
}

#display-footer-text-div, #display-footer-icon {
    width: 90%;
}

#display-footer-news {
    width: 12rem;
}

#fullscreen-toggler{
    display: grid;
    grid-row-gap: 6px;
}


#no_departures {
    height: 100%;
    background-color: rgba(188, 188, 188, 0.5);
    font-size: calc(2em  + 1vmin);
    display:flex;
    align-items: center;
    justify-content: center;
}

#my_video_ads{
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
}

#my_video_ads-while-news{
    position: fixed;
    width: 100%;
    height: calc(100% - 100px);
    top: 0;
}

#my_video_ads-while-news video{ 
    position: absolute; 

    width: 100%;
    height: 100%;
    overflow-y:scroll;
}

#display-youtube-video-ads-while-news{
    position:fixed;
    width: 100%;
    height: 100%;
    bottom: 160px;

}

iframe{
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
}

#add_images_src {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
}
#add_images_src img {
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    margin: auto; 
    min-width: 50%;
    min-height: 50%;
}

#add_images_src-while-news {
    position: fixed;
    top: 0;
    width: 100%;
    height: calc(100% - 100px);
}


#display-header-station, #display-error-message {
    /*line-height: 2;*/
    text-shadow: 3px 3px 10px #34416f;
}

#display-header-main{
    display:grid;
}

#display-error-message {
    padding-top: 150px;
    color:black;
}



#display-header-datetime-time {
    text-shadow: 3px 3px 10px #34416f;
}

#display-header-datetime-time-just {
    text-shadow: 3px 3px 10px #34416f;
}

#display-header-datetime-date {
    font-family: 'Roboto-Light';
    font-size: calc(0.4em  + 1vmin);
    text-shadow: 3px 3px 10px #34416f;
    line-height: 0;
}

#not_active{
    position:fixed;
    padding:0;
    margin:0;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background:rgba(255,255,255,0.5);
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;

}

#not_active_while_news{
    position: fixed;
    display: flex;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    background: rgba(255,255,255,0.5);
    background-color: black;
    justify-content: center;
    align-items: center;

}

#not_active p{
    text-align: center;
    color: white;
    font-size: 350%;
}

#not_active_while_news p{
    text-align: center;
    color: white;
    font-size: 350%;
}

#display-footer-text-div{
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}
.marquee p {
    display: inline-block;
    padding-left: 100%;

}

/*.marquee canvas {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 60s linear infinite;
}*/
@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

#display-footer-icon {
    position: absolute;
    left: 320px;
}


#display-footer-text-div, #display-header-datetime-date, .display-body-row-time {
    font-weight: normal;
}

#display-error-message {
    background-color: #CCC;
    text-align: center;
}

@media  only screen and (max-width:800px) {

    #display-header-logo > img {
        width: inherit;
        height: inherit;
    }
    
    .nowrap{
        white-space: normal;
    }

    #display-header-datetime{
        display: none !important;
/*        height: unset;
        float: unset;
        margin-right: unset;*/
    }

    #display-header-logo {
        display: none;
/*        margin-left: 5px;
        width: 50px;
        height: auto;
        background-repeat: no-repeat;
        background-size: cover;*/
    }
    
    .nav-wrapper{
        justify-content: center;
    }
    
    #show_pages_num{
        line-height: normal;
    }

    .navbar-fixed > nav{
        font-size: 25px;
    }
    
    .navbar-fixed{
        font-size: 25px;
    }
    
    table{
        font-size: 17px;
    }
    
    #display-footer{; 
        display: inline-grid;
        grid-template-columns: 120px  auto;
        padding-left: 0;
        height: 60px;
    }
    
    table{
        margin-bottom: 60px;
    }
    

    #display-footer-news {
        font-family: 'Roboto-Medium';
        margin-right: unset;
        padding-left: 10px;
        width:unset;

    }
    #display-header-datetime-date{
            line-height: 1;
    }


    #not_active_while_news{
        padding:0;
        margin:0;
        top:0;
        left:0;
        width: 100%;
        height: -webkit-fill-available;
        background:rgba(255,255,255,0.5);
        background-color: black;
        height: calc(100% - 60px);

    }

    #display-header-datetime-date-just {
        padding-top: unset;
    }
    #display-header-datetime-time-just {
        padding-top: unset;
    }

    #display-header-station, #display-error-message {
        line-height: normal;
        text-shadow: 3px 3px 10px #34416f;
    }


    #my_video_ads-while-news{
       height: calc(100% - 60px);
    }

    #add_images_src {
        position: fixed; 
        width: 100%;
        background-size: unset;
        padding-top: 55%;
        background-color: black;
        padding-bottom: 55%;
    }
    #add_images_src img {
        position: absolute; 
        top: 0; 
        left: 0; 
        right: 0; 
        bottom: 0; 
        margin: auto; 
        min-width: 50%;
        min-height: 50%;
    }

    #add_images_src-while-news {
        position: fixed;
        top: 0;
        width: 100%;
        height: calc(100% - 60px);
    }


    #display-youtube-video-ads-while-news{
        width: 100%;
        height: 100%;
        bottom: 50px;
        position:fixed;
    }

}

@media screen and (min-width: 460px) and (max-width: 900px) and (orientation: landscape) {



    #display-header-logo > img {
        width: inherit;
        height: inherit;
    }

    #display-header-datetime{
        height: unset;
        float: unset;
        margin-right: unset;
    }

    #display-header-logo {
        margin: 10px;
        float: left;
        width: 30px;
        height: auto;
        background-repeat: no-repeat;
        background-size: cover;
        align-self: center;
    }
    
     #show_pages_num{
        line-height: normal;
    }
    
    .navbar-fixed > nav{
        font-size: 25px;
    }
    
    .navbar-fixed{
        font-size: 25px;
    }
    
    table{
        font-size: 17px;
    }

    #display-footer{; 
        display: inline-grid;
        grid-template-columns: 120px  auto;
        padding-left: 0;
        height: 60px;
    }

    table{
        margin-bottom: 60px;
    }
    
    #display-footer-news {
        font-family: 'Roboto-Medium';
        margin-right: unset;
        padding-left: 10px;
        padding-top: unset;
         width:unset;
    }


    #not_active_while_news{
        padding:0;
        margin:0;
        top:0;
        left:0;
        width: 100%;
        height: -webkit-fill-available;
        background:rgba(255,255,255,0.5);
        background-color: black;
        height: calc(100% - 60px);

    }

    #display-header-datetime-date-just {
        padding-top: unset;
    }
    #display-header-datetime-time-just {
        padding-top: unset;
    }

    #display-header-station, #display-error-message {
        line-height: normal;
        text-shadow: 3px 3px 10px #34416f;
    }

    #add_images_src {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: usnet;
        background-size: unset;
        padding-top: unset;
        background-color: unset;
        padding-bottom: unset;
    }

    #add_images_src-while-news {
        position: fixed;
        top: 0;
        width: 100%;
        height: calc(100% - 60px);
    }

    #my_video_ads-while-news{
        height: calc(100% - 60px);  
    }

    #display-youtube-video-ads-while-news{
        width: 100%;
        height: 100%;
        bottom: 50px;
        position:fixed;
    }

}

