html{
    /* background-color: red; */
}
*{
    margin:0;
    padding:0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.user_select_none{
    user-select: none;
}

#pagewrap{

    left:0;
    top:0;
    right:0;
    bottom: 0;
    position: absolute;
}
.textwhiteshadow{
    text-shadow: 0 0 6px #fff; /* horizontal-offset vertical-offset 'blur' colour */
    -moz-text-shadow: 0 0 6px #fff;
    -webkit-text-shadow: 0 0 6px #fff;
}
#imgholder {
    background: white center top no-repeat;
    width: 715px;
    width: min(715px, 100vw);
    /*height: 95vh;*/
    position: relative;
    background-size: 92%;
    margin-top:165px;
}
#pistonimg{
    /*/716x255*/
    position: absolute;
    width:658.72px;
    height:234.6px;
    left:50%;
    margin-left:-329px;
}
#imgholder input,#imgholder select{
    width: 70px;
    position: absolute;
    top: 0;
    left: -9999px;
    padding: 1px 2px 1px 0px;
    border: 1px solid hsl(0,0%,40%);
    border-radius: 4px;
}

#imgholder input.user-changed-yes{
    border-color: black;
    border-width: 2px;
}

#imgholder input{
    text-align: center;
    height: 30px;
    font-size: 16px;
}


input::-webkit-input-placeholder {
    text-align: center;
    color:black;
    font-size: 13px;
    opacity: 1;
}
input:-moz-placeholder {
    text-align: center;
    color:black;
    opacity: 1;
    font-size: 13px;
}
input::-moz-placeholder {
    text-align: center;
    color:black;
    opacity: 1;
    font-size: 13px;
}
input:-ms-input-placeholder {
    text-align: center;
    color:black;
    opacity: 1;
    font-size: 13px;
}

input::active::-moz-placeholder,:focus::-moz-placeholder {
    opacity: 0;
}
input::active:-moz-placeholder,:focus:-moz-placeholder {
    opacity: 0;
}

input::active::-webkit-input-placeholder,:focus::-webkit-input-placeholder {
    opacity: 0;
}
#imgholder input[name=i1]{
    top: -50px;
    left: -5px;
    width: 48px;

}
#imgholder input[name=i2]{
    left: 12px;
    width: 57px;
}
#imgholder input[name=i3]{
    /*left: 55px;*/
    left: 6.98%;
    top: -50px;
    width: 60px;
}

#imgholder input[name=i4]{

    left: 13.5%;
}
#imgholder input[name=i5]{
    left: 35.5%;
    width: 80px;
    top: -24px;
}

#imgholder input[name=i6]{
    left: 61%;
    top: -50px;
}
#imgholder input[name=i7]{
    /*left: 530px;*/
    left:64.4%;
    width: 50px;

}
#imgholder input[name=i8]{
    top: -50px;
    left: 71.8%;
    width: 50px;

}
#imgholder input[name=i9]{

    left: 76.5%;
    width: 48px;
}
#imgholder select[name=i10]{

    left: 32%;
    top: -213px;
    width: 55px;
    text-indent: 6px;
    padding: 6px 6px 6px 0px;
}

#imgholder input[name=inputprutdia] {

    left: 43%;
    top: -213px;
    width: 85px;
    text-indent: 0px;
    padding: 0px;
}
select option{
    text-align:center;
}

#imgholder input[name=ishtucerpreden]{
    left: 56%;
    top: -290px;
    min-width: 120px;
    max-width: 200px;
    width: auto;
    padding: 0px;
    text-indent: 4px;
    text-align: left;
}
#imgholder input[name=ishtuceripoziciq2]{
    left: 56%;
    top: -265px;
    width: 180px;
    text-align: left;
    text-indent: 3px;
}



