﻿div.tabs {
  width: 100%;
    float:left;
    list-style: none;
    padding: 0;
    margin: 45px auto;
    border-bottom: 0px solid #ccc;
 
}
 
.tabs:after {
    content: '';
    display: table;
    clear: both;
}
 
.tabs input[type=radio] {
    display:none;
}
 
.tabs label {
    display: block;
    float: left;
    width: 33.3333%;
    background-color:gray;
 
    color:#FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-decoration: none;
    text-align: center;
    line-height: 2;
 
    cursor: pointer;
    box-shadow: inset 0 0px #ccc;
    border-bottom: 0px solid #ccc;
 
    -webkit-transition: all 1s; /* Safari 3.1 to 6.0 */
    transition: all 1s;
    
}
  
.tabs label span {
    display:inline-block;
}
 
.tabs label i {
    padding: 5px;
    margin-right: 0;
   
}
 
.tabs label:hover {
    color: #3498db;
    box-shadow: inset 0 0px #3498db;
    border-bottom: 0px solid #3498db;
}
 
.tab-content {
    display: none;
    width: 100%;
    float: left;
    padding: 3%;
    box-sizing: border-box;
  
    background-color:#ffffff;
    border: 1px solid #f0f0f0;

}





.tab-content * {
 
    -webkit-animation: scale 0.7s ease-in-out;
    -moz-animation: scale 0.7s ease-in-out;
    animation: scale 0.7s ease-in-out;
}
 
@keyframes scale {
 
  0% { 
    transform: scale(0.9);
    opacity: 0;
    }
 
  50% {
    transform: scale(1.01);
    opacity: 0.5;
    }
 
  100% { 
    transform: scale(1);
    opacity: 1;
  }
 
}





.tabs [id^="tab"]:checked + label {
    background:#0099FF;
    box-shadow: inset 0 0px #3498db;
    border-bottom: 0px solid #3498db;
    color:#FFFFFF
}
 
#tab1:checked ~ #tab-content1,
#tab2:checked ~ #tab-content2,
#tab3:checked ~ #tab-content3 {
    display: block;
}




@media (max-width: 800px) {   
    .tabs i {
        padding: 5px;
        margin-right: 10px;
    }
 
    .tabs label span {
        display: inline-block;
      
    }
 
    .tabs {
   max-width: 100%;
   margin: 30px auto;
 
    }
    .tabs label{
	font-size:13px;
	
}
 .tab-content {
	font-size:small
}   
}

@media (max-width: 400px) {   
   
    .tabs label{
	font-size:11px;
	 height:25px;
}
