* {
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font: 1em Arial, sans-serif;
}

.tabbed {
    width: 720px;
    margin: 120px auto;
}

.tabbed > input {
    display: none;
}

.tabbed > label {
    display: block;
    float: left;
    padding: 12px 22px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 20px;
}

.tabbed > label:hover,
.tabbed > input:checked + label {
    background: #11bfcb;
}

.tabs {
    clear: both;
    perspective: 600px;
    margin-top: 40px;
}

.tabs > div {
    width: 100%;
    position: absolute;
    border: 4px solid #11bfcb;
    padding: 30px;
    line-height: 1.6em;
    opacity: 0;
    transform: rotateX(-15deg);
    transform-origin: top center;
    transition: opacity 0.3s ease, transform 0.6s ease;
    z-index: 0;
    border-radius: 40px;
    background: #0a0a0a;
}

#tab-nav-1:checked ~ .tabs > div:nth-of-type(1),
#tab-nav-2:checked ~ .tabs > div:nth-of-type(2) {
    opacity: 1;
    transform: rotateX(0);
    z-index: 1;
}

h2, h3 {
    color: #11bfcb;
}
