.tabs { width: 100%; padding: 0px; margin: 0 auto; }
.tabs>input { display:none; }
.tabs>div { display: none;
}
.tabs>label {
    display: inline-block;
    padding: 7px;
    margin: 0 -5px -1px 0;
    text-align: center;
    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_2:checked ~ #txt_2 {
  padding: 20px;
}

#tab_1:checked ~ #txt_1,
#tab_2:checked ~ #txt_2 { 
  display: block; 
  background: rgba(240, 255, 255, 0.79);
  width: 99%;
  height: auto;
  min-height: 420px;
  margin: 0 auto;
  max-width: 600px;
  border: 2px solid rgb(156, 247, 139);
  text-align: justify;
}

#txt_2 h3 {
  font-size: 18px;
  width: 100%;
}

 .mycalc {
 
width: 90%;
max-width: 400px;
height: 380px;
margin: 0 auto;
padding: 5px;
 }
 #menulevel {
  font-size: 18px;
}
 .bttn, input[type=button] { 
    font-size: 22px; /* Размер шрифта */
    font-family: Verdana, Arial, Helvetica, sans-serif; 
    color: #000; /* Цвет текста */
    width: 60px;
    height: 44px;
    text-align: center;
    background-color: #ffffff;
    margin-bottom: 5px;
    margin-left: 2px;
    padding: 0;
    border: 1px solid green;
   }
  
input.bttnok.bttn {
    width: 64px;
    height: 172px;
    position: absolute;
     }
  
   .bstart {
  -webkit-border-radius: 28;
  -moz-border-radius: 28;
  border-radius: 28px;
  font-family: Arial;
  color: #ffffff;
  font-size: 16px;
  background: #4eba3d;
  padding: 5px 10px 5px 10px;
  text-decoration: none;

}

.bstart:hover {
  background: #4eba3d;
  text-decoration: none;
  color: #ffffff;
}

.bend {
  -webkit-border-radius: 28;
  -moz-border-radius: 28;
  border-radius: 28px;
  font-family: Arial;
  color: #ffffff;
  font-size: 16px;
  background: rgb(251, 168, 0);
  padding: 5px 10px 5px 10px;
  text-decoration: none;
  float: left;
}

.bend:hover {
  background: rgb(251, 168, 0);
  text-decoration: none;
  color: #ffffff;
}

.pr {
  height: 105px;
  margin-bottom: 15px;
  margin-top: -15px; 
  width: 70px; 
  float: left;
}

.primer {

  height: 150px; 
  margin-top: 5px; 
  width: 100%;
}

   .rslt {
   	height: 50px;
   	width: 254px;
   	margin-bottom: 25px;
   	font-size: 24px;

   }

   .rslt01 {
    height: 45px;
    width: 64px;
    margin-bottom: 2px;
    font-size: 24px;
   }

    .rslt01a {
    height: 25px;
    width: 44px;
    margin-bottom: 2px;
    font-size: 24px;
   }
   
   .pryklad {
   	font-size: 28px;
   	font-weight: bold;
    margin-bottom: 10px;


   }
   .clf {
    color: #c94c4c;
    font-size: 48px;
    margin: 1px;
   }

   h3 {
    font-size: 26px;
    font-weight: bold;
    width: 250px;
   } 

   .virno {
    padding: 5px;
    width: 70px;
    float: right;
    margin-top: -30px;
   }
   .godyna{
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
   }
   #score, #riven {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
   }

.score {
  font-size: 18px;
}
   #dobre, #nedobre, #zirkagood, #ch_dobre_krok01, #ch_dobre_krok02, #ch_dobre_krok03, #ch_nedobre_krok01, #ch_nedobre_krok02, #ch_nedobre_krok03 {
    display:none;
   }

   .imgzirka {
    width: 320px;
    height: 177px;
   }
   .zirka {
    position: absolute;
    bottom: 10px;
   }

#win {
  display: none;
  float: left;
}
#skoroch {
  display: none;
}
 .overlay {
  background: #000;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  opacity: .5;
}
.visible {
   background: #fff;
  position: fixed;
  top: 50%;
  margin-top: -200px;
  overflow: hidden;
  z-index: 2000;
  width: 260px;
  padding: 20px;
  border-radius: 25px;
}

