.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: 530px;
  margin: 0 auto;
  max-width: 600px;
  border: 2px solid rgb(156, 247, 139);
  text-align: justify;
}

.mycalc { 
  width: 98%;
  margin: 0 auto;
  padding: 5px;
  height: 250px;
}

 .my-calc-form {
  float: left;
  width: 99%;
  height: 270px;
    
 }

 #lineyka {
  display: block;
  width: 590px;
  height: 46px;
    float: left;
    margin: 0 auto;
  background-image:  url(/math/calc/pic/line-left.jpg);
  margin-top: 10px;
 }

 .lineyka img.alignleft {
  margin:0;
  padding: 0;
  width: 55px;
 }

#opys {
    width: 95%;
    max-width: 550px;
    margin: 0 auto;
    padding: 5px;
    float: left;
    margin-left: 30px;
    height: 550px;
    min-width: 310px;
}


 .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: 142px;
    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: 55px; 
  margin-bottom: 20px; 
  width: 100%;
  float: left;
}

   .rslt {
   	height: 50px;
   	width: 220px;
   	margin-bottom: 25px;
   	font-size: 24px;

   }
   .pryklad {
   	font-size: 28px;
    margin-bottom: 10px;
   }
.clf {
  color: #c94c4c;
  font-size: 48px;
  font-family: "Times new roman", serif;
  margin: 1px;
}

.clf01 {
  color: #c94c4c;
  font-size: 26px;
  margin: 1px;
}

   .myh3 {
    height: 50px;
    font-size: 26px;
    font-weight: bold;
    float: left;
    margin-left: 10px;
   }
   .klavishi {
    width: 270px;
    float: left;
    margin-top: 35px;
    margin-left: 20px;
   }

   .virno {
    padding: 5px;
    width: 50px;
    float: right;
    margin-top: -40px;
   }
   .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, #startgotus, #lyja_good, #lyja_bed, #lyja_shtraf {
    display:none;
   }

   .lyja_ok {
    width: 100%;
    height: auto;
   }
   .lyja_txt {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    color: red;
    margin-top: -15px;
   }

   .imgzirka {
    width: 320px;
    height: 177px;
   }
   .zirka {
    position: absolute;
    top: 300px;
   }
 
  #win, #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: 360px;
  padding: 20px;
}
#win, #scoroch button {
  line-height: 20px;
  margin: 1.2em;
  border: none;
  background: transparent;
  color: blue;
}
#win, #scoroch button[type="button"]:hover {
  cursor: pointer;
}

#scoroch h2 {
  text-align: center;
  color: #555;
   font-size: 22px;
  font-weight: bold;
}

#out_vidpovid {
  height: 50px;
}

#win span {
  text-align: center;
  color: #555;
  font-size: 24px;
  font-weight: bold;
}

@media only screen and (max-width: 860px) {

.virno img {
width:50px;
}

.my-calc-form {
  margin-top: 5px;
  margin-left: 0px;
}

#tab_2:checked ~ #txt_2 { 
  width: 370px;
  padding: 10px;
}

#tab_1:checked ~ #txt_1 { 
  height: 620px;
  width: 464px;
}

 .klavishi {
  margin-left: 10px;
  margin-top: 50px;
 }
}

@media only screen and (max-width: 768px) {
.entry {
  width: 550px;
  margin: 0px;
}
.virno img {
width:50px;
}
.my-calc-form {
  margin-top: 5px;
  margin-left: 0px;
  width: 540px;
}
.rslt {
  width: 220px;
}
#lineyka {
  display: block;
    background-position-x: 50%;
    background-position-y: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    width: 520px;
 }
 #tab_2:checked ~ #txt_2 { 
  width: 510px;
  padding: 10px;
  height: 550px;
}
#tab_1:checked ~ #txt_1 { 
 width: 530px;
 height: 550px;
}
 .klavishi {
  margin-left: 10px;
  margin-top: 35px;
  width: 250px;
 }
  }

@media only screen and (max-width: 600px) {

.virno img {
width:50px;
}

.my-calc-form {
  margin-top: 5px;
  margin-left: 0px;
  width: 100%;
}

#tab_2:checked ~ #txt_2 { 
  width: 99%;
  padding: 10px;
}

#tab_1:checked ~ #txt_1 { 
  height: 620px;
  width: 99%;
}
.myh3 {
  font-size: 22px;
  float: none;
  text-align: left;
  max-width: 360px;
  width: 100%;
}
 .klavishi {
  margin-left: 10px;
  margin-top: 50px;
  float: none;
 }

} 

@media only screen and (max-width: 480px) {
  .clf {
    font-size: 30px;
}
.myh3 {
  font-size: 18px;
  height: 60px;
}
.mycalc {
  height: 230px;
}
#tab_2:checked ~ #txt_2 { 
  width: 410px;
  padding: 10px;
  height: 570px;
}
#tab_1:checked ~ #txt_1 { 
  height: 570px;
  width: 410px;
}
}
@media only screen and (max-width: 440px) {
  #tab_1:checked ~ #txt_1 { 
    width: 330px;
  }
}