.dropdown {
    position: relative;
    display: inline-block;
    position: absolute;
    right: 4em;
    top: 0.5em;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333333;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    border: none;
    background-color: transparent;
    min-width: calc(30px + 2rem);
    white-space: nowrap;

}


.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1;
    border-radius: 0.375rem;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown-content button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background-color: transparent;
    border: none;
    transition: background-color 0.3s ease;
}

.dropdown-content button:hover {
    background-color: #f3f4f6;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.flag-icon {
    width: 30px;
    height: 30px;
    margin-right: 0.75rem;
    object-fit: cover;
    object-position: 0 0;
    /* border-radius: 0.125rem; */
    border-radius: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-toggle::after {
    content: '';
    /* Font Awesome 下拉箭头图标 Unicode */
    width: 1em;
    height: 1em;
    background-image: url(../images/dropdownIcon.png);
    background-size: contain;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

@media screen and (max-width: 800px) {
    .dropdown{
        right: 2em;
    }
}