.buttons {
    margin-bottom: 20px;
    margin-top: 20px;
    display: inline-flex;
}

.buttons button,
.buttons a {
    background-color: #f3f3f3;
    color: #333333;
    border: 1px solid #cccccc;
    padding: .5rem 1rem;
    width: 100px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 1px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    box-sizing: border-box;

    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.buttons button.selected,
.buttons a.selected {
    background-color: #ffffff;
    color: #0f5ea6;
    border-color: #0f5ea6;
    box-shadow: inset 0 0 0 1px #0f5ea6, 0 3px 5px rgba(0,0,0,0.1);
    font-weight: 600;
}

.buttons button:first-child,
.buttons a:first-child {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.buttons button:last-child,
.buttons a:last-child {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

.buttons button:hover:not(.selected),
.buttons a:hover:not(.selected) {
    background-color: #e3e3e3;
    box-shadow: 0 5px 7px rgba(0,0,0,0.1);
}

.buttons button:active:not(.selected),
.buttons a:active:not(.selected) {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.buttons button.selected:hover,
.buttons button.selected:active,
.buttons a.selected:hover,
.buttons a.selected:active {
    background-color: #ffffff;
    color: #0f5ea6;
    border-color: #0f5ea6;
    box-shadow: inset 0 0 0 1px #0f5ea6, 0 3px 5px rgba(0,0,0,0.1);
}
