.header {
    height: calc(100vh - 280px);
}

.header_img {
    height: calc(100vh - 280px);
    background-image: url(../img/cover_swing_states_desktop.jpg);
}

body:not(.backgroundAdv) .header {
    .header {
        height: calc(100vh - 200px);
    }

    .header_img {
        height: calc(100vh - 200px);
        background-image: url(../img/cover_swing_states_desktop.jpg);
    }
}


h1 {
    margin-bottom: 30px;
    color: #FFF;
    font-size: 60px;
    max-width: 650px;
    margin-block-end: auto;
}

.sommario {
    color: #FFF;
}


.state_name {
    color: #0F0F0F;
    font-family: "sole_display", Georgia, Times, "Times New Roman", serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid #000;
}


.state_caption {
    color: #0F0F0F;
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    text-align: left;
}

.state_num {
    color: #0F0F0F;
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-align: left;
}

.state_num span {
    font-size: 22px;
}


h4 {
    color: #0F0F0F;
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: left;
}

/* MAPPA */
.st0 {
    fill: #E0E2E2;
    stroke: #FFFFFF;
    stroke-width: 1.5;
}

.st1 {
    fill: #DBAC34;
    stroke: #FFFFFF;
    stroke-width: 1.5;
    cursor: pointer;
    transition: all .2s ease;
}

.st2 {
    opacity: 0;
    fill: #D68505;
    stroke: #212121;
    stroke-width: 2;
    transition: all .5s ease;
}

.st2.selezionato {
    opacity: 1;
}

.st2:not(.st2.selezionato) {
    pointer-events: none;
}

.st3 {
    fill: #FFFFFF;
}

.st1:hover {
    fill: #D68505;
}

#TESTI * {
    pointer-events: none;
}

#mappa-tooltip {
    position: fixed;
    pointer-events: none;
    padding: 4px 12px;
    border-radius: 8px;
    color: var(--Testi, #0F0F0F);
    text-align: center;
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    background-color: white;
    display: none;
    width: auto;
}

#mappa-tooltip.visibile {
    display: block;
}


@media only screen and (min-width: 481px) {
    .mobile_minimap_data_cnt {
        display: none;
    }

    .minimap_data_cnt {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: 786px;
        margin: 20px auto;
    }

    .minimap_cnt {
        height: 114px;
        width: auto;
        padding-right: 20px;
    }

    .minimap_cnt img {
        height: 114px;
        width: auto;
    }

    .data_cnt {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: start;
    }


    .state_data {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 10px auto;
    }

    .state_data_cnt {
        display: flex;
        flex-direction: column;
    }

    .state_data_cnt:first-of-type {
        width: 30%;
    }


    .state_data_cnt:nth-child(2) {
        width: 25%;
    }

    .state_data_cnt:last-of-type {
        width: 45%;
    }

    .state_population .state_num,
    .state_population .state_caption {
        text-align: center;
    }

    .state_winner_2020 .state_num,
    .state_winner_2020 .state_caption {
        text-align: center;
    }
}

@media only screen and (min-width: 481px) and (max-width: 1500px) {
    h1 {
        max-width: 100%;
        font-size: 60px;
        max-width: 500px;
    }
}

@media only screen and (max-width: 480px) {
    .header {
        height: calc(100vh - 200px) !important;
    }

    .header_img {
        height: calc(100vh - 200px) !important;
        background-image: url(../img/cover_swing_states_mobile.jpg) !important;
    }

    h1 {
        max-width: 100%;
        font-size: 44px;
        margin-block-start: 0;
        margin-block-end: 0;
    }

    /*     .header_text {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -60%);
        } */

    .sommario {
        padding-top: 10px;
    }

    .firma {
        padding-top: 0;
    }

    .minimap_data_cnt {
        display: none;
    }

    .mobile_minimap_data_cnt {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        max-width: 100%;
        margin: 20px auto 10px;
    }

    .mobile_map_name_cnt {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid #000;
        padding-bottom: 10px;
    }

    .minimap_cnt {
        height: 60px;
        width: auto;
        padding-right: 20px;
    }

    .minimap_cnt img {
        height: 60px;
        width: auto;
    }

    .state_name {
        border: none;
        padding: 0;
        font-size: 34px;
    }

    .state_data {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 10px auto;
    }

    .state_data_cnt {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 10px;
    }

    .state_num {
        font-size: 24px;
        text-align: right;
    }
}


/* dropdown */
.dropdown-cnt {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

ul {
    list-style: none;
}

.dropdown {
    width: 288px;
    height: 50px;
    background: white;
    border-radius: 2px;
    border: 1px solid #0F0F0F;
    /* box-shadow: 0 10px 25px rgba(42, 179, 248, 0.4); */
    position: relative;
}

@media (max-width: 400px) {
    .dropdown {
        width: 240px;
    }
}

.dropdown::before {
    content: "";
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 9;
    width: 8px;
    height: 8px;
    border: 2px solid #0F0F0F;
    border-top: transparent;
    border-right: transparent;
    transform: rotate(-45deg);
    pointer-events: none;
    transition: all 0.3s linear;
}

.dropdown .input {
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    padding: 0 24px;
    cursor: pointer;
    border: none;
    outline: none;
    /* box-shadow: 0 10px 25px rgba(124, 130, 141, 0.2); */
    font-size: 18px;
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: left;
    display: flex;
    align-items: center;
}

.dropdown .options {
    width: 100%;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    padding: 0;
    cursor: pointer;
    background: white;
    border: none;
    outline: none;
    /* box-shadow: 0 10px 25px rgba(124, 130, 141, 0.2); */
    font-size: 18px;
    overflow: hidden;
    position: absolute;
    top: 31px;
    /* transition: all 0.7s ease; */
    opacity: 0;
    visibility: hidden;
    background: rgba(255, 255, 255, 1);
    /* backdrop-filter: blur(4.5px); */
    /* -webkit-backdrop-filter: blur(4.5px); */
    /* border: 1px solid rgba(255, 255, 255, 0.18); */
}

.dropdown .options .option {
    font-family: "SoleSans", Arial, Helvetica, sans-serif;
    text-align: left;
    padding: 12px 24px;
    transition: all 0.2s ease;
    color: #292d34;
}

.dropdown .options .option:not(:last-of-type) {
    margin-bottom: 8px;
}

.dropdown .options .option:hover {
    color: #292d34;
    background: #dadce0;
}

.dropdown.opened .options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.opened::before {
    transform: rotate(-225deg);
    top: 21px;
}

.dropdown-cnt-sticky {
    position: fixed;
    top: 132px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 9;
}