.countries-list {
    list-style: none;
    display: none;
    position: absolute;
    top: 32px;
    z-index: 999;
    width: 345px;
    background-color: #dea9f0;
}

.countries-list>li {
    display: inline-block;
}

.selected_country {

    padding-inline: 2px;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    height: auto !important;
    width: auto;
    padding: 3px;
}

.selected_country::after {
    content: ' ';
    border-bottom: solid 3px #dea9f0;
    position: absolute;
    bottom: -1px;
    height: 3px;
    z-index: 99999;
    width: calc(100% - 2px);
    left: 1px;
    display: none;
}

#list_countries:checked+label>.countries-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#list_countries:checked+label>.selected_country {
    border: solid #000 1px;
    background-color: #dea9f0;
}

#list_countries:checked+label>.selected_country::after {
    display: block;
}



.selected_lang {
    padding-inline: 2px;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    height: auto !important;
    width: auto;
    padding: 3px
}

.lang-list {
    list-style: none;
    display: none;
    position: absolute;
    top: 32px;
    z-index: 999;
    width: max-content;
    background-color: #dea9f0;
}

.lang-list>li {
    display: inline-block;
}

.selected_lang::after {
    content: ' ';
    border-bottom: solid 3px #dea9f0;
    ;
    position: absolute;
    bottom: 0;
    height: 3px;
    z-index: 99999;
    width: calc(100% - 2px);
    left: 1px;
    display: none;
}

#list_lang:checked+label>.lang-list {
    display: block;
}

#list_lang:checked+label>.selected_lang {
    border: solid #000 1px;
    background-color: #dea9f0;
}

#list_lang:checked+label>.selected_lang::after {
    display: block;
}

.countries-list-container,
.lang-list-container {
    display: inline-block;
}

.flag {
    margin-inline-end: 7px;
    cursor: pointer;
    filter: grayscale(1);
    border-radius: 76px;
    border: solid #90c 2px;
    width: 20px;
    height: 20px !important;
    object-fit: cover;
}

.site_title {
    text-align: start;
    padding-inline-start: 8px;
    font-size: 2.5vw;
    font-weight: 700;
    color: #90c;
}