
/***** Major layout elements *****/

body {
    font-family: Arial, sans-serif;
    background-color: #E1DDD7;
    font-size: 10pt;
    margin-left: 1em;
    margin-top: 5px;
}
#advisory {
    font-style: italic;
    font-size: .7em;
}
#controlPanel {
    border: 1px solid #666;
    padding: 5px;
    width: 29em;
}
.boxLine {
    vertical-align: middle;
}
#fgbg {
    float: left;
    margin-right:6px;
    margin-top: 2px;
}

#hexHslRgb {
    margin-top: 4px;
}
.spacer {
    color: #633E0D;
}
label {
    font-size: 1em;
}
.sldLbl {
    display: inline-block;
    width: 2.6em;
}
.ctrLbl {
    display: inline-block;
    width: 36px;
}
.ctr {
    width: 100%;
    display: inline-block;
    text-align: center;
}
.status {
    font-size: .9em;
    font-weight: bold;
}
.btmLine {
    font-size: .9em;
    color: #633E0D;
}
.connector {
    color: #00A300;
    background-color: #B8FFB8;
    border-bottom: 4px solid #B8FFB8;
}
#sizeWarn {
    /* not used */
    position: absolute;
    top: 60px;
    left: 80px;
    z-index: 2;
    width: 20em;
    padding: 5px 10px 5px 10px;
    background-color: #ebfff5;
    color: darkgreen;
    font-size: .9em;
    border: 1px solid darkgreen;
    border-radius: 5px;
}
#warnClose {
    position: relative;
    left: 40%;
    bottom: 2px;
}
#overlay {
    width: 100%;
    height: 100%;
    background-color: #888;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/**** Sliders & inputs *****/

#bgX, #fgX {
    border: 2px solid #aaa;
    background-color: #fafafa;
    width: 4.5em;
}
#bgX:hover, #fgX:hover, #bgX:focus, #fgX:focus {
    border: 2px solid #00A300;
}
input[type=number] {
    width: 3em;
    background-color: #fafafa;
    border: 2px solid #aaa;
    vertical-align: baseline;
    margin-bottom: 2px;
}
input[type=range] {
    vertical-align: -3px;
}
input[type=number].disabled {
    background-color: #ccc;
}

#fgHspan, #bgHspan {
    display: inline-block;
    background: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
}
#fgSspan, #bgSspan {
    display: inline-block;
    background: linear-gradient(to right, white,black);
}
#fgLspan, #bgLspan {
    display: inline-block;
    background: linear-gradient(to right, black,white);
}
#fgRspan, #bgRspan {
    display: inline-block;
    background: linear-gradient(to right, white,red);
}
#fgGspan, #bgGspan {
    display: inline-block;
    background: linear-gradient(to right, white,green);
}
#fgBspan, #bgBspan {
    display: inline-block;
    background: linear-gradient(to right, white,blue);
}

@media only screen and (max-width: 700px) {
    /* is this still relevant? */
    input[type=number] {
        width: 4em;
    }
    #controlPanel {
        width: 29em;
    }
}
input[type=number]:focus, input[type=number]:hover {
    border: 2px solid #00A300;
}
.sliderDisplay {
    color: #FFF5E5;
    background-color: #633E0D;
    font-size: .7em;
    padding: 0 .5em 0 .5em;
    margin-left: 0;
    position: relative;
    left: 0;
    z-index: 2;
}
select {
    color: #633E0D;
    background-color: #FFF5E5;
    border: 2px solid #aaa;
}
select:hover, select:focus {
    border: 2px solid #00A300;
}


/**** Color display *****/

#colorDisplay {
    text-align: center;
    padding-left: 0;
    background-color: white;
}
#display {
    color: black;
    height: 22px;
    width: 262px;
    background-color: white;
    padding: 0 10px 16px 10px;
    border: 1px solid #888;
    margin-bottom: 0;
    margin-top: 0;
    display: inline-block;
    /*line-height: 25px; */
}
#firstLine {
    margin-bottom: 0;
    margin-top: 3px;
}
#controls, #controlColor, #controlContrast, #controlPresets, #controlHSL, #controlRGB {
    margin-top: 3px;
    margin-bottom: 3px;
}
#controlHex {
    margin-top: 2px;
    margin-bottom: 2px;
}
#controlHSL, #controlRGB {
    position: relative;
}
#txtBox {
    margin: .25em .25em 0 .25em;
    padding: 3px;
}
#txtBig {
    font-size: 24px;
    vertical-align: 9px;
    /*line-height: 0.5;*/
}
#txtNorm {
    font-size: 16px;
    vertical-align: 11px;
}
#txtSmall {
    font-size: 12px;
    vertical-align: 13px;
}
#lrBox {
    font-size: .8em;
    padding: 0;
    margin: 0;
}
#lumRatio, #altRatio {
    display: inline-block;
    width: 3em;
    padding: 1px 5px 1px 5px;
    margin-bottom: 1px;
    border: 1px solid #aaa;
    background-color: #B8FFB8;
}
.clrChip {
    /*width: 12px;*/
    padding-left: 4px;
    padding-right: 4px;
    height: 12px;
    border: 1px solid #aaa;
}


