
/******************************************************************************
Project          :  Engineering Calculator
Project          :  site.css
Description      :  Style Sheet (main)
******************************************************************************
Author           :  Alexander Bell
Copyright        :  2011-2025 Alexander Bell
Date Created     :  01/20/2011
Last Modified    :  11/12/2025
******************************************************************************
DISCLAIMER: This Application is provide on AS IS basis without any warranty
******************************************************************************
TERMS OF USE     :  This module is copyrighted. You can use it provided that
                    :  you keep the original copyright note.
******************************************************************************/

html {box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit;}

body {
    margin: 4px;
    font-size: 16px;
    font-family: Arial, Calibri, Tahoma, Verdana;
}

.ecMain {
    width: 100%;
    padding: 8px;
    /* rounded corners */
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-color: #9a9a9a;
    background: -webkit-gradient(linear, left top, left bottom, from(#404040), to(#707070));
    background: -moz-linear-gradient(top, #404040, #707070);
}
.ecTitle{height:2.8em;}

.ecCaption, .ecModel {
    height: 2.6em;
    line-height: 2.6em;
    vertical-align: middle;
}

.ecModel {
    float: left;
    padding: 0em 0.5em;
    text-align: center;
    background-color: #707070;
    border-radius: 10px;
    color: yellow;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.2em;
    cursor: pointer;
}
.ecModel button {
    background: yellow;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

.ecCaption {
    float: right;
    color: #dadada;
    font-size: 1em;
    margin-right: 0.4em;
}
.span-highlight {
    color: moccasin;
    font-weight: 700;
    font-size: 1.4em;
}

.div-left-button {text-align: left;}

div#keyPad {width: 100%;}

div#keyPad button, .ecExtControl { width: calc(14% - 4px);}

div#keyPad button#keyPad_btnReserved1 {
    width: calc(28% - 5px);
    font-size: 0.65em;
}

div#keyPad button#keyPad_btnEnter {
    border: solid 2px #a1a121;
    color: Yellow;
}

div#keyPad input#keyPad_UserInput,
div#keyPad input#keyPad_Mem {width: calc(86.2% - 4px);}

div#keyPad input#keyPad_UserInput {font-size: 1.3em;}

div#keyPad input#keyPad_Mem {font-size: 1.2em;}

button#keyPad_btnE48,
button#keyPad_btnE96,
button#keyPad_btnE192,
button#keyPad_btnCe {float: right;}

.keyPad_btnNumeric,
.keyPad_btnConst,
.keyPad_btnCommand,
.keyPad_btnPrefix {margin-right: 1px;}

.keyPad_btnBinaryOp,
.keyPad_btnUnaryOp,
.keyPad_btnReservedR {float: right;}

/* extended functions area */
.voltExtPanel, .voltESeries {
    padding: 5px;
    display: block;
    background-color: #404040;
    border: solid 1px Olive;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

/* key buttons, INPUT/MEM text boxes */
div#keyPad input, div#keyPad button, .ecExtControl {
    height: 28pt;
    line-height: 28pt;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #808080;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.ecExtControl {
    float: right;
    background-color: olive;
    color: #ededed;
    font-size: 1.2em;
}

div#keyPad button {
    text-align: center;
    cursor: pointer;
    color: #efefef;
    font-weight: 400;
    background: #404040;
    background: -moz-linear-gradient(top, #707070, #505050 50%, #303030 50%, #202020);
    background: -webkit-gradient(linear, left top, left bottom, from(#707070), color-stop(0.5, #505050), color-stop(0.5, #303030), to(#202020));
}

div#keyPad button:active {border: solid 2px #707070;}

div#keyPad button:hover {
    background: #606060;
    background: -moz-linear-gradient(top, #606060, #404040 50%, #303030 50%, #101010);
    background: -webkit-gradient(linear, left top, left bottom, from(#606060), color-stop(0.5, #404040), color-stop(0.5, #303030), to(#101010));
}
/* INPUT/MEM text boxes*/
div#keyPad input {
    float: left;
    text-align: left;
    text-indent: 0.5em;
    color: yellow;
    background: #303030;
    background: -webkit-gradient(linear, center top, center bottom, from(#101010), to(#505050));
    background: -moz-linear-gradient(top, #101010, #505050);
}
    /* MEM text box */
    div#keyPad input#keyPad_Mem {
        color: #eaeaea;
        cursor: pointer;
        /* stop gradient */
        background: -moz-linear-gradient(top, #404040, #303030 50%, #202020 50%, #101010);
        background: -webkit-gradient(linear, left top, left bottom, from(#404040), color-stop(0.5, #303030), color-stop(0.5, #202020), to(#101010));
    }
/* enter key */
div#keyPad button#keyPad_btnEnter {
    color: Yellow;
    float: right;
    font-size: 1.5em;
}
/* MEM op*/
div#keyPad .keyPad_btnMemOp {
    float: right;
    border: 2px solid #c4b5eb;
    color: #adcde5;
}

div#keyPad .mem-arrow {font-size: 1em;font-weight: 600;}

/* backspace */
div#keyPad button#keyPad_btnBack {font-size: 1em;}

.div-left-button button#keyPad_btnBack,
.div-left-button button#keyPad_btnClr,
.div-left-button button#keyPad_btnAllClr {
    border: 2px solid red;
    color: yellow;
}

div#keyPad .keyPad_sup {padding-bottom: 6pt;line-height: 24pt;}

/* E-SERIES BUTTON */
div#keyPad .keyPad_btnESeries,
div#keyPad .keyPad_btnESeries:hover {
    color: #202020;
    border: none;
    background: #dadada;
    background: -moz-linear-gradient(top, #f0f0f0, #bababa 10%, #cacaca 46%, #909090 48%, #dadada 52%, #cacaca 54%, #cacaca 90%, #ababab);
    background: -webkit-gradient(linear, center top, center bottom, from(#f0f0f0), color-stop(0.1, #bababa ), color-stop(0.46, #cacaca), color-stop(0.48, #909090), color-stop(0.52, #dadada ), color-stop(0.54, #cacaca), color-stop(0.90, #cacaca), to(#ababab));
}

div#keyPad .keyPad_btnESeries {font-size: 1.2em;font-weight: 600;}

    div#keyPad .keyPad_btnESeries:hover,
    div#keyPad .keyPad_btnESeries:active { color: #505050;}

/* table E-SERIES */
.tabESeries {
    width: 100%;
    text-align: center;
    color: #efefef;
    font-size: 1em;
    border-collapse: collapse;
}
    /* odd rows style */
    .tabESeries td, .tabESeries th {padding: 0.4em 0em;}
    .tabESeries tr:nth-child(odd) {background-color: #454545;}
    .tabESeries tr:hover {background-color: #cdcdcd; color: #000;}
    .tabESeries td:hover {cursor: pointer; background-color: #ededed; }
    .tabESeries th, .tabESeries th:hover { color: #baba11; background-color: #252525;}

.ecNote, .ecCopyright { margin: 5px 5px 0px 5px; font-size: 0.9em;}
.ecNote {
    float: right;
    color: #baba11;
}
.ecCopyright {
    float: left;
    color: #e0e0e0;
}

.clear {clear: both;}

/* h-spacer */
.hSpacer2, .hSpacer3, .hSpacer5 {clear: both; width: 100%;}
.hSpacer2 {height: 2px;}
.hSpacer3 {height: 3px;}
.hSpacer5 { height: 5px;}

/* w-spacer */
.wSpacer2, .wSpacer3, .wSpacer5 {float: right;height: 10px;}
.wSpacer2 {width: 2px;}
.wSpacer3 {width: 3px;}
.wSpacer5 {width: 5px;}


/* rotate */
.rotate360 {
    -moz-transition: all 0.8s;
    -webkit-transition: all 0.8s;
    -o-transition: all 0.8s;
    transition: all 0.8s;
}
.rotate360:hover {
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
}

/* expand */
.scale5, .scale10 {
    -moz-transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}
.scale5:hover {
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}
.scale10:hover {
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

/* at media */
@media screen and (min-width: 720px) {
    div#keyPad input, div#keyPad button, .ecExtControl {
        height: 40pt;
        line-height: 40pt;
    }
    div#keyPad input,
    div#keyPad button,
    div#keyPad .keyPad_btnESeries,
    div#keyPad .keyPad_btnESeries:hover,
    div#keyPad .ecExtControl {
        font-size: 1.5em;
    }

    div#keyPad input#keyPad_UserInput {font-size: 1.8em;}
    div#keyPad input#keyPad_Mem {font-size: 1.6em;}
    div#keyPad button#keyPad_btnReserved1 { font-size: 1.1em;}
}

@media screen and (min-width: 1024px) {
    .ecMain {
        width: 80%;
        margin-left: 10%;
    }
}
@media screen and (min-width: 1280px) {
    .ecMain {
        width: 60%;
        margin-left: 20%;
    }
}
@media screen and (min-width: 1600px) {
    .ecMain {
        width: 40%;
        margin-left: 30%;
    }
}