#skoroch button {
  float: right;
  line-height: 20px;
  margin: 1.2em;
  color: #040404;
}
#win button {
  float: right;
  line-height: 20px;
  margin: 1.2em;
  color: #040404;
}
#win, #scoroch button[type="button"]:hover {
  cursor: pointer;
}
#skoroch h2 {
  text-align: center;
  color: #555;
   font-size: 22px;
  font-weight: bold;
}

#skoroch .content {
  color: red; 
  font-size: 16px;
}

#win span {
  text-align: center;
  color: #555;
  font-size: 22px;
  font-weight: bold;
}
 
#dorivn2 {
  display:none;
}


.fraction {
    border-collapse: collapse;
}

.fraction td {
    padding: 0.4em 0.1em;
}

.first {
    margin-left: 0;
    font-size: 22px;
}

tbody {
    display: table-row-group;
    vertical-align: middle;
    border-color: inherit;
}

.num {
    border-bottom: 1px solid black;
}

.num01 {
 border-bottom: 1px solid black;
}

.nodisplay {
    display: none;
}
.yesdisplay {
  display: block;
}

.menurad {
  text-align:center; 
  font-size: 18px;
}

.frmbut {
  height: 55px;
  float: left;
  width: 99%;
}

.hid_rish {

    width: 100%;
    height: 55px;
    float: left;
}

#text_zavdannya01 #text_zavdannya02 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: normal;
}

.toprozd {
  width: 100%;
  height: 160px;
}

#help_dr {
  width: 98%;
  height: auto;
  padding: 5px;
  margin: 0 auto;
  max-width: 350px;
}

.first_small {
  font-size: 14px;
  text-align: center;
  width: 30%;
  max-width: 100px;
}
#v_b3, #v_b4 {
  border-bottom: 1px solid #000;
}

@media (min-width: 768px) and (max-width: 840px) {

.virno img {
width:50px;
}

#dsprosh img {
 width: 15px;
  height: 25px; 
}
 #tab_2:checked ~ #txt_2 { 
  width: 490px;
  padding: 10px;
}

}

@media (min-width: 480px) and (max-width: 768px)  {

.virno img {
width:50px;
}

#dsprosh img {
 width: 15px;
  height: 25px; 
}

.mycalc {
      height: 370px;
}
#tab_2:checked ~ #txt_2 { 
  max-width: 600px;
  width: 100%;
  padding: 10px;
}
}

@media (min-width: 360px) and (max-width: 480px) {

  .virno img {
  width:45px;
  }

  .primer {
    width:99%;
    max-width: 320px;
    }

    #dsprosh img {
   width: 15px;
    height: 25px; 
  }
  .pr {
    height: 55px;
    margin-top: 10px;
    }

  .mycalc {
        height: 400px;
        width: 100%;
  }
  #menulevel {
    font-size: 16px;
  }
  #text_zavdannya {
    font-size: 16px;
    margin-bottom: 15px;
  }
  #tab_2:checked ~ #txt_2 { 
    width: 400px;
    padding: 10px;
    height: 400px;
  }

  .rslt01 {
    width: 45px;
  }
  .frmbut {
    max-width: 300px;
  }

}

@media screen and (max-width: 360px) {

    .clf {
      font-size: 40px;}
   #dsprosh img {
   width: 15px;
    height: 25px; 
  }

  .menurad {
    text-align:center; 
    font-size: 16px;
    margin-left: -10px;
  }

  .pr {
    height: 55px;
    margin-top: 10px;
    }
  .mycalc {
        height: 380px;
        width: 98%;
  }

  #text_zavdannya {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
  }

  .padder {
    padding: 1px;
  }

  .virno img {
  width:40px;
  }

  #menulevel {
    font-size: 14px;
  }
  #tab_2:checked ~ #txt_2 { 
    width: 300px;
    padding: 10px;
    height: 490px;
  }

  .rslt01 {
    width: 45px;
  }
}