.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;
  max-width: 600px;
}

#tab_1:checked ~ #txt_1 {
  padding: 5px 5px;
  max-width: 400px;
}

#tab_1:checked ~ #txt_1,
#tab_2:checked ~ #txt_2 { 
  display: block; 
  background: rgba(240, 255, 255, 0.79);
  min-height: 660px;
  margin: 0 auto;
  border: 2px solid rgb(156, 247, 139);
  text-align: justify;
}

#txt_2 h3 {
  font-size: 18px;
  width: 100%;
}
 .mycalc {
 
width: 98%;
margin: 0 auto;
padding: 5px;
float: left;

 }

 .p_top_menu {
  text-align:center; 
  margin-bottom: 5px;
  font-size: 16px;
 }

 .p_middle_menu {
  height:15px; 
  text-align: center;
  font-size: 16px;
 }

 .p_start {
  height: 25px;
 }

 /* Стилі для дробів menu*/
.fraction, .top, .bottom {
    padding: 0 5px;    
}

.fraction {
    display: inline-block;
    text-align: center;    
}

.bottom{
    border-top: 1px solid #000;
    display: block;
}

/* Стилі для дробів у прикладі*/
.bottom_pryklad {
    width: 110px;
    border-top: 1px solid #000;
    display: block;
    margin: 0 auto;
    padding-top: 5px;
    margin-top: 5px;
}

/* top_radio_menu */
input[name=top_radio_menu] {    
  vertical-align: middle;
  margin-top: -20px;
}

.top_menu_diya 
{
    position: relative;
    top: -10px;
    font-size: 16px;
  }

  .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;
}

.primer {
  height: 100px; 
  width: 100%;
}

.drib_out_stepin {
  font-size: 16px;
}

.drib_table {
  width: 200px;
    margin: 0 auto;
    border: 0px;
}

.drib_table_300 {
    width: 300px;
    margin: 0 auto;
    border: 0px; 
}
#out table .drib_td {
  border-bottom: 2px solid #c94c4c;
    border-top: 0px;
}
   .pryklad {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;


   }
   .clf {
    color: #c94c4c;
    font-size: 26px;
    margin: 1px;
    text-align: center;
   }

   h3 {
    font-size: 26px;
    font-weight: bold;
    width: 250px;
   } 

   .myh3 {
    width: 100%;
    height: 30px;
    font-size: 26px;
    font-weight: bold;
    text-align: left;
   }
  
   .text_z {
    height:20px;  
    font-weight: bold; 
    font-size:  18px;
    }

   .virno {
    padding: 5px;
    width: 50px;
    float: right;
    margin-top: -30px;
   }
   .godyna{
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;

   }
   #score, #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: 100px;
    margin-left: 30px;
   }
 
#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: 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;
}
#skoroch button {
  cursor: pointer;
}
#skoroch h2 {
  text-align: center;
  color: #555;
   font-size: 22px;
  font-weight: bold;
}

#skoroch .content {
  color: red; 
  font-size: 16px;
}

#raduga {
  width: 280px;
  height: 45px;
  margin: 0 auto;
  margin-top: 20px;
  overflow: hidden;
}

#raduga img {
  margin-left: 280px;
}

#myvidpovid {
  width: 200px;
  min-height: 110px;
  float: left;
}

#bt_ok {
  display: block;
    width: 105px;
    float: right;
}

#bt_stepin, #bt_backspace {
  width: 105px;
  float: right;
} 
#drib_vidp {
  width: 265px;
  height: 145px;
  margin-left: 30px;
}
#rezvidpovid {
  width: 200px;
  height: 140px;
  float: right;
  padding-right: 10px;
}
#plusminus table {
  margin-top: 30px;
  margin-left: -20px;
  width: 70px;
  height: 80px;
  float: left;
  font-size: 30px;
  color: darkred;
}
.table_minus {
  display: none;
}
.skobka {
    font-size: 2em;
    margin-left: -10px;
    font-weight: normal;
}
.skobka_r { 
    font-size: 2em;
    margin-left: -10px;
    font-weight: normal;
}
.skobka_minus {
  position: relative;
    left: 1px;
    top: -5px;
}
#vid_chiselnyk {
  width: 80%;
  min-width: 110px;
  height: 50px;
  border-bottom: 2px solid #1f1d1d;
}
#vid_znamennyk{
  height: 50px;
}

