@import url(https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css);
.tab, label, label p {
    transition: .2s;
}
[name="tab"] {
    display: none;
}
html {
    background-color: black;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
p, h3 {
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    max-width: 1080px;
    width: max-content;
}
.tabs {
    display: flex;
    align-items: flex-end;
    height: 2rem;
}
label {
    display: block;
    padding: .5rem .5rem 0 .5rem;
    color: white;
}
label:has(input:checked) {
    padding-bottom: .5rem;
    color: black;
}
.tab, .content {
    border-left: 2px solid rgba(0, 0, 0, 0.2);
    border-right: 2px solid rgba(0, 0, 0, 0.2);
    border-bottom:  3px solid rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}
.tab {
    overflow: hidden;
    width: 100px;
    background-color: green;
    border-radius: 10px 10px 0 0;
}
.tab:has(input:checked), .content {
    background-color: greenyellow;
}
.tab:has(input:checked) {
    background-image: linear-gradient(to top, greenyellow, green);
    border-bottom: none;
}




.content {
    display: none;  
    min-height: 500px;
    border-top: 0;
    padding: 1rem;
}

.container:has(#r1:checked) .content:nth-child(1) {
    display: block; }
.container:has(#r2:checked) .content:nth-child(2) {
    display: block; }
.container:has(#r3:checked) .content:nth-child(3) {
    display: block; }
.container:has(#r4:checked) .content:nth-child(4) {
    display: block; }