@import "compass/css3";

* {
  box-sizing: border-box;
}

body {
  color: #7D7C70;
  font: 1em 'Lucida sans', sans-serif;
}

::selection {
  background-color: #008143;
}

.tabbed2 {
  width: 700px;
  margin: 50px auto;
}

.tabbed2 > input {
  display: none;
}

.tabbed2 > label {
  display: block;
  float: left;
  padding: 12px 20px;
  margin-right: 5px;
  cursor: pointer;
  transition: background-color .3s;
}

.tabbed2 > label:hover,
.tabbed2 > input:checked + label {
  background: #008143;
}

.tabs2 {
  clear: both;
  perspective: 600px;
}

.tabs2 > div {
    width: 700px;
    position: absolute;
    border: 2px solid #008143;
    padding: 10px 30px 40px;
    line-height: 1.4em;
    opacity: 0;
    transform: rotateX(-20deg);
    transform-origin: top center;
    transition: opacity .3s, transform 1s;
    z-index: 0;
    background-color: #FFFFFF;
}

#tab2-nav-1:checked ~ .tabs2 > div:nth-of-type(1),
#tab2-nav-2:checked ~ .tabs2 > div:nth-of-type(2),
#tab2-nav-3:checked ~ .tabs2 > div:nth-of-type(3),
#tab2-nav-4:checked ~ .tabs2 > div:nth-of-type(4){
    transform: rotateX(0);
    opacity: 1;
    z-index: 1;
    font-size: 18px;
}

@media screen and (max-width: 700px) {
  .tabbed2 { width: 400px }
  .tabbed2 > label { display: none }
  .tabs2 > div {
    width: 400px;
    border: none;
    padding: 0;
    opacity: 1;
    position: relative;
    transform: none;
    margin-bottom: 60px;
  }
  .tabs2 > div h2 {
    border-bottom: 2px solid #008143;
    padding-bottom: .5em;
  }
}
