* {
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    color:  #0f0f0f;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    font-family: 'SoleSans', Arial, Helvetica, sans-serif;
}



/* ------ MENU SELECT ---------- */

#menu_container {
    width: 100%;
    max-width: 680px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
    -webkit-box-pack: flex-start;
    -ms-flex-pack: flex-start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}



/* The container must be positioned relative: */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    font-family: 'SoleSans', Arial, Helvetica, sans-serif;
    font-size: 16px;
  }

  .ss-main .ss-single-selected {
    height: 40px;
}


/* LEGEND */


#legend {
    width: 100%;
    max-width: 700px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
    -webkit-box-pack: flex-start;
    -ms-flex-pack: flex-start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    margin: 20px 0;
}

.legend_item {
    margin-right: 10px;
    font-size: 16px;
}

.legend_item::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
}


  #legend_green::before {
    background: #00bbb4;
  }
  #legend_yellow::before {
    background: #fec36b;
  }
  #legend_grey::before {
    background:#e6e6e6;
  }



/*--- TABLE -----*/

table {
    width: 100%;
    border-collapse: collapse;
}


td {
    position: relative;
}



#chart_container {
    width: 100%;
    max-width: 1440px;
}



/* TABLE */


.bar {
    position: relative;
}

.border-right {
    border-right: 1px solid #e6e5e1;
}


.no-border-bottom {
    border-bottom: 0px;
}


#notes {
    width: 100%;
    font-family: 'SoleSans', Arial, Helvetica, sans-serif;
    line-height: normal;
    font-style: normal;
    font-size: 12px;
    margin-top: 10px;
}


#source {
    width: 100%;
    font-family: 'SoleSans', Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 11px;
    font-style: normal;
    text-decoration: none;
    color: #888;
    margin-top: 10px;
}


.div-tooltip {
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px;
    z-index: 40;
    -webkit-box-shadow: 5px 5px 6px 2px rgba(176,176,176,0.51);
    box-shadow: 5px 5px 6px 2px rgba(176,176,176,0.51);
}


.div-tooltip:after {
    content:'';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    width: 0;
    height: 0;
    border-top: solid 10px #ffffff;
    border-left: solid 10px transparent;
    border-right: solid 10px transparent;
}

.div-tooltip p {
    font-family: 'SoleSans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
    color: #000000;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.div-tooltip p span {
    font-size: 18px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
}

.div-tooltip p:first-child span,
.div-tooltip p:nth-child(2) span {
    color: #00bbb4;
}

.div-tooltip p:nth-child(3) span {
    color: #fec36b;
}

.div-tooltip p:last-child span {
    color: #797979;
}




/*** RESPONSIVE DESKTOP  ***/
@media only screen and (min-width: 1281px) {

    .cell {
        text-align: center;
        border-bottom: 0;
    }

    .fasce {
        font-family: 'SoleSans', Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: 400;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.11;
        letter-spacing: normal;
        text-align: center;
        color: #000000;
        padding-bottom: 15px;
    }

    .vaccinati {
        font-family: 'SoleSans', Arial, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 600;
        font-stretch: normal;
        font-style: normal;
        line-height: 1;
        letter-spacing: normal;
        text-align: center;
        color: #000000;
        padding-bottom: 15px;
        color: #00bbb4;
    }


    .prima_dose {
        font-family: 'SoleSans', Arial, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 600;
        font-stretch: normal;
        font-style: normal;
        line-height: 1;
        letter-spacing: normal;
        text-align: center;
        color: #000000;
        padding-bottom: 15px;
        color: #fec36b;
    }

    .non_vaccinati {
        font-family: 'SoleSans', Arial, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 600;
        font-stretch: normal;
        font-style: normal;
        line-height: 1;
        letter-spacing: normal;
        text-align: center;
        color: #000000;
        padding-bottom: 15px;
        color: #797979;
    }


    .piechart {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        position: relative;
    }

}


/*** RESPONSIVE MOBILE ***/