#imgholder input[name=ishtucerzaden]{
    left: 5.5%;
    top: -290px;
    min-width: 120px;
    max-width: 200px;
    width:auto;
    text-indent: 4px;
    padding: 2px;
    text-align: left;
}
#imgholder input[name=ishtuceripoziciq1]{
    left: 5%;
    top: -265px;
    width: 180px;
    text-align: left;
    text-indent: 4px;
}




#imgholder select[name=i11]{
    left: -3%;
    top: -213px;
    width: 45px;
    text-indent: -3px;
    padding: 4px;
}



#imgholder select[name=i12]{

    /*left: 608px;*/
    left: 78.2%;
    top: -213px;
    width: 45px;
    text-indent: -3px;
    padding: 4px;
}

#imgholder input[name=i13]{
    left: 35.5%;
    top: -142px;
    width: 80px;
}
#imgholder input[name=i14]{
    left: 35.5%;
    top: -91px;
    width: 80px;
}
#imgholder input[name=i15]{
    left: calc( 35.5% - 10px);
    width: 120px;
    top: 70px;
}
#imgholder input[name=i16]{
    left: calc( 35.5% - 10px);
    width: 120px;
    top: 135px;
}

#imgholder input.auto{
    border-style: double;
    border-width: 6px;
    margin-left: -5px;
}


/* For Firefox */
/*
input[type='number'] {
    -moz-appearance:textfield;

}*/


/* Webkit browsers like Safari and Chrome */
/*
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number']:focus{
    -moz-appearance:number-input;

}

input[type=number]:focus::-webkit-inner-spin-button,
input[type=number]:focus::-webkit-outer-spin-button {
    -webkit-appearance: initial;
    margin: initial;
}
*/

input[type=number]:focus{
    -webkit-appearance:initial;
}

input:focus::-webkit-inner-spin-button,
input:focus::-webkit-outer-spin-button,
input:active::-webkit-inner-spin-button,
input:active::-webkit-outer-spin-button,
input:hover::-webkit-inner-spin-button,
input:hover::-webkit-outer-spin-button{
    -webkit-appearance: number;
    display:initial;
}

input::-webkit-outer-spin-button,
input::-webkit-outer-spin-button
{
    -webkit-appearance: none;
    margin:0!important;
    padding:0!important;
    display: none;
}

input[type=number] {-moz-appearance: textfield;}

.popwrap *{
    transition: all 0.3s ease-out;
}
.popwrap{
    position: absolute;
}
/* @TODO: finish this auto labels popup bullshit */
.popwrap input + label{
    opacity: 0;
    position: absolute;
    font-size: 18px;
    font-weight: bold;
    /*/top: -10px;*/
    /*/left: -10px;*/
}

label.autolabel[for=i1]{
    width: 110px!important;
}
label.autolabel[for=i9]{
    width: 115px!important;
}

.popwrap input:focus + label{
    opacity: 1;
}
.popwrap input.notempty + label{
    opacity:1;
}

input.notempty.withlist{

}

/* select arrow reset */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /*
   text-indent: 1px;
   text-overflow: '';
   */
}

select {
    transition: unset;
    /*
    url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAdUlEQVQoU5XNQQqDMBBA0dxEpIggQnEhHl2koK0b3emJtD+hSoxTEz88QsIMUdRgveEFVVoPISqYWkgDrjf2npCGXAUO+X7rcCqDNLzJIfaBtNDjbwmkpRSXDbAXRniLYS89ENQEvTCbW2ARFuhfb1X/TielvkBdU4GqHqraAAAAAElFTkSuQmCC')
    */
    background: url("arrow_down.png") transparent calc(100% - 4px) center no-repeat;
    background-size: 10px auto;

}

html body input.always_show_dropdown[type=search]::-webkit-search-cancel-button {
    opacity: 0!important;
}

html body input.always_show_dropdown[type=search]::-moz-search-cancel-button {
    opacity: 0!important;
}

html body input.always_show_dropdown[type=search]::-webkit-calendar-picker-indicator {
    opacity: 1;
}

html body input.always_show_dropdown[type=search]::-moz-calendar-picker-indicator {
    opacity: 1;
}


