*, *:after, *:before {
  -moz-box-sizing: border-box;
       box-sizing: border-box;
}

html, body {
  background: #f7f7f7;
  font-family: Helvetica, sans-serif;
}

.wrapper {
  width: 40em;
  margin: auto;
}

.title {
  text-align: center;
  margin: 2em auto;
  color: #777;
}

.tabs-section [type="radio"] {
  display: none;
}
.tabs-section [type="radio"] + label {
  display: inline-block;
  color: #777;
  padding: .5em 1em;
  position: relative;
  left: 6px;
}
.tabs-section [type="radio"] + label:after {
  left: 0;
  border: 1px solid #999;
  border-bottom: none;
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: .4em .4em 0 0;
  background: #f0f0f0;
  -webkit-transform: perspective(100px) rotateX(30deg);
          transform: perspective(100px) rotateX(30deg);
  top: 1px;
}
.tabs-section [type="radio"] + label span {
  position: relative;
  z-index: 2;
  top: .2em;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) {
  visibility: visible;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) * {
  opacity: 1;
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(1) {
  -webkit-transition-delay: 0.525s;
          transition-delay: 0.525s;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(2) {
  -webkit-transition-delay: 0.65s;
          transition-delay: 0.65s;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(3) {
  -webkit-transition-delay: 0.775s;
          transition-delay: 0.775s;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(4) {
  -webkit-transition-delay: 0.9s;
          transition-delay: 0.9s;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(5) {
  -webkit-transition-delay: 1.025s;
          transition-delay: 1.025s;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(6) {
  -webkit-transition-delay: 1.15s;
          transition-delay: 1.15s;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(7) {
  -webkit-transition-delay: 1.275s;
          transition-delay: 1.275s;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(8) {
  -webkit-transition-delay: 1.4s;
          transition-delay: 1.4s;
}
.tabs-section [type="radio"]:nth-of-type(1):checked ~ .tabs-content section:nth-child(1) *:nth-child(9) {
  -webkit-transition-delay: 1.525s;
          transition-delay: 1.525s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) {
  visibility: visible;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) * {
  opacity: 1;
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(1) {
  -webkit-transition-delay: 0.525s;
          transition-delay: 0.525s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(2) {
  -webkit-transition-delay: 0.65s;
          transition-delay: 0.65s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(3) {
  -webkit-transition-delay: 0.775s;
          transition-delay: 0.775s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(4) {
  -webkit-transition-delay: 0.9s;
          transition-delay: 0.9s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(5) {
  -webkit-transition-delay: 1.025s;
          transition-delay: 1.025s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(6) {
  -webkit-transition-delay: 1.15s;
          transition-delay: 1.15s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(7) {
  -webkit-transition-delay: 1.275s;
          transition-delay: 1.275s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(8) {
  -webkit-transition-delay: 1.4s;
          transition-delay: 1.4s;
}
.tabs-section [type="radio"]:nth-of-type(2):checked ~ .tabs-content section:nth-child(2) *:nth-child(9) {
  -webkit-transition-delay: 1.525s;
          transition-delay: 1.525s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) {
  visibility: visible;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) * {
  opacity: 1;
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(1) {
  -webkit-transition-delay: 0.525s;
          transition-delay: 0.525s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(2) {
  -webkit-transition-delay: 0.65s;
          transition-delay: 0.65s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(3) {
  -webkit-transition-delay: 0.775s;
          transition-delay: 0.775s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(4) {
  -webkit-transition-delay: 0.9s;
          transition-delay: 0.9s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(5) {
  -webkit-transition-delay: 1.025s;
          transition-delay: 1.025s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(6) {
  -webkit-transition-delay: 1.15s;
          transition-delay: 1.15s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(7) {
  -webkit-transition-delay: 1.275s;
          transition-delay: 1.275s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(8) {
  -webkit-transition-delay: 1.4s;
          transition-delay: 1.4s;
}
.tabs-section [type="radio"]:nth-of-type(3):checked ~ .tabs-content section:nth-child(3) *:nth-child(9) {
  -webkit-transition-delay: 1.525s;
          transition-delay: 1.525s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) {
  visibility: visible;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) * {
  opacity: 1;
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(1) {
  -webkit-transition-delay: 0.525s;
          transition-delay: 0.525s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(2) {
  -webkit-transition-delay: 0.65s;
          transition-delay: 0.65s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(3) {
  -webkit-transition-delay: 0.775s;
          transition-delay: 0.775s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(4) {
  -webkit-transition-delay: 0.9s;
          transition-delay: 0.9s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(5) {
  -webkit-transition-delay: 1.025s;
          transition-delay: 1.025s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(6) {
  -webkit-transition-delay: 1.15s;
          transition-delay: 1.15s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(7) {
  -webkit-transition-delay: 1.275s;
          transition-delay: 1.275s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(8) {
  -webkit-transition-delay: 1.4s;
          transition-delay: 1.4s;
}
.tabs-section [type="radio"]:nth-of-type(4):checked ~ .tabs-content section:nth-child(4) *:nth-child(9) {
  -webkit-transition-delay: 1.525s;
          transition-delay: 1.525s;
}
.tabs-section [type="radio"]:checked + label:after {
  background: #fff;
  z-index: 2;
}
.tabs-section [type="radio"]:checked + label span {
  z-index: 3;
  color: #333;
}
.tabs-section section {
  overflow-y: auto;
  z-index: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  -webkit-transition: all .4s ease;
          transition: all .4s ease;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2em;
  visibility: hidden;
}
.tabs-section section img {
  max-width: 100%;
}
.tabs-section section * {
  opacity: 0;
  -webkit-transition: all .4s ease;
          transition: all .4s ease;
  -webkit-transform: scale(0.8);
      -ms-transform: scale(0.8);
          transform: scale(0.8);
}
.tabs-section section *:nth-child(1) {
  -webkit-transition-delay: 0.125s;
          transition-delay: 0.125s;
}
.tabs-section section *:nth-child(2) {
  -webkit-transition-delay: 0.25s;
          transition-delay: 0.25s;
}
.tabs-section section *:nth-child(3) {
  -webkit-transition-delay: 0.375s;
          transition-delay: 0.375s;
}
.tabs-section section *:nth-child(4) {
  -webkit-transition-delay: 0.5s;
          transition-delay: 0.5s;
}
.tabs-section section *:nth-child(5) {
  -webkit-transition-delay: 0.625s;
          transition-delay: 0.625s;
}
.tabs-section section *:nth-child(6) {
  -webkit-transition-delay: 0.75s;
          transition-delay: 0.75s;
}
.tabs-section section *:nth-child(7) {
  -webkit-transition-delay: 0.875s;
          transition-delay: 0.875s;
}
.tabs-section section *:nth-child(8) {
  -webkit-transition-delay: 1s;
          transition-delay: 1s;
}
.tabs-section section *:nth-child(9) {
  -webkit-transition-delay: 1.125s;
          transition-delay: 1.125s;
}
.tabs-section .tabs-content {
  border: 1px solid #999;
  border-top: none;
  box-shadow: 0 -1px 0 #222;
  border-radius: 0 .2em .2em .2em;
  position: relative;
  height: 20em;
  overflow: hidden;
  background: #fff;
}
.tabs-section .tabs-content:before {
  content: '';
  z-index: 9;
  pointer-events: none;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 90%, rgba(255, 255, 255, 0.9) 100%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 90%, rgba(255, 255, 255, 0.9) 100%);
}