@media only screen and (max-width: 480px) {
    body {
        font-size: 20px;
        max-width: 100vw;
    }

    #legend {
        width: 100vw;
        max-width: 98vw;
        flex-direction: column;
        padding-left: 15px;
        padding-right: 10px;
    }
    
    .legend_item {
        margin-right: 0;
    }

    table {
        width: 100vw;
        max-width: 100vw;
    }

    th,
    td {
        font-family: 'SoleSans', Arial, Helvetica, sans-serif;
        line-height: normal;
        font-style: normal;
        padding-top: 5px;
        padding-bottom: 5px;
        border-bottom: 1px solid #0f0f0f4d;
    }

    td {
        font-weight: 400;
        font-size: 14px;
        height: 40px;
        position: relative;
    }

    th {
        text-transform: uppercase;
        font-weight: 400;
        font-size: 14px;
    }

    thead tr {
        border-bottom: 2px solid black;
    }

    #menu_container {
        max-width: 100%;
        margin-top: 10px;
    }

    .custom-select {
        width: 100%;
        max-width: 100%;
    }

    #chart_container {
        width: 100vw;
        max-width: 100vw;
        margin-top: 10px;
    }


    #rows,
    .row {
        width: 100vw;
        max-width: 100vw;
    }

    #th-fasce,
    .fasce {
        text-align: start;
        width: 30px;
    }

    #th-vaccinati,
    .vaccinati {
        text-align: end;
        width: 130px;
        padding-right: 5px;
    }

    .vaccinati {
        color: #00bbb4;
        font-weight: bold;
    }

    #th-prima-dose,
    .prima-dose {
        text-align: end;
        width: 80px;
        padding-right: 10px;
    }

    .prima-dose {
        color: #fec36b;
        font-weight: bold;
    }

    #th-bar,
    .bar {
        text-align: left;
        width: calc(100vw - 210px);
        position: relative;
    }

    #th-non-vaccinati,
    .non-vaccinati {
        text-align: end;
        width: 70px;
    }

    .non-vaccinati {
        color: #797979;
        font-weight: bold;
    }

    #th-fasce,
    #th-bar,
    #th-vaccinati,
    #th-non-vaccinati,
    #th-prima-dose,
    .fasce,
    .bar,
    .vaccinati,
    .non-vaccinati,
    .prima-dose {
        font-size: 12px;
    }


    .bar_bg_grey {
        position: absolute;
        top: 10px;
        left: 0;
        background-color: #e6e6e6;
        z-index: 5;
        height: 20px;
    }

    .bar_prima_dose {
        position: absolute;
        top: 10px;
        left: 0;
        background-color: #fec36b;
        z-index: 10;
        height: 20px;
    }

    .bar_seconda_dose {
        position: absolute;
        top: 10px;
        left: 0;
        background-color: #00bbb4;
        z-index: 15;
        height: 20px;
    }


    .bar_monodose {
        position: absolute;
        top: 10px;
        left: 0;
        background: repeating-linear-gradient(
            45deg,
            #00bbb4,
            #00bbb4 5px,
            #e6e6e6 5px,
            #e6e6e6 6px
            );
        z-index: 15;
        height: 20px;
    }

    .bar_bg_transparent {
        position: absolute;
        top: 10px;
        left: 0;
        background-color: transparent;
        z-index: 20;
        height: 20px;
    }

    .div-tooltip {
        padding: 0 10px;
    }

    .div-tooltip p {
        line-height: 1.0;
    }

  }


  /* RESPONSIVE TABLET */
  @media screen and (min-width: 481px) and (max-width: 1280px) {

    body {
        width: 100%;
        max-width: 680px;
        margin: auto;
    }

    table {
        width: 100%;
        max-width: 680px;
    }

    th,
    td {
        font-family: 'SoleSans', Arial, Helvetica, sans-serif;
        line-height: normal;
        font-style: normal;
        padding-top: 5px;
        padding-bottom: 5px;
        border-bottom: 1px solid #0f0f0f4d;
    }

    td {
        font-weight: 400;
        font-size: 14px;
        height: 40px;
        position: relative;
    }

    th {
        text-transform: uppercase;
        font-weight: 400;
        font-size: 14px;
    }

    thead tr {
        border-bottom: 2px solid black;
    }

    #menu_container {
        max-width: 680px;
        align-self: self-start;
        margin-top: 10px;
    }

    .custom-select {
        width: 100%;
        max-width: 345px;
    }

    #chart_container {
        width: 100vw;
        max-width: 680px;
        margin-top: 10px;
    }


    #rows,
    .row {
        width: 100%;
        max-width: 100%;
    }

    #th-fasce,
    .fasce {
        text-align: start;
        width: 30px;
    }

    #th-vaccinati,
    .vaccinati {
        text-align: end;
        width: 90px;
        padding-right: 5px;
    }

    #th-prima-dose,
    .prima-dose {
        text-align: end;
        width: 90px;
        padding-right: 10px;
    }


    #th-bar,
    .bar {
        text-align: left;
        width: calc(100vw - 210px);
        position: relative;
    }



    #th-non-vaccinati,
    .non-vaccinati {
        text-align: end;
        width: 70px;
    }


    #th-fasce,
    #th-bar,
    #th-vaccinati,
    #th-non-vaccinati,
    #th-prima-dose,
    .fasce,
    .bar,
    .vaccinati,
    .non-vaccinati,
    .prima-dose {
        font-size: 12px;
    }


    .bar_bg_grey {
        position: absolute;
        top: 10px;
        left: 0;
        background-color: #e6e6e6;
        z-index: 5;
        height: 20px;
    }

    .bar_prima_dose {
        position: absolute;
        top: 10px;
        left: 0;
        background-color: #fec36b;
        z-index: 10;
        height: 20px;
    }

    .bar_seconda_dose {
        position: absolute;
        top: 10px;
        left: 0;
        background-color: #00bbb4;
        z-index: 15;
        height: 20px;
    }


    .bar_monodose {
        position: absolute;
        top: 10px;
        left: 0;
        background: repeating-linear-gradient(
            45deg,
            #00bbb4,
            #00bbb4 5px,
            #e6e6e6 5px,
            #e6e6e6 6px
            );
        z-index: 15;
        height: 20px;
    }

    .bar_bg_transparent {
        position: absolute;
        top: 10px;
        left: 0;
        background-color: transparent;
        z-index: 20;
        height: 20px;
    }

    .div-tooltip {
        padding: 0 10px;
    }

    .div-tooltip p {
        line-height: 1.0;
        margin-bottom: 5px;
    }
}
