td.menu {
    box-sizing: border-box;
    display: flex;
    justify-content: right;
    position: absolute;
    right: 0;
    width: 100%;
}

td.menu div.menu {
    background-color: #FFF;
    border: 1px solid #000;
    border-radius: .3em;
    box-shadow: 1px 1px 4px #000;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 0 6px;
    max-width: 50%;
    min-width: 33%;
    padding: .5em;
}

body.dark td.menu div.menu {
    background-color: #282828;
    color: #FFF;
}

td.menu .fa-times {
    align-self: flex-end;
    border-radius: .3em;
    font-size: 1.3em;
    padding: .3em;
}

td.menu .fa-times:hover {
    background-color: #700;
    color: #FFF;
}

body.dark td.menu .fa-times:hover {
    background-color: #C00;
    color: #FFF;
}

td.menu button {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: .3em;
    color: inherit;
    flex-grow: 1;
    font-family: Sans-serif;
    font-size: 1em;
    text-align: left;
}

td.menu i {
    padding: .5em .5em .5em 0;
}

td.menu button:hover {
    background-color: var(--brand-color);
    border: 1px solid rosybrown;
}

body.dark td.menu button:hover {
    border: 1px solid #000;
    color: #000;
}