

div.dropdown-container {
    position: relative;
//    display: inline-block;
}


div.dropdown-container > button.dropdown-toggle {
    width: auto;
    background: #2f2f2f;
    color: white;
    border: 2px solid var(--color-options-border);
    padding: 10px;
    font-size: 1em; /* 20px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 5px;
//    transition: width 5s;
}

div.dropdown-container > button.dropdown-toggle.dropdown-menu-active {
}

div.dropdown-container > button.dropdown-toggle:hover {
    background: var(--color-active);
}
div.dropdown-container > button.dropdown-toggle > span.selected-option {
    width: auto;
}
div.dropdown-container > button.dropdown-toggle > span.dropdown-arrow {
    font-size: 0.6em;
    margin-left: 0.4em;
}

div.dropdown-container > div.dropdown-menu {
    position: absolute;
    width: 100%;
    background: #3a3a3a;
    border: 1px solid;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    --    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    z-index: 1000;
    display: none;
}

div.dropdown-container > div.dropdown-menu.dropdown-menu-active {
    opacity: 1;
    width: auto;
//    transform: scaleX(1);
    display: block;
    text-align: left;
}

/* This is not always enabled. */
div.dropdown-container > div.dropdown-menu > input.dropdown-search {
    width: auto;
    padding: 0.4em;
    border: none;
    background: #111111;
    color: white;
    border-bottom: 1px solid;
    font-size: 14px;
    outline: none;
}

div.dropdown-container > div.dropdown-menu > div.dropdown-option {
    width: max-content;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

div.dropdown-container > div.dropdown-menu > div.dropdown-option:hover {
    background: #002040;
}
