.x-box {
    max-width: 300px;
    height: 45px;
    line-height: 45px;
    cursor: pointer;
    margin: 0;
    border-radius: 5px;
    border: 1px groove #3a4058;
    transition: 0s ease;
    font-size: 1.2em;
    padding: 0 3px 0 8px;
    transition: all .5s ease;
    user-select: none;
    overflow: hidden;
}

.x-box:nth-child(5n-4) {
    border-left: solid #ff5757;
}

.x-box:nth-child(5n-3) {
    border-left: solid #00cc00;
}

.x-box:nth-child(5n-2) {
    border-left: solid #ff9100;
}

.x-box:nth-child(5n-1) {
    border-left: solid #00d9ff;
}

.x-box:nth-child(5n) {
    border-left: solid yellow;
}

.x-box:hover {
    background-color: #37394a;
}