#content {
    background-color: white;
}
.cerca-treno{
    position : absolute;
    right: 0px;
    left : 0px;
}

.inputBasso{
    top : 0px;
}
#refreshPage img{
    width : 32px;
    position : absolute;
    top: 7px;
    right: 10px;
    cursor: pointer;
}
#mappaPage img { 
    width : 28px;
    height: 30px;
    position : absolute;
    top: 7px;
    right: 80px;
    cursor: pointer;
}
#preferitiPage img { 
    width : 28px;
    height: 28px;
    position : absolute;
    top: 7px;
    right: 45px;
    cursor: pointer;
}
#legendaPop{
    position : absolute;
    height : auto;
    top : 2px;
    right: 0px;
    left : 0px;
    text-align: right;
    padding-right : 10%!important;
}

#loader img {
    height: 64px;
    margin: 225px auto;
    width: 64px;
}
#loader {
    display: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    color: white;
    font-size: 2em;
    text-align: center;
    vertical-align: middle;
}
#risultatiHandlebars{
    position : absolute;
    bottom : 0px;
    right: 0px;
    left : 0px;
}
.large{
    top : 210px;
}
.small{
    top: 78px; 
}
#partenze-arrivi{
    position : absolute;
    height : 45px;
    top : 52px; 
    right: 0px;
    left : 0px;
}
.ris{
    position : absolute;
    top : 0px;
    bottom : 0px;
    right: 0px;
    left : 0px;
}
#inputCercaTreno.inputAlto div.ui-input-search{
    margin:0 !important;
}

.ui-input-search{
    height : 43px;
}
.ui-autocomplete{
    height: 160px;
    width : 50%;
    overflow-y: auto;
    overflow-x: hidden;
    font-size : 14pt;
    background: white !important;
    color : black;
}
.align-center{
    height: 45px;
    background-color: #f7f7f7;
    color: black;
    vertical-align: middle;
    text-align: center;
    padding-top : 20px;
    border : 1px solid #9d9d9d;
}
.font-orange{
    color : orange;

}
.font-red {
    color: #c41228;

}
.font-yellow{
    color : yellow;
}
.font-green{
    color : green;
}
.capitalize{
    text-transform: capitalize!important;
}
.bold-text{
    font-weight : bold;
}
.ui-btn{
    margin-left: 30%!important;
}
.ui-helper-hidden-accessible {
    visibility: hidden;
}
.info {
    background-color: white;
}

.news {
    background-color: white;
    font-size: 0.8em;
    margin: 10px 0 10px 0;
    display: flex;
    justify-content: start;
}

.news-button {
  	display: inline-block;
  	text-decoration: none;
    border-radius: 4px;
    height: 30px;
    line-height: 30px;
    background-color: #c41228;
    border: 1px solid #910800;
    padding: 0 15px 0 15px;
    margin: 0 5px 0 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.news-button span {
    color: white;
}

.news-button:active {
    background-color: #910800;
    border: 1px solid #c41228;
}

.bottone1 , .bottone2 {
    text-align : center;
    border-radius: 7px;
    position : absolute;
    width: 200px!important;
    height: 5%!important;

}
.ui-input-btn {
    color : white!important;
    padding-top: 2px!important;
    padding-bottom: 2px!important;
}

#btn1 {

    margin-left: 100px!important;
}
#btn2 {
    color : white;
    margin-left: 350px!important;
}
#primoDiv{
    position: relative;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}
#altriDiv {
    position: relative;
    bottom: 0px;
    left: 0px;
    right: 0px;
}
#dati-treno-popup {
    max-height: 160px;
    overflow: auto;
}

#dati-treno {
    font-size: 0.7em;
    margin-top: 5px;
    width: 100%;
}
.icon-corrispondenze{
    width: 45%;
}
#dettFermate{

    width : 100%;
    text-align: left;
}
#fermate{
    text-align: left;
}
.largeForStazioni{
    top : 92px;
}
#dettStazione, #dettStazione1{
    width : 100%;
    text-align: left;
    border-top : 1px solid #9d9d9d;
}
#altriDivSta a:nth-child(odd) table,  #altriDivSta1 a:nth-child(odd) table{
    background-color: #f7f7f7!important;

}
#altriDivSta a:nth-child(even) table, #altriDivSta1 a:nth-child(even) table{
    background-color: white!important;
}
#dettagli a:nth-child(odd) table{
    background-color: white!important;
}
#dettagli a:nth-child(even) table{
    background-color: #f7f7f7!important;
}
#altriDivSta, #altriDivSta1{

    background-color: #f7f7f7;
}
.lunghezza-percorso{
    width: 50px!important;
    height: 40px;
}
.image-percorso{
    width: 100%;

}
.firstChild{
    width: 61%;
}

