/*
 CSS for the main interaction
*/

/* fixing align to left on small display */
.submit-row {
    display: block !important;
}

.tabset>input[type="radio"] {
    position: absolute;
    left: -200vw;
}

input[type=submit] {
    width: 50%;
}

.tabset .tab-panel {
    display: none;
}

.tabset>input:first-child:checked~.tab-panels>.tab-panel:first-child,
.tabset>input:nth-child(3):checked~.tab-panels>.tab-panel:nth-child(2),
.tabset>input:nth-child(5):checked~.tab-panels>.tab-panel:nth-child(3),
.tabset>input:nth-child(7):checked~.tab-panels>.tab-panel:nth-child(4),
.tabset>input:nth-child(9):checked~.tab-panels>.tab-panel:nth-child(5),
.tabset>input:nth-child(11):checked~.tab-panels>.tab-panel:nth-child(6) {
    display: block;
}

.tabset>label {
    position: relative;
    display: inline-block;
    padding: 15px 15px 25px;
    border: 1px solid transparent;
    border-bottom: 0;
    cursor: pointer;
    font-weight: 600;
}

.tabset>label::after {
    content: "";
    position: absolute;
    left: 15px;
    bottom: 10px;
    width: 70%;
    height: 4px;
    background: #8d8d8d;
}

.tabset>label:hover {
    color: var(--button-hover-bg);
}

.tabset>label:hover::after,
.tabset>input:focus+label::after,
.tabset>input:checked+label::after {
    background: var(--button-hover-bg);
}

.tabset>input:checked+label {
    border-color: #999;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.tab-panel {
    padding-top: 10px;
    border-top: 1px solid #999;
}

/*
 Demo purposes only
*/

.tabset {
    max-width: 65em;
}