*,
*: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;
}

.tab_container {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.tab_container input[type="radio"] {
  display: none;
}

.tab_container section {
  clear: both;
  padding-top: 10px;
  display: none;
}

label {
  font-weight: 400;
  font-size: 1.4rem;
  display: block;
  float: right;
  padding: 1em 1em 0 1em;
  color: #464855;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4,
#tab5:checked ~ #content5,
#tab6:checked ~ #content6,
#tab7:checked ~ #content7,
#tab8:checked ~ #content8,
#tab9:checked ~ #content9,
#tab10:checked ~ #content10,
#tab11:checked ~ #content11,
#tab12:checked ~ #content12 {
  display: block;
  color: #999;
}

.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 [id^="tab"]:checked + label {
  box-shadow: 0 -2px #0ce;
}

.tab_container [id^="tab"]:checked + label .fa {
  color: #0CE;
}

label .fa {
  font-size: 1.3em;
  margin: 0 0.4em 0 0;
}

@media only screen and (max-width: 768px) {
  .tab_container {
    width: 98%;
  }
}

.tab-row {
  width: 100%;
  clear: both;
  overflow: hidden;
}

.top-tabs {
  margin-bottom: 4px;
}

.bottom-tabs {
  margin-bottom: 10px;
}

.top-tabs label,
.bottom-tabs label {
  float: left;
}

.top-tabs label {
  font-size: 1.4rem;
  color: #464855;
  padding: 1em 1em 0 1em;
}

.bottom-tabs label,
label.small-blue-tab {
  font-size: 1.1rem;
  color: #007bff;
  padding: 0.4em 0.8em 0 0.8em;
}

.bottom-tabs label span,
label.small-blue-tab span {
  color: #007bff;
}

/* checked olan tab label görünümü için */
/* çünkü label artık inputun hemen yanında değil */
#tab1:checked ~ .top-tabs label[for="tab1"],
#tab2:checked ~ .top-tabs label[for="tab2"],
#tab3:checked ~ .bottom-tabs label[for="tab3"],
#tab4:checked ~ .bottom-tabs label[for="tab4"],
#tab5:checked ~ .bottom-tabs label[for="tab5"],
#tab6:checked ~ .bottom-tabs label[for="tab6"],
#tab7:checked ~ .bottom-tabs label[for="tab7"],
#tab8:checked ~ .bottom-tabs label[for="tab8"],
#tab9:checked ~ .bottom-tabs label[for="tab9"],
#tab10:checked ~ .bottom-tabs label[for="tab10"],
#tab11:checked ~ .bottom-tabs label[for="tab11"],
#tab12:checked ~ .bottom-tabs label[for="tab12"] {
  box-shadow: 0 -2px #0ce;
  color: #0ce;
}

#tab3:checked ~ .bottom-tabs label[for="tab3"] span,
#tab4:checked ~ .bottom-tabs label[for="tab4"] span,
#tab5:checked ~ .bottom-tabs label[for="tab5"] span,
#tab6:checked ~ .bottom-tabs label[for="tab6"] span,
#tab7:checked ~ .bottom-tabs label[for="tab7"] span,
#tab8:checked ~ .bottom-tabs label[for="tab8"] span,
#tab9:checked ~ .bottom-tabs label[for="tab9"] span,
#tab10:checked ~ .bottom-tabs label[for="tab10"] span,
#tab11:checked ~ .bottom-tabs label[for="tab11"] span,
#tab12:checked ~ .bottom-tabs label[for="tab12"] span,
#tab1:checked ~ .top-tabs label[for="tab1"] span,
#tab2:checked ~ .top-tabs label[for="tab2"] span {
  color: #0ce;
}

/* Content Animation */
@keyframes fadeInScale {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}