#dettFermate td{
    display : inline-block;
}

/* panel */
.ui-panel {
    width : 93%;
    background: #f7f7f7 !important;
    color: white!important;
}
#dettCorrispondenze, #stazioneCorrente{
    background-color: white;
    width: 100%;
    color : black;
    border-top: 1px solid #9d9d9d;
    border-left: 1px solid #9d9d9d;
    border-right: 1px solid #9d9d9d;

}
#stessaRiga{
    display: inline-block;
    white-space: nowrap;

}

/* preferiti */

#listaPref{
    position : absolute;
    top : 70px;
    bottom : 0px;
    right: 0px;
    left : 0px;
}
.stellaPreferiti{
    height: 50%!important;
}

#prefStazioni, #preferitiTreni tr{
    text-align: left;
    font-size: 14pt;
}
.stellaPrefStazioni{
    height: 62%!important;
}

/*fine preferiti */

/* panel */

/*POPUP*/

a.buttonClose {
    /* styles for button */
    text-align:center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    float:right;
    display:block;
    width: 50px;
    background-color: #c41228;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(0,0,0,0.25);
    cursor: pointer;
}

.titoloPopup{
    display: inline-block;
    float: left;
    font-size: 14pt !important;
}

/*FINE POPUP*/

/*POPUP LEGENDA*/

#popupLegenda{
    background-color: white!important;
    overflow-y: scroll;
}
.legenda {
    background-color: white;
    margin-top: 20px;
    font-size: 0.8em;
}

.contenuto-legenda {

    background-color: white!important;
    padding: 0 15px;
}

.legenda ul {
    padding: 0;
}

.legenda li {
    display: block;
    font-size: 0.8em;
    list-style: none;
    margin-bottom: 5px;
}

.legenda img {
    margin-right: 5px;
    vertical-align: middle;
    width: 12px;
}

.colonna-legenda {
    float: left;
    margin-right: 6px;
    width: 100%;
}

/* FINE POPUP LEGENDA*/

/*POPUP ALERT RITARDO*/

.contenuto-alert-ritardo
{
    margin-top: 15px;
    margin-right: 15px;
}

.contenuto-alert-ritardo p
{
    margin: 0 0 20px 20px;
    font-size: 14px;
}

.contenuto-alert-ritardo p.red
{
    color: #e21c41;
    font-weight: bold;
}

/*FINE POPUP ALERT RITARDO*/

.button-disabled {
    background-color: #c41228!important;
    opacity: 0.6!important;
}
.button-enabled {
    background-color: #c41228!important;
    opacity: 1!important;
}

.ui-input-search {
    border-radius: 20px!important;
}
.favourites {
    height: 18px;
    width: 18px;
}
.favouritesTestata {
    height: 20px;
    width: 20px;
}

.ui-popup-container {
    top: 10px!important;
    left: 10%!important;
    width: 80%!important;
}

.ui-input-text{
    height : 45px!important;
    border-radius: 20px!important;
}

