.mymath {
  height: 150px;
  width: 25%;
  max-width: 170px;
  min-width: 150px;
  float: left;
  margin: 10px;
  line-height: 1.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: 5px;
  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: 18px;
  display: block;
  margin-top: 10px;
}
@media only screen and (max-width: 1090px) {
  h1 {
  font-size: 26px;
}
h2 {
  font-size: 24px;
}

.mymath {
  line-height: 0.9;
}

  .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;
}


}