@media print{
    html body input.always_show_dropdown[type=search]::-webkit-search-cancel-button {
        display: none!important;
    }
    html body input.always_show_dropdown[type=search]::-webkit-calendar-picker-indicator {
        display: none!important;
    }
    html body input.always_show_dropdown[type=search]::-moz-search-cancel-button {
        display: none!important;
    }
    html body input.always_show_dropdown[type=search]::-moz-calendar-picker-indicator {
        display: none!important;
    }
}




input.withlist:hover,input.withlist:active{

}

input.withlist{
    -webkit-appearance: searchfield;
    -moz-appearance: searchfield;
    appearance: searchfield;

}


.option_red {
    background-color: yellow;


}
.option_red:hover{
    background-color: white;
}

#imgholder input.war_neg{
    border-color: red;
    background: rgba(254,0,0,0.15);
}

#sizes {
    position: relative;
    top: 228px;

    left: 9.46%; /*left: 92px;*/
}

textarea{
    padding: 5px;
}


#duplicatebtn{
    margin: 10px 0px;
}

#newbtn{
    margin: 10px 0px;
}


@media print
{

    html, #pagewrap {
        overflow:hidden;
    }

    /** motherfucking firefox **/
    @-moz-document url-prefix() {
        #imgholder input,html body input{
            border: 3px solid black;
            -webkit-border-radius: 0px;
            -moz-border-radius: 0px;
            border-radius: 0px;
        }
    }


    body .popwrap input + label {
        opacity: 1;
    }

    .unprintable, .unprintable *
    {
        display: none !important;
    }

    #page_wrap{
        padding: 0px;
    }

    textarea{
        border: 0px;
    }

    body input::-webkit-input-placeholder { /* WebKit browsers */
        color: transparent;
    }
    body input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        color: transparent;
    }
    body input::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: transparent;
    }
    body input:-ms-input-placeholder { /* Internet Explorer 10+ */
        color: transparent;
    }

    html body #ishtucerzaden, html body #ishtucerpreden{
        overflow:visible;
        display: inline-block;
    }

    

}

@media print and (orientation: portrait) {
  /* styles when printing in portrait */
}

@media print and (orientation: landscape) {
  /* styles when printing in landscape */
  #force_speed_power{
        margin-top: -200px!important;
        margin-left: 697px!important;
    }
}


#qr{
    transform: translateX(-30px);
    display: inline-block;
}

#qr.notrendered{
    opacity: 0;
    width: 1px;
    height: 1px;
}
#linkdump.notrendered{
    opacity: 0;
    width: 1px;
    height: 1px;
}
#linkdump{
    width: 300px;

    box-sizing: border-box;
}
.rightmenu{
    position: absolute;
    right:50px;
    top:50px;
    text-align: right;
}
.rightmenu label, .rightmenu input{
    font-size: 1.3em;
    line-height: 1.3em;
    padding:5px;
    margin:10px 0;

}
.rightmenu input[type=checkbox]{
    position: relative;
    top: 2px;
    margin-left: 5px;
}


.noselect{
    user-select: none;
}

#printbtn{

}

.rightmenu label, .rightmenu input{
    font-family: monospace;
}

.rightmenu .unicodebuttonicon, .unicodebuttonicon{
    padding: 0px;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 1;
    border-radius: 4px;
    border-width: 2px;
    border-color: lightgrey;
    vertical-align: middle;
}
.rightmenu label:hover{
    font-weight: bold;
}

.disabled{
    background-color: hsl(0, 0%, 93%);

    cursor: not-allowed;

}

@keyframes uglyHilite {
    0% {
        background-color: transparent;
        outline: none;
    }
    20% {
        background-color: #F6F6BC;
        outline: #F6F6BC solid 10px;
    }
    100% {
        background-color: transparent;
        outline: #ffffff solid 10px;
    }
}
@-webkit-keyframes uglyHilite {
    0% {
        background-color: transparent;
        outline: none;
    }
    20% {
        background-color: #F6F6BC;
        outline: #F6F6BC solid 10px;
    }
    100% {
        background-color: transparent;
        outline: #ffffff solid 10px;
    }
}

