/*RESET*/
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

body {
  background: #FFF;
  font-family: Arial;
}

.tab {
  width: 100%;
  margin: 20px auto;
}

.tab input[type] {
  display: none;
}
/*envolve todo o nosso conteúdo*/
.tab label {
  display: block;
  float: left;
  padding: 12px 20px;
  margin-right: 5px;
  cursor: pointer;
  transition: background-color .3s;
  font-size: 0.8em;
}

.tab label:hover,
.tab input:checked + label {
  background: #0066CC;
  color: #fff;
}

.tabs {
  clear: both;
  perspective: 400px;
  -webkit-perspective: 400px;
}

.tabs .content {
  background: #fff;
  width: 100%;
  position: absolute;
  border-top: 2px solid #b1b1b1;
  padding: 10px 30px 40px;
  line-height: 1.4em;
  opacity: 0;
  
  transform-origin: top center;
  transition: opacity .3s, transform 1s;
  z-index: 0;
}

#tab1:checked ~ .tabs .content:nth-of-type(1),
#tab2:checked ~ .tabs .content:nth-of-type(2),
#tab3:checked ~ .tabs .content:nth-of-type(3),
#tab4:checked ~ .tabs .content:nth-of-type(4),
#tab5:checked ~ .tabs .content:nth-of-type(5), 
#tab6:checked ~ .tabs .content:nth-of-type(6) {
  transform: rotateX(0);
  opacity: 1;
  z-index: 1;
}