.tab {
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background-color: #f8f8f8;
    border-radius: 4px 4px 0 0;
}

/* Force black text for all button states */
.tab button,
.tab button:hover,
.tab button:active,
.tab button:focus,
.tab button.active {
    color: #000000 !important;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 16px;
    transition: 0.3s;
    font-size: 16px;
}

.tab button:hover {
    background-color: #c8c8c8;
}

.tab button.active {
    background-color: #e5e5e5;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}