#language-selection-form {
    margin-bottom: 0px;
}

.language-dropdown {
    position: relative;
    width: 80px;
    font-family: Arial, sans-serif;
    z-index: 1000; /* High z-index */
}

.language-current {
    padding: 10px;
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
}

.language-current .arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.language-current.active .arrow {
    transform: rotate(225deg);
}

.language-options {
    display: none;
    position: absolute;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    margin-top: 5px;
}

.language-option {
    padding: 9px;
    cursor: pointer;
    border-radius: 15px;
}

.language-option:hover {
    background-color: #f1f1f1;
}

.language-option.selected {
    background-color: #e9ecef; /* Style for selected language */
}

.language-option img {
    width: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.language-options.expand-upwards {
    bottom: 100%; /* Position it above the dropdown toggle */
    top: auto; /* Override the default positioning */
}
