.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 {
  padding: 20px;
  max-width: 400px;
}

#tab_1:checked ~ #txt_1,
#tab_2:checked ~ #txt_2 { 
  display: block; 
  background: rgba(240, 255, 255, 0.79);
  width: 99%;
  max-width: 400px;
  height: 500px;
  margin: 0 auto;
  border: 2px solid rgb(156, 247, 139);
  text-align: justify;
}

#txt_2 h3 {
  font-size: 18px;
  width: 100%;
}
 .mycalc {
 
width: 95%;
margin: 0 auto;
padding: 5px;
float: left;

 }

.num {
    border-bottom: 1px solid black;
}

div.page table td .num {
    border-bottom: 1px solid black;
}

.first {
    margin-left: 0;
    font-size: 22px;
    width: 250px;
}
 
 .bttn, input[type=button] { 
    font-size: 22px; /* Размер шрифта */
    font-family: Verdana, Arial, Helvetica, sans-serif; /* Семейство шрифта */
    color: #000; /* Цвет текста */
    width: 64px;
    height: 54px;
    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: 55px;
  margin-bottom: 15px;
  margin-top: -15px; 
  width: 70px; 
  float: left;
}

.primer {
  height: 115px; 
  margin-top: 20px; 
  width: 350px;
}

   .rslt {
   	height: 50px;
   	width: 254px;
   	margin-bottom: 25px;
   	font-size: 24px;

   }
   .pryklad {
   	font-size: 28px;
   	font-weight: bold;
    margin-bottom: 10px;


   }
   .clf {
    color: #c94c4c;
    font-size: 35px;
    margin: 1px;
    margin-top: 20px;
   }
    .clf1 {
    font-size: 26px;
    margin: 1px;
    text-align: center;
    margin-top: 20px;
    }

   .myh3 {
    font-size: 22px;
    font-weight: bold;
    line-height: 24px;
    width: 350px;
   } 

   .virno {
    padding: 5px;
    width: 30px;
    float: right;
   }
   .godyna{
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
   }
   #score, #riven, #pomylky {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
   }
   .score {
    margin-bottom: 5px;
   }

   #dobre, #nedobre, #zirkagood {
    display:none;
   }

   .imgzirka {
    width: 320px;
    height: 177px;
   }
   .zirka {
    position: absolute;
    top: 250px;
   }
 
#win {
  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;
}
#win button {
  float: right;
  line-height: 20px;
  margin: 1.2em;
  color: #040404;
}
#win button[type="button"]:hover {
  cursor: pointer;
}
#win span {
  text-align: center;
  color: #555;
  font-size: 22px;
  font-weight: bold;
}
.content {
  padding: 0 1em;
}

#raduga {
  width: 280px;
  height: 45px;
  margin: 0 auto;
  margin-top: 20px;
  overflow: hidden;
}

#raduga img {
  margin-left: 280px;
}

@media only screen and (max-width: 840px) {

.virno img {
width:50px;
}
 #tab_2:checked ~ #txt_2 { 
  width: 440px;
  padding: 10px;
}
}
@media only screen and (max-width: 540px) {

.virno img {
width:50px;
}

.primer {
  width:340px;
  margin-left: -20px;
  }
#tab_2:checked ~ #txt_2 { 
  width: 340px;
  padding: 10px;
  height: 490px;
}
}
@media only screen and (max-width: 480px) {

.virno img {
width:50px;
}

.primer {
  width:320px;
  margin-left: -10px;
  }
#tab_2:checked ~ #txt_2 { 
  width: 350px;
  padding: 10px;
  height: 490px;
}
.clf {
    font-size: 30px;
}

}

@media only screen and (max-width: 390px) {

  .clf {
    font-size: 30px;
}
#tab_2:checked ~ #txt_2 { 
  width: 300px;
  padding: 10px;
  height: 520px;
}

}