@charset "utf-8";

.tab-wrap {
    display: flex;
    flex-wrap: wrap;
    margin:20px 0;
}
.tab-wrap:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #666;
    display: block;
    order: -1;
}
.tab-label {
    color: White;
    background: White;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    padding: 1px .5em;
    order: -1;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    flex: 1;
    align-items: center;
    display: flex;
    justify-content: center;
}
.tab-label:not(:last-of-type) {
    margin-right: 5px;
}
.tab-content {
    width: 100%;
    height: 0;
    overflow: auto;
    opacity: 0;
}
.tab-switch:checked+.tab-label {
    background: #666;
}
.tab-switch:checked+.tab-label+.tab-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 15px;
    opacity: 1;
    transition: .5s opacity;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
.tab-switch {
    display: none;
}

.tab-switch:checked+.tab-label {
    background: #666;
    margin-top: -0.5rem;
    transition: margin .3s;
    align-items: center;
    justify-content: center;
}
.tab-label{
    border-radius: 0;
    position: relative;
}
.tab-label:after {
    position: absolute;
    top: 0;
    right: 0;
    content: '';
    width: 0;
    border-width: 0 14px 14px 0;
    border-style: solid;
    border-color: #111 #111 #ddd #ddd;
    box-shadow: -1px 1px 2px rgba(0, 0, 0, .1);
}


@media screen and (max-width: 480px) {
    .tab-label:after {
        border-width: 0 8px 8px 0;
    }
}