.dropdown-button {
    cursor: pointer;
    font-size: 16px;
}

.dropdown-button > * {
    /* Ensures that a click on a sub element of a button is not prevented */
    pointer-events: none;
}

.dropdown-button > *:not(:first-child) {
    margin-left: 5px;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--componentBackgroundColor);
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.5);
    z-index: 1;
}

.dropdown-content.align-right {
    right: 0;
}

.dropdown-content>.dropdown-item {
    color: var(--componentTextColor);
    padding: 12px 16px;
    font-size: 16px;
    text-decoration: none;
    display: block;
    background-color: var(--componentBackgroundColor);
    cursor: pointer;
}

.dropdown .dropdown-item:hover {
    background-color: var(--componentBackgroundColor);
}

.dropdown-content.show {
    display: block;
}