* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;    
}
html {
    font-family: 'Lato', sans-serif;
}
h1 {
    font-size: 40px;
    color: #fff;
    font-weight: bold;
    box-shadow: 1px 1px 5px #444;
    text-shadow: 4px 4px #444;
    margin: 8px 0px;
    -webkit-text-stroke-width: 0.4px;
    -webkit-text-stroke-color: #000000;
}
h2 {
    font-size: 33px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    text-shadow: -1px 3px 10px #3494d2;
    -webkit-text-stroke-width: 0.4px;
    -webkit-text-stroke-color: #001a2b;
}
h3, h4 {
    color: #5e3700;
    font-style: italic;
    /* padding-left: 20px; */
    margin-bottom: 10px;
}

/* MIX  */
.rotation-alert {
    display: none;
    background: linear-gradient(-180deg, #00C9FF 0%, #3494d2 100%);    
}
.text-container p {
    font-size: 40px;
    color: #fff;
    font-weight: 900;   
}
.page-wrapper {
    height: 100vh;      
}
main {
    display: flex;
    height: calc(100% - 100px);
}
aside {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 100%;
    padding: 20px 20px;
    /* background-color: #0cd977; */
    /* background: linear-gradient(45deg,#3494d2, #0cd977); */
    background: linear-gradient(-180deg, #00C9FF 0%, #92FE9D 100%);
    overflow-y: hidden;
    z-index: 1;
}
.autoplay-status {
    display: none;
    font-size: 18px;
    text-transform: uppercase;
    color: #de0101;
    margin-bottom: 10px;
    font-weight: bold;

}
.number-list {
    display: flex;
    flex-direction: column-reverse;    
    list-style: none;
    font-size: 25px;
    color: white;
}
.number-list li {
    display: flex;
    align-items: center;
}
.number-list li p {
    display: inline-block;
    width: calc(100% - 70px);    
    margin-left: 10px;
    padding: 2px 5px;
    border: 3px solid #fff;
    border-radius: 10px;
}
.numberlistitem {
    display: inline-block;
    text-align: center;
    line-height: 45px;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background-color: #f18b00;
    border: 2px solid #5e3700;
    margin: 1px 2px;
    box-shadow: 1px 1px 4px #444;
}
.main-content {
    width: calc(100% - 300px);
    text-align: center;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(-180deg, #00C9FF 0%, #3494d2 100%);    
    padding-bottom: 10px;
    /* background-color: #3494d2; */
}
.overlay-layer {
    display: none;    
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;    
    height: 100vh;
    z-index: 1;    
    background-color: #f18b00;    
}
.overlay-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    width: 100%;

}

.big-number {
    display: inline-block;
    font-size: 45vh;
    width: 70vh;
    height: 70vh;
    color: #f18b00;
    text-shadow: 6px 6px #5e3700;
    border: 35px solid #5e3700;
    border-radius: 100%;
    line-height: 58vh;
    background-color: white;
    box-shadow: 5px 5px 100px rgb(68, 68, 68);
    top: 100px;    
           
}
#overlay-text {
    font-size: 70px;
    color: #5e3700;
    margin-top: 40px;    
}
.winner-layer {
    display: none;
    position: fixed;
    background-color: #1BA29B;
    color: #fff;
    font-weight: 900;
    z-index: 10;
    height: 100%;
    width: 100%;
    font-size: 200px;
    line-height: 100vh;
    text-shadow: 8px 8px 10px black;
    text-transform: uppercase;
}


.tabellone-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;        
    height: 100%;
    width: 80%;
    margin: auto;    
}
.row {
    display: flex;
    justify-content: space-around;
    padding: 10px;    
}
.row_cartella {
    display: flex;    
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;       
}
.cartella {
    display: flex;
    flex-direction: column;
    border: 1px solid #fff;
    padding: 8px 0px;
    border-radius: 40px;
    width: calc(80%/2);
    margin-bottom: 0.3%;
    margin-right: 5%;
    box-shadow: 5px 5px 10px #444;
    background: linear-gradient(-180deg, #ffe600 0%, #ffc400 100%);
    min-width: 310px;
    
}
.number-item {
    font-size: 32px;
    font-weight: bold;
    color: #0066A6;
    text-align: center;
    background-color: #fff;
    border-radius: 100%;    
    width: calc(100%/5);
    max-width: 100px; 
    height: 60px;
    line-height: 60px;
    box-shadow: 1px 2px 10px rgb(53, 24, 0);
    margin-right: 10px;
}
.number-item:hover {
    background-color: red;
    color: #fff;
}
.choosen-red {
    background-color: #f18b00;
    color: white;
}
.button-footer {
    height: 100px;
    /* background-color: #f18b00; */
    background: linear-gradient(90deg, #f18b00 0%, #ffa425 100%);
    text-align: center;
    line-height: 100px;
}
.btn {
    padding: 15px 25px;
    margin-left: 30px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 10px;
    border-style: solid;
    border-color: #3494d2;
    color: #3494d2;
    text-transform: uppercase;
    box-shadow: 3px 3px 10px #444;

}
.btn:hover {
    background-color: #3494d2;
    color: #fff;
}
.button-footer {    
    z-index: 2;
}
.button-footer i {
    margin-right: 10px;
    font-size: 30px;
    vertical-align: middle;
    /* color: #f18b00; */
}

/* RESPONSIVE  */
@media screen and (max-width: 1200px) {
    .cartella {
        margin: 3%;
        min-width: 250px;
    }
    .btn {
        padding: 5px 8px;
        margin-left: 5px ;
        /* font-size: 16px; */
    }
    .fas , .far 
     {
        display: none;
    }
    #ten-backward {
        display: none;
    }

}
@media screen and (max-width: 992px) {
    /* .row_cartella {
        flex-direction: column;
    } */
    .cartella {
        width: 100%;
        margin-bottom: 20px;
    }
    aside {
        display: none;
    }
    .main-content {
        width: 100%;
    }
    #five-backward {
        display: none;
    }
    #ten-backward {
        display: none;
    }
    .btn {
        padding: 5px 8px;
        margin-left: 5px ;
        /* font-size: 16px; */
    }
    .fas , .far 
     {
        display: none;
    }
    .tabellone-container h1 {
        font-size: 28px;
    }
    .big-number{
        border: 15px solid #5e3700;
        width: 250px;
        height: 250px;
        font-size: 160px;
        line-height: 220px;
    }

}

@media screen and (max-width: 992px) and (orientation : landscape) {
.page-wrapper { 
    display: none;
}
.rotation-alert {
    display: flex;    
    height: 100vh;
    justify-content: center;
    align-items: center;  
}
}


@media screen and (max-width: 576px) and (orientation : portrait){
    aside {
        display: none;
    }
    .cartella {
        min-width: 250px; 
        margin-bottom: 1%;
        border-radius: 25px;       
    }
    .number-item {
        font-size: 24px;
        height: 40px;
        width: 40px;
        line-height: 40px;
        margin-right: 2px;
    }
    .row {
        padding: 1px;
    }   
    .btn {
        padding: 5px 4px;
        margin-left: 5px ;
        max-width: 100px;        
    }    
    .big-number {
        width: 300px;
        height: 300px;
        font-size: 200px;
        line-height: 270px;
    }
    .winner-layer {
        font-size: 70px;
    }
    .button-footer {
        height: 70px;
        line-height: 70px;
    }
    main{
        height: calc(100% - 70px);
    }    
}