.tabs section {
  display: none;
  padding: 20px 0 0;
  border-top: 1px solid #ddd;
}

.tabs input {
  display: none;
}

.tabs label {
  display: inline-block;
  margin: 0 0 -1px;
  padding: 15px 20px;
  font-weight: 600;
  text-align: center;
  color: #a09e9e;
  border: 1px solid transparent;
}

.tabs label:before {
  font-family: fontawesome;
  font-weight: normal;
  margin-right: 10px;
}

.tabs label[for*='1']:before { content: '\f02d'; }
.tabs label[for*='2']:before { content: '\f080'; }
.tabs label[for*='3']:before { content: '\f067'; }
.tabs label[for*='4']:before { content: '\f1a9'; }

.tabs label:hover {
  color: #333;
  cursor: pointer;
}

.tabs input:checked + label {
  color: #555;
  border: 1px solid #ddd;
  border-top: 2px solid orange;
  border-bottom: 1px solid #fff;
}

.tabs #tab1:checked ~ #content1,
.tabs #tab2:checked ~ #content2,
.tabs #tab3:checked ~ #content3,
.tabs #tab4:checked ~ #content4, 
.tabs #tab5:checked ~ #content5{
  display: block;
}

@media screen and (max-width: 650px) {
.tabs   label {
    font-size: 0;
  }
.tabs   label:before {
    margin: 0;
    font-size: 18px;
  }
}

@media screen and (max-width: 400px) {
.tabs label {
    padding: 15px;
  }
}