/* https://codepen.io/renatorib/pen/rlpfj */
/* Component Needs */
.pc-tab > input, .pc-tab section > div {
    display: none;
}
#tab1:checked ~ section .tab1, #tab2:checked ~ section .tab2, #tab3:checked ~ section .tab3 {
    display: block;
}
#tab1:checked ~ nav .tab1, #tab2:checked ~ nav .tab2, #tab3:checked ~ nav .tab3 {
    color: red;
}
/* Visual Styles */
.pc-tab {
    width: 100%;
    max-width: 700px;
    height: 70px;
}
.pc-tab ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pc-tab ul li label {
    float: left;
    padding: 15px 25px;
    border: 1px solid #ddd;
    border-bottom: 0;
    background: #eee;
    color: #aaa;
    cursor: pointer;
    margin: 0;
}
.pc-tab ul li label:hover {
    background: #ddd;
}
.pc-tab ul li label:active {
    background: #fff;
}
.pc-tab ul li:not(:last-child) label {
    border-right-width: 0;
}
.pc-tab section {
    clear: both;
}
.pc-tab section div {
    padding: 20px;
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    line-height: 1.5em;
    letter-spacing: 0.3px;
    color: #444;
}
.pc-tab section div h2 {
    margin: 0;
    letter-spacing: 1px;
    color: #34495e;
}
#tab1:checked ~ nav .tab1 label, #tab2:checked ~ nav .tab2 label, #tab3:checked ~ nav .tab3 label {
    background: white;
    color: #111;
    position: relative;
}
#tab1:checked ~ nav .tab1 label:after, #tab2:checked ~ nav .tab2 label:after, #tab3:checked ~ nav .tab3 label:after {
    content: '';
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    left: 0;
    bottom: -1px;
}