/***** Buttons *****/
.preset {
    height: 20px;
    width: 25px;
}

#preBtns {
    display: inline-block;
    position: relative;
    margin: 0;
}

#fgXset, #bgXset, #showMorePre {
    font-weight: bold;
}
.tooltiptext {
    font-weight: normal;
}

button {
    color: #633E0D;
    background-color: #FFF5E5;
    border-style: solid;
    border-width: 2px;
    border-color: #eee #777 #444 #bbb;
}
button:focus, button:hover {
    border-color: #00A300;
}
#replaceScreen button:focus, #replaceScreen button:focus {
    border-color: #00A300;
}
/* Button variations for toggles */
.activeL {
    color: #FFF5E5;
    background-color: #633E0D;
    border-top: 2px solid #444;
    border-right: 2px solid #888;
    border-bottom: 2px solid #eee;
    border-left: 2px solid #777;
}
.activeR {
    color: #FFF5E5;
    background-color: #633E0D;
    border-top: 2px solid #444;
    border-right: 2px solid #bbb;
    border-bottom: 2px solid #eee;
    border-left: 2px solid #888;
}
.clickitL {
    color: #633E0D;
    background-color: #FFF5E5;
    border-top: 2px solid #eee;
    border-right: 2px solid #888;
    border-bottom: 2px solid #444;
    border-left: 2px solid #bbb;
}
.clickitR {
    color: #633E0D;
    background-color: #FFF5E5;
    border-top: 2px solid #eee;
    border-right: 2px solid #777;
    border-bottom: 2px solid #444;
    border-left: 2px solid #888;
}

span.outline {
    padding-bottom: 4px;
    border: 1px solid #633E0D;
}
span.togGrp {
    background-color: #a26515;
    border-top: 1px solid #a26515;
    padding-bottom: 3px;
    border-bottom: 2px solid #a26515;
}
#doneBtn {
    background-color: #EBFFF5;
    color: darkgreen;
}
#modelStatus {
    display: inline-block;
    text-align: right;
    font-size: .75em;
    width: 2em;
}
#model {
    width: 5em;
}
#ttStatus {
    display: inline-block;
    text-align: right;
    width: 1.5em;
}
#ttSwap {
    width: 4em;
}

#helpBtn {
    font-weight: bold;
}

#helpScreen {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 280px;
    padding: 5px 10px 5px 10px;
    background-color: #ebfff5;
    color: darkgreen;
    font-size: .9em;
    border: 1px solid darkgreen;
    border-radius: 5px;
}
#helpScreen ul {
    margin-top: .5em;
    margin-bottom: .5em;
}

#replaceScreen {
    position: absolute;
    top: 12px;
    left: 50px;
    z-index: 2;
    width: 200px;
    text-align: center;
    padding: 5px 10px 10px 10px;
    background-color: #ebfff5;
    color: darkgreen;
    font-size: .9em;
    border: 1px solid darkgreen;
    border-radius: 5px;
}
#saver {
    display: inline-block;
    font-size: .9em;
    margin-bottom: 4px;
}
#btnText {
    margin-top: 2px;
    margin-bottom: 2px;
}

/***** Tooltips *****/

#ttHelp  {
    position: absolute;
    z-index: 1;
    bottom: -270%;
    left: 280%;
}

#ttSave, #ttPre {
    position: absolute;
    z-index: 1;
    bottom: -270%;
    left: -45%;
}

#ttHelp::after, #ttSave::after, #ttPre::after {
    display: none;
}
/*
#ttSave {
    position: absolute;
    z-index: 1;
    bottom: 140%;
    left: 50%;
    margin-left: -60px;
    margin-bottom: 2px;
}
#ttSave::after {
    left: 80%;
}
*/

/* unique tooltips for elements that
   don't allow the standard ones
*/

.ttCustom {
    background-color: #ebfff5;
    color: darkgreen;
    border: 1px solid darkgreen;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
}
.ttCustom::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 100%;
    margin-left: 1px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent green;
}
#ttcMethod {
    visibility: hidden;
    font-size: .85em;
    text-align: center;
    width: 150px;
    left: 220px;
    top: 150px;
}
#ttColorView {
    visibility: hidden;
    font-size: .7em;
    text-align: left;
    padding-left: 5px;
    width: 115px;
    left: 285px;
    top: 10px;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    font-size: .9em;
    background-color: #ebfff5;
    color: darkgreen;
    border: 1px solid darkgreen;
    border-radius: 5px;
    text-align: center;
    padding: 5px 0;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 120%;
    left: 50%;
    margin-left: -60px;
    margin-bottom: 2px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}
/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: green transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/* add this class to tooltip text to prevent it from being displayed */
.noshow {
    display: none;
}


