.tabs {
  margin-top: 50px;
  width: 930px;
  margin: 0 auto
}

@media screen and (min-width:1025px) and (max-width:1240px) {
  .tabs {
    margin-top: 50px;
    width: 100%;
    margin: 0 auto
  }
}

@media screen and (min-width:768px) and (max-width:1024px) {
  .tabs {
    margin-top: 50px;
    width: 100%;
    margin: 0 auto
  }
}

@media screen and (min-width:320px) and (max-width:767px) {
  .tabs {
    margin-top: 50px;
    width: 100%;
    margin: 0 auto
  }
}

.tab_item {
  width: 33.33333%;
  height: 60px;
  background-color: #d9d9d9;
  line-height: 60px;
  font-size: 1em;
  color: #fff;
  display: block;
  float: left;
  text-align: center;
  font-weight: 700;
  transition: all .2s ease
}

.tab_item:hover {
  opacity: .75
}

.tab_item_one {
  width: 100%;
}

.tab_item_two {
  width: 50%;
}

input[name=tab_item] {
  display: none
}

.tab_content,
.tab_content_oct {
  display: none;
  padding: 20px 40px 20px 40px;
  clear: both;
  overflow: hidden;
}

.tab_content_oct {
  background-color: #ead883
}

.tab_content_nov {
  background-color: #80c3ea
}

.tab_content_dec,
.tab_content_nov {
  display: none;
  padding: 20px 40px 20px 40px;
  clear: both;
  overflow: hidden
}

.tab_content_dec {
  background-color: #a4eac8
}

#all:checked ~ #all_content,
#design:checked ~ #design_content,
#programming:checked ~ #programming_content {
  display: block
}

.tabs input:checked + .tab_item {
  background-color: #5ab4bd;
  color: #fff
}

.tabs input:checked + .tab_oct {
  background-color: #eaad00;
  color: #fff
}

.tabs input:checked + .tab_nov {
  background-color: #0382cb;
  color: #fff
}

.tabs input:checked + .tab_dec {
  background-color: #10a64b;
  color: #fff
}

@media screen and (min-width:320px) and (max-width:767px) {
  .tab_item {
    width: 33.33333%;
    height: 60px;
    border-bottom: 3px solid #5ab4bd;
    background-color: #d9d9d9;
    line-height: 60px;
    font-size: 1.2em;
    color: #fff;
    display: block;
    float: left;
    text-align: center;
    font-weight: 700;
    transition: all .2s ease
  }

  .tab_item_one {
    width: 100%;
  }

  .tab_item_two {
    width: 50%;
  }


  .tab_content,
  .tab_content_oct {
    display: none;
    padding: 1em;
    clear: both;
    overflow: hidden
  }

  .tab_content_dec,
  .tab_content_nov {
    display: none;
    padding: 1em;
    clear: both;
    overflow: hidden
  }
}

.tab_oct {
  background-color: #eaad00;
  border-bottom: 3px solid #eaad00;
}

.tab_nov {
  background-color: #0382cb;
  border-bottom: 3px solid #0382cb;
}

.tab_dec {
  background-color: #10a64b;
  border-bottom: 3px solid #10a64b;
}
