.tabcontainer {
  /*min-width: 320px;*/
  max-width: 800px;
  padding: 5px;
  margin: 0 auto;
}

input {
  display: none;
}

section {
    display: none;
    clear: both;
	padding: 10px 10px 10px 14px; 
    background: #eee;
    margin: 30px 0px 0px 0px;
   -webkit-box-shadow: 2px 1px 8px -1px rgba(0,0,0,0.75);
   -moz-box-shadow: 2px 1px 8px -1px rgba(0,0,0,0.75);
    box-shadow: 2px 1px 8px -1px rgba(0,0,0,0.75);
    border: 4px 4px 4px 4px solid #222;

	
	}
/* Content*/
#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5 {
    display: block;
}
#tab1:checked ~ #content1 img,
#tab2:checked ~ #content2 img,
#tab3:checked ~ #content3 img,
#tab4:checked ~ #content4 img,
#tab5:checked ~ #content5 img {
    height: 99px;
	width: 99px;
    float: left;
	margin: 12px 14px 1px 0px; 
	border: 4px solid #fff;
}	
#tab1:checked ~ #content1 h3,
#tab2:checked ~ #content2 h3,
#tab3:checked ~ #content3 h3,
#tab4:checked ~ #content4 h3,
#tab5:checked ~ #content5 h3 {
    font-size: 20px;
}		

/* Tabs */
label {
    box-sizing: border-box;
    float: left;
    width:20%;
    padding: 10px 10px;
    margin: 5px 0px 5px 0px;
    text-align: center;
    color: #bbb;
    border: 1px solid #fff;
    background-color: #F1F1F1;
   -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none;
   -webkit-box-shadow: 2px 1px 8px -1px rgba(0,0,0,0.75);
   -moz-box-shadow: 2px 1px 8px -1px rgba(0,0,0,0.75);
    box-shadow: 2px 1px 8px -1px rgba(0,0,0,0.75);
  
}

label:hover {
    color: #888;
    cursor: pointer;
    background-color: #ddd;
}

input:checked + label {
    color: #555;
    border: 1px solid #ddd;
    border-top: 3px solid #58ADB4;
    border-bottom: 1px solid #fff;
    background-color: rgba(153, 204, 204, 0.3);
}

/* Icons */
label:before {
    font-family: fontawesome;
    font-weight: normal;
    margin-right: 10px;
    color: #B77E55;
}

label[for*='1']:before { content: '\f007'; }
label[for*='2']:before { content: '\f013'; }
label[for*='3']:before { content: '\f06c'; }
label[for*='4']:before { content: '\f15c'; }
label[for*='5']:before { content: '\f0f5'; }


@media screen and (max-width: 710px) {
  label {
    font-size: 0;
  }
  label:before {
    margin: 0;
    font-size: 20px;
    padding: 10px 5px 10px 5px;
  }
}

@media screen and (max-width: 400px) {
  label {
    
  }
}