*{box-sizing:border-box} 
.tabs { 
  padding: 0px; 
  margin: 0 auto; 
  position: relative;  
} 

.tabs-block{
  padding-top: 80px;
}

section { 
  display: none;  
  padding: 15px; 
  position: absolute; 
  top: 0; 
} 
p { 
  margin: 0; 
} 
input { 
  display: none; 
} 
label { 
  display: block; 
  width: 255px; 
  text-align: center;
  height: 255px;
  padding: 15px; 
  color: #4F5966; 
  background: #fff; 
  cursor: pointer; 
  -webkit-box-shadow: 0px 1px 10px 0px rgba(34, 60, 80, 0.2);
-moz-box-shadow: 0px 1px 10px 0px rgba(34, 60, 80, 0.2);
box-shadow: 0px 1px 10px 0px rgba(34, 60, 80, 0.2);
} 
label img{
    position: absolute;
    top: 40px;
    margin: 0 auto;
    left: 0;
    right: 0;
}
label span{
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    font-weight: bold;
    font-size: 18px;
}
input:checked + .tabs-text-1 { 
  color: #fff; 
  background: url(img/group-1.svg);
} 
input:checked + .tabs-text-2 { 
  color: #fff; 
  background: url(img/group-2.svg);
} 
input:checked + .tabs-text-3 { 
  color: #fff; 
  background: url(img/group-3.svg);
} 
input:checked + .tabs-text-4 { 
  color: #fff; 
  background: url(img/group-4.svg);
} 
input:checked + label img{ 
    display: none;
} 
#tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4 { 
  display: block; 
} 
section { 
  animation: scale 0.7s ease-in-out; 
  font-size: 18px;
} 
@keyframes scale { 
  0% { 
  transform: scale(0.9); 
  opacity: 0; 
  } 
  50% { 
  transform: scale(1.005); 
  opacity: 0.5; 
  } 
  100% { 
  transform: scale(1); 
  opacity: 1; 
  } 
}

.tabs-text-1{
    position: absolute;
    top: 30px;
    right: 450px;
}

.tabs-text-2{
    position: absolute;
    top: 330px;
    right: 450px;
}

.tabs-text-3{
    position: absolute;
    top: 130px;
    right: 150px;
}

.tabs-text-4{
    position: absolute;
    top: 430px;
    right: 150px;
}

#container{
    height: 814px;
}

#container h2{
    color: #608DC3; 
    font-size: 48px;
    margin-bottom: 30px;
}

.section{
    width: 400px;
    margin-top: 160px;
}