@import url('https://fonts.googleapis.com/css?family=Oswald:200,300,400,500,600,700');
@import url('https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i');

*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
}

body {
  font: 14px/1 'lato', sans-serif;
  color: #555;
  background: #eee;
}
.tab-container {width:100%; height:auto; overflow:hidden;}

.tab-container p {
  margin: 0 0 20px;
  line-height: 27px;
  color:#606060;
  font-size:16px;
}

.tab-container main {
  width:100%;
  height:auto;  
  margin: 0 auto;
  background: #fff;
}

.tab-container section {
  display: none;
  padding: 35px 0 0;
  border-top: 0px solid #ddd;
}

.tab-container input {
  display: none;
}

.tab-container label {
  display: inline-block;
  margin: 0 0 -1px;
  font-family:oswald;
  padding:0px 25px 15px 0;
  font-weight: 600;
  text-align: center;
  color: #515151;
  font-size:18px;
  font-weight:700;
  bottom-border:2px solid #fff;
  text-transform:uppercase;
}

.tab-container label:before {
  font-family: fontawesome;
  font-weight: normal;
  margin-right: 10px;
}

.tab-container label[for*='1']:before { content: '\f1cb'; }
.tab-container label[for*='2']:before { content: '\f17d'; }
.tab-container label[for*='3']:before { content: '\f16b'; }
.tab-container label[for*='4']:before { content: '\f1a9'; }

.tab-container label:hover {
  color: #79b6c8;
  cursor: pointer;
  border-bottom:3px solid #79b6c8;
}

.tab-container input:checked + label {
  color: #79b6c8;
  border: 0px solid #ddd;
  border-top: 0px solid orange;
  border-bottom: 0px solid #fff;
  border-bottom:3px solid #79b6c8;
}

.tab-container #tab1:checked ~ #content1,
.tab-container #tab2:checked ~ #content2,
.tab-container #tab3:checked ~ #content3,
.tab-container #tab4:checked ~ #content4 {
  display: block;
}

@media screen and (max-width: 650px) {
  .tab-container label {
    font-size: 0;
  }
  .tab-container label:before {
    margin: 0;
    font-size: 18px;
  }
}

@media screen and (max-width: 400px) {
  .tab-container label {
    padding: 15px;
  }
}