.tabs { width: 95%; padding: 0px; margin: 0 auto; max-width: 950px;}
.tabs>input { display:none; }
.tabs>div { display: none;
}
.tabs>label {
    display: inline-block;
    padding: 7px;
    padding-left: 2px;
    text-align: center;
    width: 100px;
    font-weight: bold;
    font-size: 14px;
    color: #666666;
    border: 1px solid #C0C0C0;
    border-radius:20px 20px 0 0;
    background: #daf9f2;
    cursor: pointer;
}
.tabs>input:checked + label {
    color: #000000;
    border: 1px solid #C0C0C0;
    margin-right: 2px;
    background: #9cf78b;;
}

#tab_1:checked ~ #txt_1 {
  padding: 20px;
}

#tab_2:checked ~ #txt_2 {
  padding: 20px;
}

#tab_3:checked ~ #txt_3 {
  padding: 20px;
}

#tab_4:checked ~ #txt_4 {
  padding: 20px;
}
#tab_5:checked ~ #txt_5 {
  padding: 20px;
}
#tab_6:checked ~ #txt_6 {
  padding: 20px;
}

#tab_1:checked ~ #txt_1,
#tab_2:checked ~ #txt_2, 
#tab_3:checked ~ #txt_3,
#tab_4:checked ~ #txt_4,
#tab_5:checked ~ #txt_5,
#tab_6:checked ~ #txt_6 { 
  display: block; 
  background: rgba(240, 255, 255, 0.79);
  min-height: 616px;
  margin-top: -15px;
  border: 2px solid rgb(156, 247, 139);
  text-align: justify;
  border-radius: 15px;
  margin-left: -15px;
}

.mymath {
  height: 150px;
  width: 25%;
  max-width: 170px;
  min-width: 150px;
  float: left;
  margin: 10px;
  line-height: 1;
}

.mymath-img {
  position: relative;
  height: 150px;
  background-image: url(/wp-content/uploads/2019/12/fon_trening-8.jpg);
  border-radius: 25px;
}

.mymath-img img {
  width: 100%;
  height: 100%;
  max-width: 202px;
  min-width: 150px;
  border-radius: 25px;
}

.middle,
.bottom-right,
.top-left {
  width: 13.5%;
  ;
  height: 6.5%;
  ;
  position: absolute;
  font-size:28px;
}

.top-left {
  background-color: rgba(233, 240, 243, 0.81);
  margin-left: 4px;
  margin-top: 7px;
  text-align: center;
  width: 95%;
  font-weight: bold;
  height: 135px;
  border-radius: 25px;
}

.caption-txt {
  width: 150px;
  display: table-cell;
  vertical-align: middle;
  height: 120px;
  padding: 7px;
}

.middle {
  background-color: #fff;
  top: 60%;
  left: 54%;
}

.bottom-right {
  background-color: #008000;
  bottom: 47%;
  right: 22%;
  font-size:16px;
}

.math_h1 {
color: #bb0a0a;
font-size: 20px;
text-align: center;
}

.math_h2 {
color: #e44c0f;
font-size: 16px;
}
#radugaimg {
  margin-top: 20px;
}

h1 {
  padding-left: 20px;
  padding-top: 20px;
}

.padder1 {
  width: 650px;
  margin: 0 auto;
}
.widget {
  float: left;
  width: 200px;
  padding-right: 50px;
}
.widgettitle {
  text-align: center;
}

@media only screen and (max-width: 1090px) {
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 24px;
  }

    .math_h1 {
      font-size: 18px;
    }
    .math_h2 {
      font-size: 16px;
    }
}

@media only screen and (max-width: 768px) {

  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 22px;
  }
  .tabs>label {
      width: 80px;
      font-size: 12px;
  }

}

@media only screen and (max-width: 400px) { 
  .tabs>label {
      width: 60px;
      font-size: 10px;
      word-break: break-all;
      padding-left: 10px;
  }
  .mymath {
    min-width: 130px;
  }
}