.test {
    font-size: 1rem;
}

.tab-container {
    margin: 0 0 20px 0;
    min-width: 320px;
    max-width: 100%;
}
.tab-container .content {
    background: #fff;
    color: #373737;
}
.tab-container .content > div {
    display: none;
    padding: 20px 25px 5px;
}
.tab-container input {
    display: none;
}
.tab-container label {
    color: #666;
    display: inline-block;
    padding: 15px 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: -1px;
    margin-right: -4px;
    border: 1px solid #d3d3d3;
    background-image: linear-gradient(bottom, #F7F7F7 0%, #FFFFFF 100%);
    background-image: -o-linear-gradient(bottom, #F7F7F7 0%, #FFFFFF 100%);
    background-image: -moz-linear-gradient(bottom, #F7F7F7 0%, #FFFFFF 100%);
    background-image: -webkit-linear-gradient(bottom, #F7F7F7 0%, #FFFFFF 100%);
    background-image: -ms-linear-gradient(bottom, #F7F7F7 0%, #FFFFFF 100%);
    background-color: #F9F9F9;
}
.tab-container label:hover {
    cursor: pointer;
}
.tab-container input:checked + label {
    color: #373737;
    background: #fff;
    border-bottom-color: #fff;
}
.tab-container #tab1:checked ~ .content #content1,
.tab-container #tab2:checked ~ .content #content2,
.tab-container #tab3:checked ~ .content #content3,
.tab-container #tab4:checked ~ .content #content4,
.tab-container #tab5:checked ~ .content #content5,
.tab-container #tab6:checked ~ .content #content6,
.tab-container #tab7:checked ~ .content #content7,
.tab-container #tab8:checked ~ .content #content8 {
    display: block;
    border: 1px solid #d3d3d3;
}