
body {
    background-color: #0f1c3f;
    
}

.spaceXcaption {
    width: 100%;
    height: 40px;
    border-bottom: white solid 1px;
    padding-bottom: 4%;
    text-align: center;
}
.caption {
    color: white;
    font-size: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    
}
.start {
    margin-top: 1%;
    display: flex;
    width: 100%;
    height: 50px;
    /*border: solid white 1px;*/
    gap: 10%;
    display: flex;
    overflow-x: scroll;
    
}
.stemma {
    margin-top: 2%;
    width: 10%;
    height: 35px;
    background-image: url(inghilterra.png);
    margin-left: 2%;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
@media screen and (min-width: 450px) {
    .stemma {
        width: 8%;
    }  
}
@media screen and (min-width: 550px) {
    .stemma {
        width: 7%;
    }  
}
@media screen and (min-width: 650px) {
    .stemma {
        width: 6%;
    }  
}
@media screen and (min-width: 750px) {
    .stemma {
        width: 5%;
    }  
}
@media screen and (min-width: 850px) {
    .stemma {
        width: 4%;
    }  
}
@media screen and (min-width: 950px) {
    .stemma {
        width: 4%;
        margin-top: 1%;
    }  
}
@media screen and (min-width: 1100px) {
    .stemma {
        width: 3%;
        margin-top: 0%;
    }  
}

.league {
    margin: auto;
}
.lega {
    color: white;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
}

.altro {
    margin: auto;
    width: 35%;
    
}
.eventi {
    background: linear-gradient(45deg, #ffa500, #ff5e00);
    width: 100%;
    height: 35px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    
}
.altri_eventi {
    display: flex;
    width: 100%;
    height: 120px;
    margin-top: 3%;
    margin-bottom: 5%;
    border-bottom: white solid 1px;
    padding-bottom: 5%;
    overflow-x: scroll;
    gap: 5%;
    display: none;
}
.altri_match {
    margin-left: 3%;
    border-radius: 10px;
    width: 200px;
    height: 100px;
    box-shadow: 2px 2px 5px white;
}

.data_altro {
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color: yellow;
    border-bottom: solid blue 1px;
    padding-bottom: 2%;  
    padding-top: 2%; 
}
.name_altro {
    color: white;
    font-weight: 700;
    font-style: normal;
    font-family: Arial, Helvetica, sans-serif;
}
.center {
    width: 100%;
    height: 270px;
    /*border: solid white 1px;*/
    border-radius: 20px;
    margin-top: 10%;
    box-shadow: 0px 0px 15px black;
    background: linear-gradient(20deg, blue, white, rgb(127, 127, 207));
}
@media screen and (min-width: 850px) {
    .center {
        height: 350px;
    } 
}

.date_day {
    width: 100%;
    height: 35px;
    margin-top: 2%;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: white;
    font-weight: 700;
    font-size: 19px;
    border-bottom: solid 1px white;
    padding-top: 2%;
}
.vers {
    margin-top: 15%;
    color: black;
    font-weight: 700;
    font-size: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif; font-style: oblique;
}
@media screen and (min-width: 650px) {
    .vers {
        margin-top: 10%;
    }  
}
@media screen and (min-width: 950px) {
    .vers {
        margin-top: 8%;
    }  
}
.team {
    display: flex;
    overflow-x: scrool;
    /*border: solid white 2px;*/
    height: 150px;
    gap: 10%;
}
.team1 {
    width: 30%;
    height: 100px;
    /*border: solid black 1px;*/
    border-radius: 5px;
    margin-top: 5%;
    margin-left: 8%;
    background-image: url(US_Avellino_1912_Stemma.svg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.team2 {
    width: 30%;
    height: 100px;
    border-radius: 5px;
    margin-top: 5%;
    background-image: url(Real_Madrid.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.space_quote {
    display: flex;
    gap: 3%;
    width: 100%;
    height: 50px;
    /*border: solid white 1px;*/
}
@media screen and (min-width: 850px) {
    .space_quote {
        margin-top: 3%;
    }
    
}
.layout {
    border: solid yellow 1px;
    border-top: none;
    border-left: none;
    border-right: none;
    width: 25%;
    height: 40px;
    margin-left: 5%;
    margin-top: 1%;
    border-radius: 10px;
    padding-bottom: 5px;
    display: flex;
}
.esito_quote {
    border-right: white 2px solid;
    font-family: Arial, Helvetica, sans-serif;
    height: 20px;
    margin-left: 10%;
    font-size: 20px;
    color: white;
    font-weight: 700;
    padding-right: 10px;
    
}
.quote_quote {
    color: red;
    font-weight: 600;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 10px;
}
.spaceXnav {
    width: 100%;
    border-top: white solid 1px;
    height: 30px;
    margin-top: 15%;
    display: flex;
    gap: 10%;
    overflow-x: scroll;
    padding-top: 5%;
}

.nav {
    
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: solid orange 1px;
    margin-left: 5%;
}
.nav:active {
    color: yellow;
}
.spaceXquote {
    border-radius: 20px;
    height: 300px;
    width: 100%;
    margin-top: 5%;
    box-shadow: 0px 0px 5px black;
    border: solid black 1px;
    display: none;
}

.introduzione {
    color: white;
    font-weight: 400;
    font-size: 17px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin-left: 20%;
}
.introduzione2 {
    color: white;
    font-weight: 400;
    font-size: 17px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin-left: 35%;
}
.spaceXteam {
    width: 100%;
    height: 80px;
    display: flex;
    overflow-x: scroll;
    gap: 50%;
    border-radius: 20px;
    border: white solid 1px;
    background-color: #0f1c3f;
    background-image: url(hdPrato.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0px 0px 5px black;
    margin-top: 10%;
}
.primoDiv {
    width: 10%;
    height: 30px;
    background-image: url(US_Avellino_1912_Stemma.svg.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: 13%;
    margin-top: 5%;
}
.secondoDiv {
    width: 10%;
    height: 30px;
    background-image: url(Real_Madrid.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: 5%;
}
.per100 {
    width: 100%;
    height: 70px;
    display: flex;
    gap: 15%;
    overflow-x: scroll;
}
.unox2 { 
    color: white;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 600;
    font-size: 20px;
    width: 30%;
    margin-left: 5%;
    
}
.bar-container {
    width: 90%;
    height: 10px;
    margin-top: 5%;
    margin-left: 5%;
    background: yellow;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 5px #ccc inset;
}
 /* cambio percentuale ---------------------------------------------------------------------------*/     
.bar-fill {
    height: 100%;
    width: 10%; /* Puoi cambiare questo valore dinamicamente */
    background: linear-gradient(90deg, black, black);
    box-shadow: 0 0 15px orange;
    transition: width 0.5s ease, box-shadow 0.5s ease;
}

    /* Effetto "illuminato" in base al valore */
.bar-fill.low {
    background: linear-gradient(90deg, black, black);
    box-shadow: 0 0 10px #f90;
}

.bar-fill.high {
    background: linear-gradient(90deg, blue, black);
    box-shadow: 0 0 20px #0f0;
}

/* STATISTICHE -------------------------------*/


.spaceXstatic {
    border-radius: 20px;
    height: 500px;
    width: 100%;
    margin-top: 5%;
    box-shadow: 0px 0px 5px black;
    border: solid black 1px;
    display: none;  
}

.bar {
    display: flex;
    overflow-x: scroll;
    gap: 5%;
    height: 100px;
    width: 100%;
    margin-top: 5%;
    box-shadow: 0px 0px 5px black;
    
}
.form-bar-container {
    width: 40%;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    height: 30px;
    box-shadow: inset 0 0 5px #000;
    position: relative;
    margin-top: 7%;
    margin-left: 5%;
}
.form-bar-fill {
    height: 100%;
    color: white;
    text-align: right;
    padding-right: 10px;
    font-size: 1.5rem;
    line-height: 30px;
    font-weight: bold;
    border-radius: 20px;
}

.home-bar {
    width: 30%; /* 👈 Percentuale forma squadra di casa */
    background: linear-gradient(90deg, #00c853, #64dd17);
}

.away-bar {
    width: 85%; /* 👈 Percentuale forma squadra trasferta */
    background: linear-gradient(90deg, #d50000, #c51162);
}
.before {
    width: 100%;
    height: 100px;
    margin-top: 3%;
    display: flex;
    gap: 3%;
    overflow-x: scroll;
    padding-top: 2%;
    box-shadow: 0px 0px 5px black;
}
.before_pre {
    color: white;
    font-size: 19px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}
.esito_precedente {
    text-align: center;
    color: white;
    font-size: 1rem;
    border: solid black 1px;
    width: 22%;
    height: 60px;
    padding: 2%;
    margin-left: 4%;
    box-shadow: 0px 0px 5px black;

}

/* space per pronostico ---------------------------------------------------*/

.spaceXpronostico {
    border-radius: 20px;
    height: 900px;
    width: 100%;
    margin-top: 5%;
    box-shadow: 0px 0px 5px black;
    border: solid black 1px;
}
@media screen and (min-width: 550px) {
    .spaceXpronostico {
        height: 1000px;
    }
}
@media screen and (min-width: 650px) {
    .spaceXpronostico {
        height: 1100px;
    }
}
@media screen and (min-width: 850px) {
    .spaceXpronostico {
        height: 1200px;
    }
}
@media screen and (min-width: 1000px) {
    .spaceXpronostico {
        height: 1300px;
    }
}
@media screen and (min-width: 1150px) {
    .spaceXpronostico {
        height: 1500px;
    }
}
.spaceXrisultato {
    width: 100%;
    height: 100px;
    display: flex;
    overflow-x: scroll;
    gap: 5%;
    border-radius: 20px;
    box-shadow: 0px, 0px, 5px black;
    background-color: #0f1c3f;
    background-image: url(hdPrato.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.esatto_esatto {
    text-align: center;
    width: 40%;
    border-radius: 10px;
    padding-left: 5%;
    padding-top: 2%;
    height: 50px;
    color: black;
    border-left: none;
    border-top: none;
    font-size: 1.9rem;
    font-weight: 600;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    margin-top: 5%;
    /*background-color:rgba(0, 0, 0, 0.6);*/
    box-shadow: 5px 5px 5px black;
    letter-spacing: 20px;
    white-space: nowrap;
}

.primoDivE {
    width: 300px;
    height: 40px;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 5%;
    margin-left: 3%;
    white-space: nowrap;
    padding-top: 2%;
    padding-left: 5%;
    background-color:rgba(0, 0, 0, 0.6);
    border-radius: 5px;
}
.sezione_pronostico {
    width: 100%;
    height: 70px;
    border: solid black 2px;
    display: flex;
    overflow-x: scroll;
    gap: 20%;
    margin-top: 10%;
}
.nome_pronostico {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif;
    margin-left: 5%;
    margin-top: 8%;
}
@media screen and (min-width: 500px) {
    .nome_pronostico {
        margin-top: 5%;
    }   
}
@media screen and (min-width: 750px) {
    .nome_pronostico {
        margin-top: 4%;
    }   
}
@media screen and (min-width: 900px) {
    .nome_pronostico {
        margin-top: 3%;
    }   
}
.esito_pronostico {
    display: inline-block; /* importante per far adattare le dimensioni al contenuto */
    box-shadow: 5px 5px 5px black;
    font-family: Arial, Helvetica, sans-serif;
    color: yellow;
    padding: 1rem;
    word-break: break-word; /* o break-all se hai parole lunghissime */
    overflow: visible;
    max-width: 100%; /* oppure un valore fisso, se preferisci */
}