.cable-calc-container{
    overflow-y:hidden;
    overflow-x:hidden;
}

.fourcol-calc td #alum-calc {
float:right !important; transform: scale(1.6,1.6);
    margin: 0.1em 7% 0.9em 0;
}
.ref-td{
    padding-bottom: 0.5em;
}


/* button for modal  */

#reset_main,#calc_history{background-color:#333; color:white;}
#print{
    background-color: darkgreen !important;
    color: white;
    margin-bottom: 0.2em;
}

.btn-modal tbody tr td button:nth-child(1),.btcontainer-modal tbody tr td:nth-child(2) button{
    color:white;
}
.btn-modal tbody tr td:nth-child(1) button,.btn-modal tbody tr td:nth-child(1) button:active{
    background-color:#222;
}
.btn-modal tbody tr td:nth-child(2) button,.btn-modal tbody tr td:nth-child(2) button:active{
    background-color:#F58220;
}
.btn-modal tbody tr td:nth-child(2) button:hover{
    background-color:#222;
}

/*end styling button */
/* modal style */
.modal-content .calculator-form .main-tb-calc tbody tr td:nth-child(2) input,.modal-content .calculator-form .main-tb-calc tbody tr:nth-child(2) td:nth-child(2) select {
    width: 59%;
    float: right;
}
#tickka {float:right;}
.fa-check{font-size: 2.2em; }
.sepitem td label{margin-bottom:1.5em;}
.calculator-form table tbody tr td label{vertical-align: top; margin-top:0%;}
.earth {
    text-align: center;
    position: relative;
    top: -10px;
}
#calc:hover, #print:focus, #print:focus{background-color: #333;}
#calc, #calc:focus {background-color: #F58220;}
.multi-f {
    margin-right:0em;

    padding:0.1em 0em;
    padding:0 0 0 0;
    margin-right:0.15em;
    border-radius:0.2em;
    top:0 !important;
}

.btncontainer-calc tbody tr td:nth-child(3) input,.calcm-header button{background-color:#F58220;  color:white;}
.calcm-header button{margin-bottom: 0.5em;}
.btncontainer-calc tbody tr td:nth-child(3) input:hover{background-color:#333;}
.btncontainer-calc tbody tr td:nth-child(1){width:49%;  }
.btncontainer-calc tbody tr td:nth-child(3){width:49%;}
.calculator-form .calc_result.earth { background: green!important; color: yellow ;}
#calc{margin-right: 2%;}


.circle {
    width: 2.2em;
    height: 2.2em;
    background:  green;
    -moz-border-radius: 5px;
    -webkit-border-radius:5px;
    border-radius:5px;
    color:yellow;
    padding-left: 0px;
    padding-right: 0px;
    width: 6em;
    margin-left: 5px;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-color:transparent;
}

.top-td1{width:48%; padding-right:2.5%;}
.top-td2{width:41%; padding-right: 2.5%;}
.top-td3{float: left; padding-left:0%;}
.circle{float:left;}

.cable-calc-container{margin:0.2em 0.2em 0.2em 0.2em;}
.sepitem td input[type=checkbox]{ float:right;
 transform: scale(2.6,2.6);
    margin:0.5em 0% 0.9em 0;
    width:8% !important;
}
.sepitem tr td:nth-child(1) label{margin-bottom:40%;}
.modal-dialog{margin:1% 25% 0% 25%; position:fixed;}

.toggle.ios, .toggle-on.ios, .toggle-off.ios { border-radius: 20px; background-color: silver; }
.toggle.ios .toggle-handle { border-radius: 20px; background-color: #ddd; padding-left: 43px;}
.toggle-on.btn {
    font-weight: bold           !important;
    font-size: 1em              !important;
    padding-left: 0px           !important;
    background-color: silver    !important;
    color: #000;

}
.toggle-off.btn {
    font-weight: bold   !important;
    font-size: 1em      !important;
    background-color: #F58220 !important;
    color: #fff         !important;
    padding-right: 0px  !important;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.content-modal {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-height: 85%;
    overflow-y: auto;
    overflow-x: hidden;
}
/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.modal-body{
      position: absolute;
      left: 33%;
      top: 45%;
      z-index: 1;
      border-radius: 6px;
      background-color:white;
      padding: 10px;
      border: 2px solid red;
      font-size: 1.3em;
    }


@media only screen and (max-width: 790px) {/* all devices */
    .modal-dialog{margin:0%; padding:5%;}
    .sepitem td input[type=checkbox]{ float:right;
        transform: scale(2.6,2.6);
        margin:0.5em 2.4% 0.9em 0;
 }
    .tickka {left: 68%;
        top: 10%;  }
    .extraPadding {display: none;}

}

/*-----------------------------------Iphone 5----------------*/
@media only screen and (max-width: 321px) and (min-width: 315px) {/* iphone5 */
    .ref-td{ padding-bottom: 0em;}
    .fourcol-calc td #alum-calc {
        float:right !important; transform: scale(1.1,1.1);
        margin: 0.1em 7% 0.9em 0;}
    .sepitem tr td:nth-child(1) label{margin-bottom:17%;}
    .calc_result p {
        margin-top: 0em !important;
        font-size:12px;
    }
    .main-tb-calc tbody tr:nth-child(1) td:nth-child(2){margin-left:3em;}
    .main-tb-calc tbody tr:nth-child(1) td:nth-child(3){float:left;}
    .top-td3{float:right;}
     .modal-content .calculator-form table tbody tr td .form-control {width: 49% !important;}
     .sepitem td input[type=checkbox]{
        transform: scale(3,3) ;
        margin:0.5em 2.4% 0.9em 0;
      }
    .tickka{left: 86%; top: 12%;}
}

/*-----------------------------------Iphone 6----------------*/
@media only screen and (max-width: 400px) and (min-width: 321px) {/* iphone6 */
    .fourcol-calc td #alum-calc {
        float:right; transform: scale(1.1,1.1);
        margin: 0.1em 19% 0.9em 0;
    }

    .sepitem tr td:nth-child(1) label{margin-bottom:17%;}
    .calc_result p {
        margin-top: 0em !important;
        font-size:12px;
    }
    .main-tb-calc tbody tr:nth-child(1) td:nth-child(2){margin-left:3em;}
    .main-tb-calc tbody tr:nth-child(1) td:nth-child(3){float:left;}

    /*.top-td2{padding-right: 11.5%;} */

    .top-td3{float:right;}

    .modal-content .calculator-form table tbody tr td .form-control {

        width: 40% !important;
    }


    .tickka { left: 68%;}
}
