.custom-dropdown {
    width: 60px;
    height: 60px;
    bottom: 20px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: rgb(232, 223, 202);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.253);
    position: fixed;
    transition: all 0.3s ease;
    z-index: 9999;
}

.custom-dropdown.open {
    width: 60px;
    gap: 10px;
    height: 300px; 
    flex-direction: column-reverse;
    padding-bottom: 10px;
    padding-top: 10px;
    align-items: center;
    justify-content: flex-start;
    bottom: 20px; 
}

.custom-dropdown.open .selected-flag {
    background-color: rgb(200, 190, 170);
    border-radius: 10px;
    padding: 5px; 
    width: 50px;
}


.flags {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    margin-left: -40px;
    transition: opacity 0.1s ease-out;
    gap: 5px;
}

.custom-dropdown.open .flags {
    opacity: 1;
    transition: opacity 0.3s ease-in;
    margin-left: 0px;
}

.custom-dropdown.open .selected-flag {
    margin-left: 0px;
}

.flag {
    width: 40px;
    cursor: pointer;
    transition: transform 0.2s;   
}

.flag:hover {
    transform: scale(1.1);
}

.selected-flag {
    display: block;
    width: 40px;
    height: auto;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.flags .flag.selected {
    display: none; 
}
