

*,
*:after,
*:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
	content: " ";
	display: table;
}

.clearfix:after {
	clear: both;
}

label {
  font-weight: 700;
  font-size: 13px;
  display: block;
  float: left;
  width: 50%;
  padding: 18px;
  color: #757575;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border-right:1px solid #f0f2f4;

}


label:last-child {  border-right:none;}

/*Fun begins*/
.tab_container {
	width: 400px;
	margin: 0px auto;
	height:50px;
	position: relative;
	border:1px solid #f0f2f4;
	
}


#tab1:checked ~ #content1,
#tab2:checked ~ #content2{
  display: block;
  padding: 20px;
  background: #fff;
  color: #999;
  border-bottom: 2px solid #f0f0f0;
}

.tab_container .tab-content p,
.tab_container .tab-content h3 {
  -webkit-animation: fadeInScale 0.7s ease-in-out;
  -moz-animation: fadeInScale 0.7s ease-in-out;
  animation: fadeInScale 0.7s ease-in-out;
}
.tab_container .tab-content h3  {
  text-align: center;
}

.tab_container [id^="tab"]:checked + label {

  box-shadow: inset 0 3px #ff007f;
  color:#ff007f;
}

.tab_container [id^="tab"]:checked + label .fa {
  color: #0CE;
}

label .fa {
  font-size: 1.3em;
  margin: 0 0.4em 0 0;
}

/*Media query*/
@media only screen and (max-width: 900px) {
  label span {
    display: block;
  }
  
  .tab_container {
    width: 98%;
	height:52px;
  }
}



@media only screen and (max-width: 720px) {
  label span {
    display: block;
  }
 
  .tab_container {
    width: 100%;
  }
}

/*Content Animation*/
@keyframes fadeInScale {
  0% {
  	transform: scale(0.9);
  	opacity: 0;
  }
  
  100% {
  	transform: scale(1);
  	opacity: 1;
  }
}



.new_tab_container {
	width: 1200px;
	margin: 0px auto;
	height:104px;
	position: relative;
	
	
}


label.newtab {
  font-weight: 700;
  font-size: 13px;
  display: block;
  float: left;
  width: 19.999%;
  padding: 18px;
  color: #757575;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border:1px solid #f0f2f4;

}

label.newtab:last-child { border-right:block;}
label.toptab { border-top:none;}
label.righttab {border-right:none;}



.new_select_area {width:1200px; margin:20px auto; display:none;}

.new_tab_container [id^="tab"]:checked + label.newtab {
  width: 19.999%;
  border:1px solid #ff007f;
  color:#ff007f;
}

.new_tab_container [id^="tab"]:hover + label.newtab{
  width: 20%;
  border:1px solid #ff007f;
  color:#ff007f;
}