#imgAlertRitardo
{
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.valignmiddle span, .valignmiddle img, .valignmiddle a
{
    vertical-align: middle !important;
}

@media screen and (orientation:portrait) {

    #nav-panel {
        height: 480px;
        overflow-y: auto;
    }
    #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
        font-size: 10pt;
    }
    #prefStazioni, #preferitiTreni tr,  #legendaPop{
        font-size: 10pt;
    }
    .stellaPreferiti,.stellaPrefStazioni{
        height: 50%!important;
    }
    .colonna-legenda span{
        font-size : 12px;
    }
    .space-pannel{
        padding-left: 2%;
    }
    .ui-btn{
        margin-left: 0px!important;
    }
    .inputAlto{
        top : 22px;
    }

    @media screen and (max-width:330px) {
        .ui-li-static {
            font-size: 12pt!important;   
        }

        .space-pannel{
            padding-left: 1%;
        }

        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 9pt!important;
        }
    }

    @media screen and (min-width:331px) and (max-width:380px){
        .ui-li-static {
            font-size: 12pt!important;   
        }

        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 10pt!important;
        }
    }

    @media screen and (min-width:381px) and (max-width:400px){
        .ui-li-static {
            font-size: 12pt!important;   
        }


    }

    @media screen and (min-width:401px) and (max-width:450px){
        .ui-li-static {
            font-size: 13pt!important;   
        }
    }


    @media screen and (max-height:480px) {

        #nav-panel {
            height: 480px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 10pt;
        }
        #prefStazioni, #preferitiTreni tr,  #legendaPop{
            font-size: 10pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 50%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }

        .ui-btn{
            margin-left: 0px!important;
        }
        .inputAlto{
            top : 22px;
        }
    }
    @media screen and (min-height:481px) and (max-height:570px) {
        
        #nav-panel {
            height: 570px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 10pt;
        }
        #prefStazioni, #preferitiTreni tr, #legendaPop{
            font-size: 10pt;
        }
        .colonna-legenda span{
            font-size : 12px;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 50%!important;
        }

        .ui-btn{
            margin-left: 0px!important;
        }
        .inputAlto{
            top : 22px;
        }
    }
    @media screen and (min-height:571px) and (max-height:640px) {
       
        #nav-panel {
            height: 640px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 12pt;
        }
        #prefStazioni, #preferitiTreni {
            font-size: 12pt;
        }
        .legenda li{
            font-size: 16pt;
        }
        #legendaPop {
            font-size: 12pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 50%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }

        .ui-btn{
            margin-left: 0px!important;
        }
        .inputAlto{
            top : 24px;
        }
    }
    @media screen and (min-height:641px) and (max-height:753px) {
        
        #nav-panel {
            height: 753px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 13pt;
        }
        #prefStazioni, #preferitiTreni tr {
            font-size: 14pt;
        }
        .legenda li span{
            font-size: 18pt;
        }
        #legendaPop {
            font-size: 14pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 54%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }

        .ui-block-b div {
            width: auto;
        }
        .inputAlto{
            top : 26px;
        }
    }
    @media screen and (min-height:754px) and (max-height:960px) {
        
        #nav-panel {
            height: 960px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 13pt;
        }
        #prefStazioni, #preferitiTreni tr {
            font-size: 14pt;
        }
        .legenda li span{
            font-size: 18pt;
        }
        #legendaPop {
            font-size: 14pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 56%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }

        .ui-block-b div {
            width: auto;
        }
        .inputAlto{
            top : 26px;
        }
    }
    @media screen and (min-height:961px) and (max-height:1024px) {
        
        #nav-panel {
            height: 1024px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 14pt;
        }
        #prefStazioni, #preferitiTreni tr{
            font-size: 14pt;
        }
        .legenda li span{
            font-size: 18pt;
        }
        #legendaPop {
            font-size: 16pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 56%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }

        .ui-block-b div {
            width: auto;
        }
        .inputAlto{
            top : 28px;
        }
    }
    @media screen and (min-height:1025px) and (max-height:1280px) {
        
        #nav-panel {
            height: 1280px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1,#dettFermate{
            font-size: 20pt;
        }
        #prefStazioni, #preferitiTreni tr{
            font-size: 16pt;
        }
        .legenda li span{
            font-size: 20pt;
        }
        #legendaPop {
            font-size: 16pt;
        }
        .colonna-legenda span{
            font-size : 16px;
        }

        .ui-block-b div {
            width: auto;
        }
        .inputAlto{
            top : 28px;
        }
    }
}

