.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: 500px;
  margin: 0 auto;
  max-width: 600px;
  border: 2px solid rgb(156, 247, 139);
  text-align: justify;
}

.mycalc { 
width: 98%;
max-width: 315px;
margin: 0 auto;
padding: 5px;
float: left;
height: 500px;
}

.p_top_menu {
  text-align:center; 
  margin-bottom: 5px;
  font-size: 18px;
 }

.p_middle_menu {
  height:15px; 
  text-align: center;
  font-size: 14px;
 }

.p_start {
  height: 25px;
 }

.my-calc-form {
  float: left;
  width: 260px;
  margin-top: 90px;
}

.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: 60px;
    height: 93px;
    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: 55px;
  margin-bottom: 15px;
  margin-top: -15px; 
  width: 70px; 
  float: left;
}

.primer {
  height: 210px; 
  width: 330px;
}

   .rslt {
   	height: 50px;
   	width: 224px;
   	margin-bottom: 25px;
   	font-size: 24px;

   }
   .pryklad {
   	font-size: 28px;
   	font-weight: bold;
    margin-bottom: 10px;
    font-family: "Times New Roman", serif;
    width: 280px;
    text-align: left;

   }
   .clf {
    font-size: 18px;
    margin-top: -25px;
   }

   .myh3 {
    width: 100%;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
   }

   .virno {
    padding: 5px;
    width: 70px;
    float: right;
    margin-top: -60px;
   }
   .godyna{
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
   }
   #score, #riven, #pomylky {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
   }

   #dobre, #nedobre, #zirkagood {
    display:none;
   }

   .imgzirka {
    width: 320px;
    height: 177px;
   }
   .zirka {
    position: absolute;
    top: 300px;
   }
   .piczd {
    max-width: 250px;
    max-height: 160px;
    height: auto;
    margin-bottom: 15px;

   }
   .pickut {
    max-width: 200px;
    max-height: auto;
    width: 100%;
    height: auto;
    margin-bottom: 15px;

   }
    .pickut1 {
    max-width: 300px;
    max-height: auto;
    width: 100%;
    height: auto;
    margin-bottom: 15px;

   }
   .chislo {
    color: red;
   }

 #win {
  display: none;
  font-size: 24px;
  font-weight: bold;
}
 .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;
}
#win button {
  float: right;
  line-height: 20px;
  margin: 1.2em;
  color: #040404;
}
#win button[type="button"]:hover {
  cursor: pointer;
  color: navy;
  text-decoration: underline;
}
#win h3 {
  text-align: center;
  color: #555;
}
.content {
  padding: 0 1em;
}


@media only screen and (max-width: 894px) {

.virno img {
width:50px;
}
.myh3 {
  width: 250px;
}

.rslt {
  width: 200px;
}
 #tab_2:checked ~ #txt_2 { 
  width: 460px;
  padding: 10px;
}
.bttn, input[type=button]{
  width: 55px;
  height: 45px;
}
input.bttnok.bttn {
  height: 95px;
  width: 55px;
}

}

@media only screen and (max-width: 640px) {
.virno img {
width:50px;
}
.myh3 {
  width: 250px;
  font-size: 20px;
}
.my-calc-form {
  margin-top: 120px;
  margin-left: 0px;
}
.bttn, input[type=button]{
  width: 50px;
  height: 40px;
}
input.bttnok.bttn {
  height: 85px;
  width: 50px;
}
.rslt {
  width: 200px;
}

 #tab_2:checked ~ #txt_2 { 
  width: 460px;
  padding: 10px;
}
.pickut {
    width: auto;
    height: 150px;
   }
   .primer {
    width:330px;
    }
  
  .my-calc-form {
    margin-top: 5px;
    margin-left: 20px;
  }
  
  .clf {
      width: 395px;
  }
  #tab_1:checked ~ #txt_1 { 
    height: 780px;
  }
  .mycalc {
    max-width: 410px;
    height: 440px;
  }
  }


@media only screen and (max-width: 480px) {

  .clf {
    font-size: 18px;
    width: 100%;
}
#tab_2:checked ~ #txt_2 { 
  width: 100%;
  padding: 10px;
  height: 490px;
}
#tab_1:checked ~ #txt_1 { 
  height: 800px;
}
.mycalc {
  height: 460px; 
}
.primer {
  width:100%;
  }
  .piczd {
    max-height: 130px;
  }
}
@media only screen and (max-width: 360px) {
  .mycalc {
    height: 460px; 
  }
  #tab_1:checked ~ #txt_1 { 
    height: 795px;
  }
}