#grafico_flusso_cnt {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: default;
}

#grafico_flusso_cnt:active {
    cursor: grabbing;
}

#grafico_flusso_cnt svg {
    width: 9600px;
    height: auto;
    position: relative;
}

.chart_legend {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    padding: 10px 0;
    max-width: 600px;
    margin: auto;
}

.chart_legend span {
    padding: 0 10px 0 23px;
    position: relative;
    color: #FFF;
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    font-size: .7rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: default;
}

.chart_legend span:not(:first-child) {
    margin-left: 20px;
}

.chart_legend span::before {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    background-color: #FFF;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#area_bump_btn_America::before {
    background-color: #F29400;
}

#area_bump_btn_Europa::before {
    background-color: #00ff00;
}

#area_bump_btn_Asia::before {
    background-color: #FBFF74;
}

#area_bump_btn_Oceania::before {
    background-color: #0399CF;
}

#area_bump_btn_Africa::before {
    background-color: #E6308A;
}

.area_bump_tooltip {
    width: fit-content;
    position: fixed;
    padding: 8px;
    background-color: #FFF;
    color: #000;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 500;
    line-height: normal;
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    text-align: center;
    pointer-events: none;
    z-index: 100;
    display: none;
    -webkit-user-select: none;
    /* Safari and Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer */
    user-select: none;
    /* Standard */
    transition: scale .3s ease-out;
}

#classifica-posizioni {
    padding: 24px;
    background-color: #FFF;
    border-radius: 8px;
    position: absolute;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    top: 138px;
    transition: none;
}

.classifica-posizione {
    display: grid;
    grid-template-columns: 0fr 2fr;
    grid-template-rows: 1fr;
    grid-column-gap: 10px;
    width: 100%;
    color: #000;
}

.classifica-posizione * {
    white-space: nowrap;
}

.classifica-rank {
    font-family: "moby", "SoleSans", Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.classifica-posizione-cnt {
    display: flex;
    flex-direction: column;
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    gap: 4px;
}

.classifica-stato {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
}

.classifica-totale {
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
}

.classifica-spiega {
    padding-bottom: 8px;
    font-weight: 400;
    font-size: 11px;
    color: #000;
}

.opacity-0 {
    opacity: 0;
}

@media only screen and (max-width: 480px) {
    #grafico_flusso_cnt svg {
        width: auto;
        height: 70vh;
    }

    .chart_legend {
        max-width: 100%;
    }

    .chart_legend span:not(:first-child) {
        margin-left: 0;
    }

    .chart_legend span {
        font-size: .6rem;
        font-weight: 400;
    }
}