

main {
  min-width: 320px;
  max-width: 800px;
  padding: 5px;
  margin: 0 auto;
  /*background: #fff;*/
}

sectiontab {
  display: none;
  padding: 10px 0 0;
  border: 1px solid #ddd;
}

#tab1, #tab2, #tab3, #tab4, #tab5, #tab6, #tab7 {
  display: none;
}

label {
  display: inline-block;
  margin: 0 0 -1px;
  padding: 5px;
  /*font-weight: 600;*/
  text-align: center;
  color: #FFF;
  background: grey;
  border: 1px solid transparent;
/*width: 19%;*/
}

label:before {
  font-family: fontawesome;
  font-weight: normal;
  margin-right: 10px;
}
/*
label[for*='1']:before {
  #content: '\f1cb';
}

label[for*='2']:before {
  #content: '\f17d';
}

label[for*='3']:before {
  #content: '\f16b';
}

label[for*='4']:before {
  #content: '\f1a9';
}

label[for*='5']:before {
  #content: '\f1a9';
}

label[for*='6']:before {
  #content: '\f1a9';
}
*/
label:hover {
  color: #bbb;
  cursor: pointer;
}

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

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5,
#tab6:checked ~ #content6,
#tab7:checked ~ #content7 {
  display: block;
}

@media screen and (max-width: 650px) {
  label {
    #font-size: 0;
  }

  label:before {
    margin: 0;
    font-size: 18px;
  }
}
@media screen and (max-width: 400px) {
  label {
/*    padding: 5px;*/
  }
}
