/*Fun begins*/
.tab_container {
	width: 100%;
	margin: 0 auto;
	position: relative;
  border-top: 0;
  margin-bottom: 1.5em;
}

.tab_container input,.tab_container section {
  clear: both;
  padding-top: 10px;
  display: none;
}

.tab_container label {
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
  /* float: left; */
  min-width: 20%;
  padding: .5em 1.7em;
  color: #cecece;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: #f0f0f0;
  margin-bottom: -2px;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  margin-left: 0!important;
  margin-right: 0!important;
}
.tab_container label.first{
  margin-left: auto;
}
.tab_container label.last{
  margin-right: auto;
}

.tab_container #tab1:checked ~ #content1,
.tab_container #tab2:checked ~ #content2,
.tab_container #tab3:checked ~ #content3,
.tab_container #tab4:checked ~ #content4,
.tab_container #tab5:checked ~ #content5 {
  display: block;
  padding: 20px;
  background: #fff;
  /* color: #999; */
  /* border-bottom: 2px solid #f0f0f0; */
  border: 2px solid #f0f0f0;
  line-height: 1.3em;
}

.tab_container .tab-content p,
.tab_container .tab-content h3,
.tab_container .tab-content ol {
  -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 {
  background: #fff;
  box-shadow: inset 0 3px #223d80;
  font-weight: bold;
  border-left: 2px solid #f0f0f0;
  border-right: 2px solid #f0f0f0;
  color: #757575;
}
.tab_container [id^="tab"] + label h3,
.tab_container [id^="tab"] + label h2{
  font-size: 1.1em;
}
.tab_container [id^="tab"]:checked + label h3,
.tab_container [id^="tab"]:checked + label h2{
  font-weight: bold;
}

.tab_container [id^="tab"]:checked + label .fa {
  color: #223d80;
}

.tab_container label .fa {
  font-size: 1.1em;
  margin: 0 0.4em 0 0;
}

/*Media query*/
@media only screen and (max-width: 930px) {
  .tab_container label h3,
  .tab_container label h2 {
    font-size: 1em;
  }
  .tab_container label .fa {
    font-size: 1em;
  }
}

@media only screen and (max-width: 768px) {
  .tab_container label span {
    display: none;
  }

  .tab_container label .fa {
    font-size: 1.3em;
    margin: 0 ;
  }

  .tab_container {
    width: 98%;
  }
}

/*Content Animation*/
@keyframes fadeInScale {
  0% {
  	transform: scale(0.9);
  	opacity: 0;
  }
  
  100% {
  	transform: scale(1);
  	opacity: 1;
  }
}