.changed-by-script-highlight{
    animation: uglyHilite 1s;
    -moz-animation: uglyHilite 1s;
    -webkit-animation: uglyHilite 1s;
    -o-animation: uglyHilite 1s;
    outline: #ffffff solid 10px;
}

html body #imgholder input[disabled]{

    border-color:darkgray;
    background-color:#f0f0f0;
}


/* Mobile style shenanigans */
@media screen and (max-width: 640px) {
    html,body{
        width: 640px;
        overflow-x:hidden;
        overflow-y:scroll;
        min-height: 550px;
    }
    #imgholder{
        width: 640px;
    }
    #pistonimg{
        /*/716x255*/
        position: absolute;
        width:630px;
        height:234.6px;
        left:50%;

        margin-left:-315px;

    }
    #imgholder input[name="i1"]{
        left: -22px;
    }
    #imgholder input[name="i2"] {
        left: 0px;
    }
    #imgholder input[name="i3"]{
        left: 28px;
    }
    #imgholder input[name="i4"] {
        left: 78px;
    }
    #imgholder input[name="i9"] {
        left: 502px;

    }
    #imgholder input[name="i15"]{
        top: 9px;
    }
    #imgholder input[name="i5"]{
        top: -40px;
    }
    #imgholder input[name="i8"] {

        left: 471px;

    }
    #imgholder select[name="i12"]{
        left: 80.5VW;
        top: -216px;

    }
    #imgholder select[name="i11"]{
        left: -6.5VW;
        top: -216px;
    }



}

h1{
    text-align: center;
}

header{
    margin: 30px;
    margin-bottom: -60px;
}

.is-iframe #getlink,
.is-iframe label[for=getlink],
.is-iframe #printbtn,
.is-iframe label[for=printbtn],
.is-iframe #newbtn,
.is-iframe label[for=newbtn],
.is-iframe #duplicatebtn,
.is-iframe label[for=duplicatebtn],
.is-iframe #pausecalc,
.is-iframe label[for=pausecalc],
#thatonehr
{
    opacity: 0;
    pointer-events: none;
}   



#force_speed_power{
    margin-top: -191px;
    margin-left: 820px;
}



#force_speed_power th{
    font-size: 18px;
    font-weight: bold;
    min-width: 90px;
}

.tdc{
    text-align: center;
    font-weight: bold;

}

#force_speed_power td{
    padding:5px;
    border: 1px solid black;
    border-radius:5px;

}

.hidden{
    display: none;
}

.sz32x32{
    width: 32px;
    height: 32px;
}

.imgbtn{
    background-image: var(--bg);
    background-position: center;
    background-repeat: no-repeat;    
    transform: translate(0px, 0px);
    animation: transform 0.5s;
}

.imgbtn:active{
    transform: translate(2px, 2px);
    animation: transform 0.5s;
}

/* Moved out of the markup so the CSP can drop style-src 'unsafe-inline'.
   Values are byte-for-byte what the style attributes used to say. */

#inptext{
    text-align: center;
    position: absolute;
    left: 30px;
    top: 420px;
    min-width: 200px;
    max-width: 100%;
    margin: 0px;
    width: 655px;
    height: 110px;
}

#fsp_working_pressure,
#fsp_debit{
    max-width: 60px;
    display: inline-block;
    text-align: right;
}

.fsp_settings{
    margin-bottom: 20px;
}

.fsp_results{
    text-align: center;
}

#copytoclipboard2{
    opacity: 0.0;
    background-color: transparent;
    --bg: url(copylink.png);
    background-size: 32px 32px;
    border: 0;
    margin-top: 0;
    display: inline-block;
    top: 11px;
    position: relative;
    left: 10px;
}