@media screen and (orientation:landscape) {
    
    #nav-panel {
        height: 480px;
        overflow-y: auto;
    }
    #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
        font-size: 10pt;
    }
    #prefStazioni, #preferitiTreni tr,  #legendaPop{
        font-size: 10pt;
    }
    .stellaPreferiti,.stellaPrefStazioni{
        height: 50%!important;
    }
    .colonna-legenda span{
        font-size : 12px;
    }
    .space-pannel{
        padding-left: 2%;
    }
    .ui-btn{
        margin-left: 0px!important;
    }
    .inputAlto{
        top : 22px;
    }

    @media screen and (max-width:480px) {
        
        #nav-panel {
            height: 480px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 10pt;
        }
        #prefStazioni, #preferitiTreni tr,  #legendaPop{
            font-size: 10pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 50%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }
        .space-pannel{
            padding-left: 2%;
        }
        .ui-btn{
            margin-left: 0px!important;
        }
        .inputAlto{
            top : 22px;
        }
    }
    @media screen and (min-width:481px) and (max-width:570px) {
        
        #nav-panel {
            height: 570px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 10pt;
        }
        #prefStazioni, #preferitiTreni tr, #legendaPop{
            font-size: 10pt;
        }
        .colonna-legenda span{
            font-size : 12px;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 50%!important;
        }
        .space-pannel{
            padding-left: 2%;
        }
        .ui-btn{
            margin-left: 0px!important;
        }
        .inputAlto{
            top : 22px;
        }
    }
    @media screen and (min-width:571px) and (max-width:640px) {
        
        #nav-panel {
            height: 640px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 12pt;
        }
        #prefStazioni, #preferitiTreni {
            font-size: 12pt;
        }
        .legenda li{
            font-size: 16pt;
        }
        #legendaPop {
            font-size: 12pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 50%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }
        .space-pannel{
            padding-left: 2%;
        }
        .ui-btn{
            margin-left: 0px!important;
        }
        .inputAlto{
            top : 24px;
        }
    }
    @media screen and (min-width:641px) and (max-width:753px) {
        
        #nav-panel {
            height: 753px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 14pt;
        }
        #prefStazioni, #preferitiTreni tr{
            font-size: 14pt;
        }
        .legenda li span{
            font-size: 18pt;
        }
        #legendaPop {
            font-size: 14pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 54%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }
        .space-pannel{
            padding-left: 2%;
        }
        .ui-block-b div {
            width: auto;
        }
        .inputAlto{
            top : 26px;
        }
    }
    @media screen and (min-width:754px) and (max-width:960px) {
        
        #nav-panel {
            height: 960px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 14pt;
        }
        #prefStazioni, #preferitiTreni tr{
            font-size: 14pt;
        }
        .legenda li span{
            font-size: 18pt;
        }
        #legendaPop {
            font-size: 14pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 56%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }
        .space-pannel{
            padding-left: 2%;
        }
        .ui-block-b div {
            width: auto;
        }
        .inputAlto{
            top : 26px;
        }
    }
    @media screen and (min-width:961px) and (max-width:1024px) {
        
        #nav-panel {
            height: 1024px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1, #dettFermate{
            font-size: 14pt;
        }
        #prefStazioni, #preferitiTreni tr{
            font-size: 14pt;
        }
        .legenda li span{
            font-size: 18pt;
        }
        #legendaPop {
            font-size: 16pt;
        }
        .stellaPreferiti,.stellaPrefStazioni{
            height: 56%!important;
        }
        .colonna-legenda span{
            font-size : 12px;
        }
        .space-pannel{
            padding-left: 2%;
        }
        .ui-block-b div {
            width: auto;
        }
        .inputAlto{
            top : 28px;
        }
    }
    @media screen and (min-width:1025px) and (max-width:1280px) {
        
        #nav-panel {
            height: 1280px;
            overflow-y: auto;
        }
        #dettCorrispondenze, #stazioneCorrente,#fermate,#dettStazione, #dettStazione1,#dettFermate{
            font-size: 20pt;
        }
        #prefStazioni, #preferitiTreni tr{
            font-size: 16pt;
        }
        .legenda li span{
            font-size: 20pt;
        }
        #legendaPop {
            font-size: 16pt;
        }
        .colonna-legenda span{
            font-size : 16px;
        }
        .space-pannel{
            padding-left: 2%;
        }
        .ui-block-b div {
            width: auto;
        }
        .inputAlto{
            top : 28px;
        }
    }
}
#imgCambi {
    width: 12pt;
    padding-left: 2px;
}
#imgStatoTrenoStaz {
    width: 12pt;
    padding-left: 2px;
}
#iconaTreno{
    width: 70pt;
}