button.btrezclick {
   border-radius: 10px;
    border-style: solid;
    border-width: 2px 2px 4px;
    color: #4b4b4b;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    margin: 1px;
    padding: 12px 10px;
    transform: translateZ(0);
    transition: filter .2s;
    background: #fff;
    background: -moz-linear-gradient(top, #ffffff 0%, #83ffa3 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ededed));
    background: -webkit-linear-gradient(top, #ffffff 0%,#83ffa3 100%);
    background: -o-linear-gradient(top, #ffffff 0%,#83ffa3 100%);
    background: -ms-linear-gradient(top, #ffffff 0%,#83ffa3 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#83ffa3',GradientType=0 );
    background: linear-gradient(top, #ffffff 0%,#83ffa3 100%);
}
button.btrezclick sup {
  font-size: 16px;
}

button.cl_bt_ok {
  width: 98px;
  height: 44px;
  border-radius: 10px;
    border-style: solid;
    border-width: 2px 2px 4px;
    color: #4b4b4b;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    margin: 1px;
    
    transform: translateZ(0);
    transition: filter .2s;
    background: #fff;
    background: -moz-linear-gradient(top, #ffffff 0%, #8bff83 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ededed));
    background: -webkit-linear-gradient(top, #ffffff 0%,#8bff83 100%);
    background: -o-linear-gradient(top, #ffffff 0%,#8bff83 100%);
    background: -ms-linear-gradient(top, #ffffff 0%,#8bff83 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#8bff83',GradientType=0 );
    background: linear-gradient(top, #ffffff 0%,#8bff83 100%);
}

button.btclick {
  width: 45px;
  height: 44px;
    border-radius: 16px;
    border-style: solid;
    border-width: 2px 2px 4px;
    color: #4b4b4b;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    margin: 2px;
    padding: 12px 16px;
    transform: translateZ(0);
    transition: filter .2s;
}

#bt_stepin.btstepin_off button, #bt_backspace.btstepin_off button  {
  width: 98px;
  border-radius: 10px;
    border-style: solid;
    border-width: 2px 2px 4px;
    color: #4b4b4b;
    background-color: white;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    margin: 2px;
    padding: 12px 16px;
    transform: translateZ(0);
    transition: filter .2s;
}


#bt_stepin.btstepin_on button {
  width: 98px;
  border-radius: 10px;
    border-style: solid;
    border-width: 2px 2px 4px;
    color: #0a0a0a;
    cursor: pointer;
    font-size: 18px;
    margin: 2px;
    padding: 12px 16px;
    transform: translateZ(0);
    transition: filter .2s;
    background: #ff4646;
}

@media only screen and (max-width: 840px) {

.virno img {
width:50px;
}
 #tab_2:checked ~ #txt_2 { 
  width: 440px;
  padding: 10px;
}
 .clf {
    font-size: 28px;
}
}
@media only screen and (max-width: 540px) {

.virno img {
width:50px;
}

#tab_2:checked ~ #txt_2 { 
  width: 340px;
  padding: 10px;
  height: 490px;
}
}
@media only screen and (max-width: 480px) {

.virno img {
width:50px;
}

#tab_2:checked ~ #txt_2 { 
  width: 350px;
  padding: 10px;
  height: 490px;
}

 .clf {
    font-size: 22px;
}
#bt_stepin, #bt_backspace {
    width: 100px;
    float: left;
}
#bt_ok {
    width: 100px;
    float: left;
}
.p_middle_menu {
  font-size: 12px;
}

}

@media only screen and (max-width: 390px) {

  .clf {
    font-size: 20px;
}
#tab_2:checked ~ #txt_2 { 
  width: 300px;
  padding: 10px;
  height: 520px;
}
.p_middle_menu {
  font-size: 12px;
}

}