/*-------------------------------------------------
Definitions
-------------------------------------------------*/

@viewport{
    zoom: 1.0;
    width: extend-to-zoom;
}

@-ms-viewport{
    width: extend-to-zoom;
    zoom: 1.0;
}

@font-face{
    font-family: 'Fira Code';
    src: url('fonts/FiraCode-Light.eot');
    src: url('fonts/FiraCode-Light.eot') format('embedded-opentype'),
         url('fonts/FiraCode-Light.woff2') format('woff2'),
         url('fonts/FiraCode-Light.woff') format('woff'),
         url('fonts/FiraCode-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face{
    font-family: 'Fira Code';
    src: url('fonts/FiraCode-Regular.eot');
    src: url('fonts/FiraCode-Regular.eot') format('embedded-opentype'),
         url('fonts/FiraCode-Regular.woff2') format('woff2'),
         url('fonts/FiraCode-Regular.woff') format('woff'),
         url('fonts/FiraCode-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face{
    font-family: 'Fira Code';
    src: url('fonts/FiraCode-Medium.eot');
    src: url('fonts/FiraCode-Medium.eot') format('embedded-opentype'),
         url('fonts/FiraCode-Medium.woff2') format('woff2'),
         url('fonts/FiraCode-Medium.woff') format('woff'),
         url('fonts/FiraCode-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face{
    font-family: 'Fira Code';
    src: url('fonts/FiraCode-Bold.eot');
    src: url('fonts/FiraCode-Bold.eot') format('embedded-opentype'),
         url('fonts/FiraCode-Bold.woff2') format('woff2'),
         url('fonts/FiraCode-Bold.woff') format('woff'),
         url('fonts/FiraCode-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/*-------------------------------------------------
PAGE BODY and LAYOUT
-------------------------------------------------*/
/* zero the margins, paddings and borders for all elements */

* {
    margin:0;
    padding:0;
    border:0;
    box-sizing:border-box;
    -o-box-sizing:border-box;
    -ms-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
}

#threeD, #delin, #delin_example, .pt, 
#finder li, #finder li:hover, .filehelper li, 
#quickSwitch {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none; 
}

br.clear {
    clear: both;
    margin: 0;
    padding: 0;
}

.shadow {
    box-shadow:0 0 4px rgba(0,0,0,0.5);
}

body {
    margin:2.75em 0;
    padding:0 20px;
    font-family:"Lucida Grande","Lucida Sans Unicode","Lucida Sans","Lucida","Trebuchet MS",verdana,helvetica,arial,sans-serif;
    font-size:1em;
    color:hsl(200,0%,10%);
    background:url('/include/images/bgpatterns/escheresque_trans.png') 0 0 repeat;
    background-position: 0 0;
    background-repeat: repeat;
    background-color: hsl(200,0%,20%);
    min-height: 100vh;
}

body.hologram, body.hologram #menubar, 
body.hologram #footer, body.hologram #footer *, 
body.hologram .toolbar, body.hologram #threeD {
    background: black !important;
    border-color: black !important;
    color: black !important;
    text-shadow: none;
}
body.hologram .toolbar button {
    background: black !important;
    border-color: rgb(20,20,20) !important;
}
body.hologram #holocancel {
    width: 50px;
    height: 50px;
    background: black;
    border: 1px solid rgb(50,50,50) !important;
    position: absolute;
}

body.loading {
    background-image:none;
    background-color:hsl(200,0%,20%);
}

.smallnote {
    font-size:.80em;
}

.ui-effects-transfer {
    border:1px dotted hsl(200,0%,20%);
    background-color:rgba(255,255,255,.5);
}

textarea, input, select,td {
    font:inherit;
}

pre,code,#imgname {
    font-size: 95%;
    font-family:'Fira Code',Monaco,"Andale Mono",monospace;
    color:hsl(200,0%,20%);
}

p {
    background:hsl(200,0%,90%);
    border:3px solid hsl(200,0%,90%);
    color:hsl(200,0%,10%);
    border-radius:0.5em;
    max-width:60em;
    margin:.5em auto;
    padding:.5em;
}

.warning {
    border:3px solid red;
}

.modal p,.modal p + p,.modal p:last-of-type {
    background:none;
    border:none;
    border-radius:0;
}

/***** HEADERS AND TEXT *****/
h1,h2,h3,h4,h5,h6 {
    font-size:1.10em;
    color:hsl(200,0%,20%);
    text-align:center;
    padding:.5em 0;
    clear:both;
    max-width:40em;
    margin:1em auto;
}

div > h1:first-child,
div > h2:first-child,
div > h3:first-child,
div > h4:first-child,
div > h5:first-child,
div > h6:first-child {
    margin-top:0;
}

h1 {
    text-align:left;
    font-variant:small-caps;
    padding:.5em;
}

h3,h4,h5,h6 {
    font-size:.875em;
}

p {
    margin:1em auto;
    text-align:left;
    line-height:1.5;
}

.modal {
    display:none;
    z-index:2000;
}

.default_button {
    border:3px solid hsl(200,0%,100%);
    background:hsl(200,0%,40%);
    font-weight:400;
    color:#fff;
}

.feature {
    max-width:40em;
    background:hsl(200,0%,90%);
    color:hsl(200,0%,10%);
    border:3px solid hsl(200,0%,100%);
    text-align:center;
    margin:1em auto;
    padding:.25em;
    -moz-border-radius:.5em;
    -khtml-border-radius:.5em;
    -webkit-border-radius:.5em;
    border-radius:.5em;
    box-shadow:0 0 4px rgba(0,0,0,0.5);
}

.feature input {
    max-width: 100%;
}

.feature h2 {
    padding:0;
}

strong {
    color:hsl(200,0%,20%);
    font-style:normal;
    font-weight:700;
}

.sub {
    font-size:.65em;
    vertical-align:sub;
}

#usertable {
    max-height: auto;
    overflow-y: scroll;
}

#resources {
    max-width: 60em;
    margin: 0 auto;
}

.resources {
    width: 50%;
    float: left;
}

.resources img {
    width: 120px;
    height: 160px;
    max-width: none;
}

/***** TEXT LINKS *****/
a {
    outline:none;
    cursor: pointer;
}

a, a:link,a:visited,a:hover,a:active,#menu a:focus {
    text-decoration:none;
    border-bottom:.1em solid hsl(200,0%,20%);
}

a:link {
    color:hsl(200,0%,20%);
}

a:visited {
    color:hsl(200,0%,20%);
}

a:hover,a:focus {
    color:hsl(200,0%,40%);
}

a:active {
    background-color:hsl(200,0%,20%);
    color:hsl(200,0%,100%);
    outline:none;
}

span.tinybutton,.tinybutton li,a.tinybutton,a.tinybutton:link,a.tinybutton:visited {
    cursor: pointer;
    font-size:.75em;
    border:.5px solid rgba(0,0,0,.5);
    padding:.1em .5em;
    border-radius: 1em;
    background-color:hsl(200,0%,20%);
    color:hsl(200,0%,100%)!important;
    box-shadow:1px 1px 2px rgba(0,0,0,0.5);
    margin:.25em;
    display:inline-block;
}

span.tinybutton:hover,.tinybutton li:hover,a.tinybutton:hover {
    background-color:hsl(200,0%,40%);
}

span.tinybutton:active,.tinybutton li:active,a.tinybutton:active {
    background-color:hsl(200,0%,40%);
    box-shadow:.5px .5px 1px rgba(0,0,0,0.5);
}

/***** BASIC LISTS *****/
ul {
    list-style:none;
    padding:0;
    margin:.5em;
}

ol {
    padding:0;
    margin:.5em .5em .5em 1.5em;
}

li {
    background-repeat:no-repeat;
    background-position:0 5px;
    padding:2px 10px 2px 2px;
}

ol li {
    padding:2px 10px 2px 2px;
}

dl {
    margin:0;
    line-height:1;
}

dt {
    float:left;
    clear:left;
    width:7em;
    margin-left:1em;
    text-align:right;
    color:gray;
    overflow:visible;
    white-space:nowrap;
    text-overflow:ellipsis;
}

dd {
    color:hsl(200,0%,10%);
    margin:0 1em .5em 8.5em;
}

dd > dl {
    margin:0 0 0 -8.5em;
}

dd > dl dt {
    font-style:italic;
    position:relative;
/* left: -1em; */
}

dd > dl dd {
    margin-right:0;
}

dd pre {
    width:100%;
    line-height:1;
    padding-top:1.5em;
}

.cite img, #aboutDialog img {
    max-height: 100px;
}

#whatsnewDialog ul {
    list-style:circle outside;
    margin:.5em .5em .5em 1.5em;
}

#whatsnewDialog ul li {
    padding:2px 10px 2px 2px;
}

#whatsnewDialog dt {
    padding-top:1em;
    color:hsl(200,0%,20%);
    font-size:1.10em;
}

#whatsnewDialog dd {
    padding-top:2.5em;
    margin:0 0 .5em 2em;
    line-height:1.2;
    font-size:1em;
}

#labelDialog ol input {
    width:100%;
}

input,select,textarea {
    border:1px dotted hsl(200,0%,20%);
}
input[type=text] {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

input:focus,select:focus,textarea:focus {
    box-shadow:2px 2px 4px rgba(0,0,0,0.5);
    border-color:hsl(200,0%,40%);
}

input[type=text]:focus,input[type=number]:focus,textarea:focus {
    background-color:hsl(200,0%,90%);
    color:hsl(200,0%,10%);
}

input.error,textarea.error {
    background-color:red!important;
    color:#000;
    border-color:red!important;
}

input[type="checkbox"], input[type="radio"]{
  width: 1em;
  height: 1em;
  cursor: pointer;
  /* 
  -webkit-appearance: none;
  appearance: none;
  */
}

input[type=number] {
    text-align:right;
}

input[type=search] {
    border-radius:1em;
    padding: 0 0.67em;
}

#menu_username {
    display:inline-block;
    float:right;
}

/***** TABLES *****/
table {
    border-collapse:separate;
    border-spacing:0;
    padding:.25em;
    -moz-border-radius:.5em;
    -khtml-border-radius:.5em;
    -webkit-border-radius:.5em;
    border-radius:.5em;
    padding:0;
    margin:auto;
}

table .ui-buttonset .ui-button span {
    font-size:.85em;
    padding:.1em .5em;
}

thead {
    background-color:hsl(200,0%,20%);
    color:hsl(200,0%,100%);
    text-align:center;
}

tfoot {
    background-color:hsl(200,0%,20%);
    color:hsl(200,0%,100%);
}

table.sortable thead th:hover {
    background-color:hsl(200,0%,40%);
    color:hsl(200,0%,100%);
}

td,th {
    padding:.25em;
    vertical-align:top;
}

.odd {
    background-color:hsl(200,0%,75%);
    color:hsl(200,0%,10%);
}

.even {
    background-color:hsl(200,0%,90%);
    color:hsl(200,0%,10%);
}

table.pca td:nth-child(3) {
    text-align:right;
    width:15em;
}

/***** PSYCHOMORPH *****/
.growl {
    position:absolute;
    z-index:1000;
    top:100px;
    left:50%;
    margin-left:-160px;
    width:300px;
    padding:10px;
    height:auto;
    border:3px solid hsl(200,0%,20%);
    border-radius:1em;
    background-color:hsl(200,0%,90%);
    color:hsl(200,0%,10%);
    box-shadow:5px 5px 10px rgba(0,0,0,0.5);
}

.growl a,.growl a:visited,.growl a:link,.growl a:hover {
    text-decoration:underline;
}

.growl p {
    margin:.5em 0;
    line-height:1.2;
}

.growl p:first-child {
    margin:0 0 .5em;
}

.growl p:last-child {
    margin:.5em 0 0;
}

p.msg {
    border:1px solid hsl(200,0%,20%);
    padding:.5em .5em 1em;
    border-radius:.5em;
    margin:.5em auto;
    display: none;
}

#footer {
    margin:0;
    padding:0 1.5em;
    position:fixed;
    text-shadow:0 1px 0 rgba(255,255,255,0.3);
    font-size:1em;
    font-family:"Lucida Grande","Lucida Sans Unicode","Lucida Sans","Lucida","Trebuchet MS",verdana,helvetica,arial,sans-serif;
    left:0;
    bottom:0;
    right:0;
    z-index:1000;
    height:1.571em;
    /*line-height:1.571em;*/
    background:-webkit-linear-gradient(top,rgba(250,250,250,0.8) 0%,rgba(206,206,206,0.8) 100%);
    background:-moz-linear-gradient(top,rgba(250,250,250,0.8) 0%,rgba(206,206,206,0.8) 100%);
    border-bottom:1px solid rgba(255,255,255,0.5);
    border-top:1px solid rgba(0,0,0,0.5);
    color:#000;
    text-align:left;
/*
    display: flex;
    justify-content: center;
    flex-direction: column;
*/
}

.progressBox {
    height:1.375em;
    width:100%;
    border:1px solid hsl(200,0%,20%);
    border-radius:4px;
}

.progressBar {
    height:1.375em;
    width:0;
    float:left;
/* background-color: hsl(200,0%,20%); */
}

#queue li span.status {
    position:absolute;
    left:0;
    width:1.5em;
/* same as left margin of li */
    text-align:center;
    display:inline-block;
    background:transparent center center no-repeat url(/include/images/menu/queue_waiting.svg);
    background-size:0.8em 0.8em;
}

#queue li.complete {
    color:grey;
}

#queue li.complete span.status {
    background-image:url(/include/images/menu/checkmark_grey.svg);
}

#queue li.active span.status {
    background-image:url(/include/images/menu/queue_active.svg);
}

#queue li.paused span.status {
    background-image:url(/include/images/menu/queue_paused.svg);
}

#queue li.waiting span.status {
    background-image:url(/include/images/menu/queue_waiting.svg);
}

#queue li span.shortcut {
    min-width:1.25em;
    text-align:right;
    display:inline-block;
    font-size:.75em;
    background:transparent center center no-repeat;
    background-size:1.125em 1.125em;
}

#queue li.active span.shortcut {
    background-image:url(/include/images/menu/queue_loading.svg);
}

#queue_n {
    display:inline-block;
    height:15px;
    min-width:15px;
    font-size:11px;
    color:hsl(200,0%,100%);
    background-color:hsl(200,0%,20%);
    border-radius:999px;
    text-align:center;
    vertical-align:super;
    line-height:11px;
    padding:2px 3px;
    margin-left:2px;
    font-family:'Helvetica Neue';
}

#pca_files li {
    padding-left:2.5ex;
    background:transparent left center no-repeat;
    background-size:2ex 2ex;
}

#pca_files li.active {
    background-image:url(/include/images/menu/queue_loading.svg);
}

#pca_files li.complete {
    background-image:url(/include/images/menu/checkmark_grey.svg);
}

#leftEye,#rightEye,#mouth {
    position:absolute;
    top:-100px;
    left:-100px;
    display:none;
    z-index:9999;
}

.search-hidden {
    display:none;
}

.interface {
    display:none;
}

#delineateInterface, #threeDInterface {
    padding-top: 2em;
}

.toolbar_switcher {
    display: none;
    position: absolute;
    top: 2.5em;
    left: 1.5em;
    width: 2em;
    height: 2em;
    z-index:200;
    background: center center no-repeat url(/include/images/icons/webmorph.php);
    background-size: contain;
}

#loadingInterface.interface {
    display:block;
    font-size:100px;
    color:hsl(200,0%,20%);
    text-align:center;
    height:120px;
    width:100em;
    position:absolute;
    top:50%;
    margin-top:-60px;
    line-height:120px;
}

#gif_demos {
    max-width:60em;
    margin:0 auto;
    text-align:center;
}

#gif_demos img {
    display:inline;
    width:150px;
    height:200px;
}

#loginBox {
    width: 37em;
    max-width: 100%;
}

#loginBox input[type=text],
#loginBox input[type=password],
#loginBox input[type=email] {
    width: 100%;
}

#loginBox tbody tr td {
    text-align:right;
    max-width: 9em;
}

#loginBox tbody tr td+td {
    text-align:left;
    max-width: 55em;
}

#guest-login-button, #login-button,#register-button,#reset-password-button {
    float:right;
    margin: 0.5em 0 0 0.5em;
}

#loginInterface .reg_item {
    display:none;
}

#reg_reason {
    width: 100%;
    height: 6em;
}

#introLinks {
    font-size:.80em;
    text-align:center;
}



#prefDialog {
    font-size: 1.2em;
}

#prefDialog-1 input[type=text],
#prefDialog-1 input[type=password],
#prefDialog-1 input[type=email] {
    width:255px;
}

#prefDialog table {
    padding:0;
}

.hue_chooser,.rgb_chooser,.rgba_chooser {
    height:2em;
    width:510px;
    background-color:hsl(200,0%,40%);
    background-size:contain!important;
    background-position:center center;
    background-repeat:repeat;
}
.hue_chooser {
    height: 1.5em;
}

.rgba_chooser {
    height: 2.67em;
}

.rgba_chooser_bg {
    background-image: url(/include/images/bgpatterns/escheresque);
    width:510px;
}

.rgba_text {
    display: inline-block;
    width: 13em;
}

#grid_line_color,
#prefDialog .hue_chooser, 
#prefDialog .rgb_chooser, 
#prefDialog .rgba_chooser, 
#prefDialog .rgba_chooser_bg {
    width: 255px;
    font-size: 100%;
}

.mask_color:not(#mask_color) {
    width:90%;
    margin-bottom:.5em;
}

.hue_chooser .ui-slider-handle,
.rgb_chooser .ui-slider-handle,
.rgba_chooser .ui-slider-handle {
    width:1em;
    height:0.75em;
    text-align:center;
    vertical-align: center;
    padding:0em;
    background-color:hsl(200,0%,100%);
    color:hsl(200,0%,100%);
}

.hue_chooser .ui-slider-handle {
    border:2px solid #000;
    width:2.5em;
    height:2em;
    padding:.3em 0 .5em 0;
}

.rgb_chooser .ui-slider-handle:hover,
.rgb_chooser .ui-slider-handle:focus,
.rgba_chooser .ui-slider-handle:hover,
.rgba_chooser .ui-slider-handle:focus {
    outline: none;
    background-image: none !important;
}

.rgb_chooser .ui-slider-handle:nth-child(1), 
.rgba_chooser .ui-slider-handle:nth-child(1)  {
    border:2px solid red;
    background-color: red;
}

.rgb_chooser .ui-slider-handle:nth-child(2),
.rgba_chooser .ui-slider-handle:nth-child(2) {
    border:2px solid green;
    background-color: green;
    margin-top: 0.75em;
}

.rgb_chooser .ui-slider-handle:nth-child(3),
.rgba_chooser .ui-slider-handle:nth-child(3) {
    border:2px solid blue;
    background-color: blue;
    margin-top: 1.5em;
}

.rgba_chooser .ui-slider-handle:nth-child(4) {
    border:2px solid grey;
    background-color: grey;
    margin-top: 2.25em;
}

#login_error {
    text-align:left;
}

#modDelinPoints {
    max-height:10em;
    overflow:auto;
}

#modDelinLines {
    width:100%;
    height:4em;
}

#facialmetricEQ {
    max-height:400px;
    overflow:auto;
}

#fm_delete {
    float:right;
    width:40px;
    height:50px;
    background-image:url(/include/images/finder/trash.php?h=200);
    background-position:center;
    background-repeat:no-repeat;
    background-size:contain;
}

#fm_new {
    float:right;
    clear:right;
}

#fm_delete.hover {
    background-image:url(/include/images/finder/trash_open.php?h=200);
}

#fm_name {
    width:93%;
}

#fm_equation {
    width:100%;
    height:3em;
    margin:.3em 0;
}

#fm_results td+td,#fm_results th+th {
    max-width:5em;
    overflow:hidden;
}

#fm_results tr td:first-child {
    white-space:nowrap;
    max-width:10em;
    overflow:hidden;
    text-overflow:ellipsis;
}

#webcam,#webcamvas {
    width:450px;
    height:600px;
    border:3px solid hsl(200,0%,20%);
    border-radius:4px;
    box-sizing: content-box;
}

#webcam-container {
    position: relative;
}

#webcamtem {
    background: 0 0 no-repeat url(/include/images/template.png);
    background-size: 450px 600px;
    position: absolute;
    top: 0;
    left: 0;
    width: 450px;
    height: 600px;
}

#continuum {
    border-bottom:3px solid hsl(200,0%,100%);
    border-top:3px solid hsl(200,0%,100%);
}

.movie_settings label {
    display:inline-block;
    width:5.5em;
}

#continuum:hover {
    background-color:hsl(200,0%,100%);
    color:hsl(200,0%,20%);
}

#movieDialog form {
    width:15em;
    float:left;
    padding-right:1em;
}

#movieDialog form div {
    margin:.5em 0;
}

#movieBox {
    background:#000 center contain no-repeat url(/include/images/loaders/circle.svg);
    height:200px;
    width:auto;
    float:left;
    box-shadow:0 0 4px rgba(0,0,0,0.5);
}

#still_imgs img {
    width: 55px;
    border: 1px solid white;
}
#still_imgs img.ui-selecting, #still_imgs img.ui-selected {
    border-color: red;
}

#batchWatchDialog .imageList {
    display:none;
    width:100%;
    height:80px;
    overflow-x:scroll;
    overflow-y:none;
}

.imageList div {
    width:9999px;
}

.imageList img {
    height:80px;
    width:auto;
    float:left;
    margin:0 5px 0 0;
}

.modal textarea {
    width:100%;
    font-size:.75em;
    display:block;
    margin:0 auto;
}

#batchAvgDialog table img {
    max-height:20px;
}

.batchDialog table td, .batchDialog table th {
    min-width:50px;
}

.batchDialog table {
    table-layout: fixed !important;
}

.batchDialog table td {
    padding: 0;
}

.batchDialog table td textarea {
    width: 100%;
    height: 2.4em;
    resize: none;
    padding: 0 2px;
    line-height: 1.1em;
}

.batchDialog .warning {
    display: none;
    color: red;
}

/*
.batchTableScroll {
    max-height:375px;
    overflow:auto;
    position:relative;
}

.batchTableScroll table {
    min-width:100%;
}
*/
.batchTableScroll table *, #batchAvgDialog textarea {
    font-family:'Fira Code',Monaco,"Andale Mono",monospace !important;
}
.batchList {
    width:100%;
    max-height:375px;
    overflow-y:auto;
}

.batchList table {
    width:100%;
}

.custom_batch td+td {
    text-align:right;
}

.custom_batch input {
    width:5em;
}

.batchList {
    max-height:250px;
}

.batchImages {
    height:250px;
}

.batchImages img {
    margin:0 5px 5px 0;
    max-height:80px;
    max-width:80px;
}

.batch_name {
    clear:both;
    margin-bottom:.5em;
}

.batch_name span {
    border-bottom:2px solid hsl(200,0%,20%);
}

#scrambleDialog {
    min-width: 650px;
}

#scrambleDialog input[type=integer] {
    width:3em;
}

#scramble_custom_mask {
    display: none;
}

#scrambleExample {
    width:600px;
    height:800px;
    background:transparent center no-repeat;
    background-size:contain;
    margin:1em auto;
    border: none;
}

#scrambleExample div {
    float:left;
    border-width:1px;
    border-color:#7f7f7f;
    border-top-style:solid;
    border-left-style:solid;
    border-right-style:none;
    border-bottom-style:none;
    background-color:transparent;
}

#scrambleExample div.rowstart {
    clear:left;
}

#scrambleExample div.ui-selecting {
    background-color:rgba(255,0,0,0.25);
}

#scrambleExample div.ui-selected {
    background-color:rgba(0,255,0,0.25);
}

#scramble_mask_setup {
    display: none;
}

#scramble_mask_setup ul {
    float: left;
}

#grid_line_color {
    display:inline-block;
}

#custom_mask_box {
    display:block;
    width:90%;
    font-size:1em;
}

#maskExample {
    width:300px;
    height:400px;
    position:relative;
    float:right;
    box-shadow:0 0 4px rgba(0,0,0,0.5);
}

#maskExample.trans {
    background-color:transparent;
}

#maskExample img {
    width:300px,;
    height:400px;
    position:absolute;
    top:0;
    left:0;
    display:none;
}

.colorcheck {
    display:inline-block;
    margin:.1em;
    border:1px solid grey;
    background-color:#000;
    width:1.5em;
    height:1.5em;
    vertical-align:middle;
    box-shadow:0 0 2px rgba(0,0,0,0.5);
}

#faceMaskDialog {
/* background-image: url('/include/images/bgpatterns/escheresque_trans'); */
}

/* MENUBAR STYLES */
#menubar {
    margin:0;
    padding:0 1.5em;
    position:fixed;
    text-shadow:0 1px 0 rgba(255,255,255,0.3);
    font-size:1em;
    top:0;
    left:0;
    bottom:0;
    right:0;
    z-index:1000;
    height:1.857em;
    background:-webkit-linear-gradient(top,rgba(250,250,250,0.8) 0%,rgba(206,206,206,0.8) 100%);
    background:-moz-linear-gradient(top,rgba(250,250,250,0.8) 0%,rgba(206,206,206,0.8) 100%);
    border-top:1px solid rgba(255,255,255,0.5);
    border-bottom:1px solid rgba(0,0,0,0.5);
    overflow:hidden;
}

#toggleMenu {
    display: none;
    position: fixed;
    top: 0;
    bottom: auto;
    right: 0;
    height: 2.1em;
    width: 2.25em;
    border-left: 1px solid rgba(0,0,0,0.5);
    z-index: 2000;
    background: rgba(0,0,0,0) center center no-repeat url(/include/images/icons/menu.php?h=0);
    background-size: 60%;
}

#menubar:hover {
    overflow:visible;
}

#menubar ul {
    list-style:none;
}

#menubar a {
    border:0;
}

.menucategory ul li.separator,.context_menu li.separator {
    border-top:1px solid rgba(0,0,0,0.15);
    height:0;
    padding:0;
    display:block;
    margin:0.357em 1px;
}

.menucategory ul li.separator:hover {
    background-color:rgba(255,255,255,.95);
}

#menubar > li {
    display:inline;
    position:relative;
    padding:0;
    line-height:1.571em;
}

.menucategory > span {
    padding:.25em .5em;
    z-index:1100;
}

.menucategory:hover > span {
    background:hsl(200,0%,20%);
    color:hsl(200,0%,100%);
}

.menucategory ul {
    position:absolute;
    left:0;
    margin:0;
    padding-bottom:.25em;
    display:none;
    z-index:1000;
    background-color:rgba(255,255,255,.95);
    border:1px solid rgba(0,0,0,0.25);
    border-top:1px solid rgba(0,0,0,0.5);
    box-shadow:0 8px 10px rgba(0,0,0,0.3);
    border-radius:0 0 6px 6px;
}

.menucategory > ul {
    top:1.4em;
}

.menucategory ul li {
    margin:0;
    padding:0 4.5em 0 1.5em;
    text-wrap:none;
    white-space:nowrap;
}

.menucategory ul li span.shortcut {
    position:absolute;
    right:.75em;
    padding:0;
    font-family:'Fira Code',Monaco,"Andale Mono",monospace;
}

#currentTem_name {
    display:none;
}

.menucategory:hover #currentTem_name {
    color:hsl(200,0%,100%);
}

span.checkmark {
    position:absolute;
    left:0;
    width:1.5em;
/* same as left margin of li */
    text-align:center;
    display:inline-block;
    background:transparent center center no-repeat url(/include/images/menu/checkmark_grey.svg);
    background-size:1em 1em;
}

li:hover > span.checkmark {
    background-image:url(/include/images/menu/checkmark_white.svg);
}

li.disabled span.checkmark,li.disabled:hover > span.checkmark {
    background-image:url(/include/images/menu/checkmark_lightgrey.svg);
}

.menucategory ul li:hover,
.menucategory:hover > span.shortcut,
.menucategory li:hover a,
.menucategory a:hover,
.menucategory a:active,
.context_menu li:hover {
    background-color:hsl(200,0%,20%);
    color:hsl(200,0%,100%);
    text-shadow:none!important;
    cursor:default;
}

.menucategory ul li.disabled {
    color:grey;
}

.menucategory.disabled {
    display:none;
}

#menubar ul.submenu {
    margin-left:100%;
    margin-top:-1.571em;
}

.menucategory ul li:hover .submenu {
    color:hsl(200,0%,10%);
    background-color:rgba(255,255,255,.95);
    border:1px solid rgba(0,0,0,0.5);
    box-shadow:1px 1px 2px rgba(0,0,0,0.5);
}

#menu_window .checkmark {
    display:none;
}

.dark #menubar {
    text-shadow:none !important;
    background:-webkit-linear-gradient(top,rgba(5,5,5,0.8) 0%,rgba(50,50,50,0.8) 100%);
    background:-moz-linear-gradient(top,rgba(5,5,5,0.8) 0%,rgba(50,50,50,0.8) 100%);
    border-top:1px solid rgba(0,0,0,0.5);
    border-bottom:1px solid rgba(255,255,255,0.5);
}

.dark .menucategory ul li.separator,.context_menu li.separator {
    border-top:1px solid rgba(255,255,255,0.15);
}

.dark .menucategory ul {
    background-color:rgba(0,0,0,.95);
    border:1px solid rgba(255,255,255,0.25);
    border-top:1px solid rgba(255,255,255,0.5);
}

.dark .menucategory ul li.disabled {
    background-color:rgba(0,0,0,.95)!important;
}

.dark .menucategory ul li:hover .submenu {
    background-color:rgba(0,0,0,.95);
}

.context_menu {
    padding:10px;
    z-index:9000;
    position:absolute;
    background-color:rgba(0,0,0,0);
}

.context_menu ul {
    min-width:10em;
    max-width:15em;
    background-color:rgba(240,240,240,.95);
    border:1px solid rgba(0,0,0,0.25);
    box-shadow:0 8px 10px rgba(0,0,0,0.3);
    border-radius:6px;
    font-size:.80em;
    padding:.25em 0;
}

.context_menu li {
    padding:.1em 1em;
}

.dark .context_menu ul {
    background-color:rgba(15,15,15,.95);
    border:1px solid rgba(255,255,255,0.25);
}

#colorbox {
    width:1em;
    height:1em;
    background-color:#000;
    border:1px solid grey;
    display:inline-block;
}

#cross,#selected_cross,#hover_cross,#pointer {
    display:none;
    z-index:9999;
}

#pointer {
    width:21px;
    height:16px;
    position:absolute;
}

#threeD {
    background-color: transparent;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

#d3_demo {
    max-width: 40em;
    max-height: 25em;
    width: 100%;
    margin: 20px auto;
    z-index: 500;
}

#d3_demo_extras {
    max-width: 40em;
    width: 100%;
    display: none;
}

#d3_morph_slider {
    z-index: 3000;
    display: none;
    position: absolute;
    bottom: 10px;
    right: 1em;
    left: 1em;
    color: 'black';
}

.d3_morph_slider {
    margin-left: 3em;
    margin-right: 3em;
}

#d3_bgcolor_slider, #d3_facehue_slider, #d3_light_slider, #d3_videosize_slider {
    width: 100%;
}

#d3_videosize_slider .ui-slider-handle {
    font-size: 80%;
    width:1.5em;
    line-height: 1.25em;
    text-align:center;
    vertical-align: center;
    padding:0em;
    color:hsl(200,0%,0%);
}

#d3_videosize_slider .ui-slider-handle:focus {
    background-color: red;
}

#d3_light_slider.ui-slider {
    background: linear-gradient(to right, grey, #eaedba);
}

#d3_bgcolor_slider.ui-slider {
    background: linear-gradient(to right, black, white);
}

#d3_facehue_slider.ui-slider {
    background: linear-gradient(to right, hsl(0,25%,50%),hsl(60,25%,50%),hsl(120,25%,50%),hsl(180,25%,50%),hsl(240,25%,50%),hsl(300,25%,50%),hsl(360,25%,50%));
    border-left: 5px solid white;
    border-right: 5px solid black;
}

div.ui-slider span.percent_left {
    position: absolute;
    top: 0;
    left: -3em;
    width: 3em;
    height: 100%;
    text-align: right;
    line-height: 0.5em;
    padding-right: 0.5em;
}

div.ui-slider span.percent_right {
    position: absolute;
    top: 0;
    right: -3em;
    width: 3em;
    height: 100%;
    text-align: left;
    line-height: 0.5em;
    padding-left: 0.5em;
}

#d3_lock_x.locked, #d3_lock_y.locked, #d3_lock_z.locked {
    background: rgba(0,0,0,.35);
    color: rgba(0,0,0,0.1);
}

#d3_lock_x.locked .wm-up-down-icon {
	background-image: url(/include/images/icons/up-down.php?h=0) !important;
}
#d3_lock_y.locked .wm-left-right-icon {
	background-image: url(/include/images/icons/left-right.php?h=0) !important;
}

#d3_progress_bar {
    display: inline-block;
    height: 17px;
    width: 8em;
    border: 1px solid grey;
    background-color: rgba(255,255,255,0.25);
}

#d3_progress {
    height: 15px;
    width: 0;
    background-color: grey;
}

#delin, #delin_example  {
    position:relative;
    top:0em;
    margin:0;
    padding:0;
    display:block;
    height:400px;
    width:300px;
    background:url(/include/images/bgpatterns/escheresque) 0 0 repeat;
    overflow:visible;
    z-index:70;
}

#template {
    position:absolute;
    top:0;
    left:0;
    height:400px;
    width:300px;
    z-index:80;
}

.pt {
    width:15px;
    height:15px;
    z-index:90;
    position:absolute;
    top:0;
    left:0;
    border-radius:100px;
    margin-left:-8px;
    margin-top:-8px;
    background:transparent center center no-repeat url(/include/images/delin/cross.php);
    background-size:contain;
}

.pt:hover,.pt.selected {
    box-shadow:0 0 1px 2px rgba(255,255,127,0.15);
    background-image:url(/include/images/delin/cross.php?h=0);
}

.pt.couldselect {
    box-shadow:0 0 1px 2px rgba(255,255,127,0.25);
    background-color:rgba(255,255,255,0.15);
}

.pt.highlighted {
    box-shadow:0 0 1px 2px rgba(255,0,0,0.75);
    background-color:rgba(255,255,255,0.5);
}

#imgsearch {
    display:none;
}

.toolbar {
    display:inline-block;
    padding:.25em 1.25em .25em .5em;
    margin-bottom:.5em;
    position:fixed;
    z-index:100;
    top:2.5em;
    left:20px;
    right:20px;
    background:rgba(255,255,255,.7);
    border:2px solid hsl(200,0%,20%);
    border-radius:4px;
    font-size:.9em;
}

#delin_close {
    border-radius: 2em;
    width: 2em;
}

.toolbar button {
    position:relative;
    max-width: 2.5em;
    width: 2.5em;
    height: 2em;
}

#obj_switcher {
    margin-left: 0.5em;
}
.toolbar #obj_switcher button {
    width: 2em;
    border-radius: 2em;
    margin-right: 0.1em;
    padding: 0;
    background: -webkit-linear-gradient(top, rgba(250,250,250,0.8) 0%, rgba(206,206,206,0.8) 100%);
	background: -moz-linear-gradient(top, rgba(250,250,250,0.8) 0%, rgba(206,206,206,0.8) 100%);
	background-color: white;
}

.toolbar #obj_switcher button.selected {
    background: -webkit-linear-gradient(top, rgba(250,250,250,0.4) 0%, rgba(206,206,206,0.4) 100%);
	background: -moz-linear-gradient(top, rgba(250,250,250,0.4) 0%, rgba(206,206,206,0.4) 100%);
    background-color: black;
}

#footer-text .obj-button, #imgname .obj-button {
    display: inline-block;
    font-size: 0.67em;
    width: 1.5em;
    height: 1.5em;
    border-radius: 1.5em;
    border: 1px solid grey;
    line-height: 1.5em;
    text-align: center;
}

.toolbar span {
    display:inline-block;
}

.toolbar button.wm span.ui-button-icon-primary {
    background-position: center 60% !important;
	background-size: contain !important;
}
.wm-bug-icon {
	background-image: url(/include/images/icons/bug.php) !important;
}
.wm-morph-icon {
	background-image: url(/include/images/icons/morph.php) !important;
}
.wm-up-down-icon {
	background-image: url(/include/images/icons/up-down.php) !important;
}
.wm-left-right-icon {
	background-image: url(/include/images/icons/left-right.php) !important;
}
.wm-color-icon {
	background-image: url(/include/images/icons/color.php) !important;
}
.wm-lightbulb-icon {
	background-image: url(/include/images/icons/lightbulb_on.php?h=0) !important;
}
.off .wm-lightbulb-icon {
    background-image: url(/include/images/icons/lightbulb_off.php?h=0) !important;
}
.wm-video-icon {
	background-image: url(/include/images/icons/video.php?h=0) !important;
}
.wm-record-icon {
	background-image: url(/include/images/icons/record.php?h=0) !important;
}
.pause .wm-record-icon {
	background-image: url(/include/images/icons/pause.php?h=0) !important;
}
.wm-hologram-icon {
	background-image: url(/include/images/icons/hologram.php?h=0) !important;
}
.wm-origsize-icon {
	background-image: url(/include/images/icons/origsize.php?h=0) !important;
}
.wm-delete-icon {
	background-image: url(/include/images/icons/delete.php?h=0) !important;
}
.wm-wireframe-icon {
	background-image: url(/include/images/icons/wireframe.php?h=0) !important;
}
.wm-skin-icon {
	background-image: url(/include/images/icons/skin.php?h=0) !important;
}
.wm-facecolor-icon {
	background-image: url(/include/images/icons/facecolor.php?h=0) !important;
}
.wm-bgcolor-icon {
	background-image: url(/include/images/icons/bgcolor.php?h=0) !important;
}
.wm-center-icon {
	background-image: url(/include/images/icons/center.php?h=0) !important;
}
.wm-zoomin-icon {
	background-image: url(/include/images/icons/zoomin.php?h=0) !important;
}
.wm-zoomout-icon {
	background-image: url(/include/images/icons/zoomout.php?h=0) !important;
}
.wm-fitsize-icon {
	background-image: url(/include/images/icons/fitsize.php?h=0) !important;
}
.wm-menu-icon {
	background-image: url(/include/images/icons/menu.php?h=0) !important;
}
.wm-play-icon {
	background-image: url(/include/images/icons/play.php?h=0) !important;
}
.wm-save-icon {
	background-image: url(/include/images/icons/save.php?h=0) !important;
}
.wm-help-icon {
	background-image: url(/include/images/icons/help.php?h=0) !important;
}

#quickhelp {
    display:none;
}

#ptLabel {
    display:none;
    width:15em;
}

#imgsize {
    width:15em;
    height:1em;
    margin:0 .5em;
    display:none;
    position:relative;
    top:7px;
}

#size_value {
    text-align:right;
}

#imgname {
    float:right;
    text-align:right;
    max-width:15em;
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:nowrap;
}

/*
button.unsaved {
    background: rgb(255,78,78) !important;
}
*/
/* FINDER STYLES */

#finder {
    position:relative;
    min-height:200px;
    overflow:auto;
    background:hsl(200,0%,100%) center center no-repeat;
    background-size:150px 150px;
    border:1px solid hsl(200,0%,10%);
    font-size:1.2em;
    box-shadow:0 0 4px rgba(0,0,0,0.5);
}

#lightTable { 
    display:none;
    height:450px;
    padding: 0;
}
#lightTable div { 
    padding-top: 150px;
    text-align:center;
    width:100%;
}

#lightTable img {
    box-shadow:0 0 4px rgba(0,0,0,0.5);
    width: auto;
    height:200px;
    float: left;
    margin: 5px;
}

#uploadbar {
    position:absolute;
    top:-100px;
}
#projectsearchbar {
    display: block;
    width: 100%;
    max-width:60em;
    margin: 0 auto .5em auto;
}
#searchbar {
    display:none;
    width: 100%;
    margin-bottom:.5em;
}

#finder ul {
    margin:0;
    height:100%;
    position:absolute;
    top:0;
    list-style:none outside none;
    z-index:1;
}

#finder ul ul {
    border-left:1px solid #e0e0e0;
    list-style:none outside none;
}

#finder li,#finder li:hover,.filehelper li {
    min-height:1.25em;
    padding:0 0 0 2.5em;
    margin-bottom:1px;
    background-color:hsl(200,0%,40%);
    background-image:url(/include/images/finder/folder.php?h=200),url(/include/images/finder/folder_arrow_white.svg);
    background-position:5px center,right 2px center;
    background-repeat:no-repeat;
    background-size:auto 1.1em,auto auto;
    color:hsl(200,0%,100%);
}

#finder li.folder.closed {
    background-color:transparent;
    background-image:url(/include/images/finder/folder.php?h=200),url(/include/images/finder/folder_arrow_grey.svg);
    color:hsl(200,0%,10%);
}

#finder li.folder.selected,#finder li.folder.closed.selected {
    background-color:hsl(200,0%,40%);
    background-image:url(/include/images/finder/folder.php?h=200),url(/include/images/finder/folder_arrow_white.svg);
    color:hsl(200,0%,100%);
}

#finder li.file:hover {
    background-color:hsl(200,0%,75%);
    color:hsl(200,0%,10%);
}

#finder li.folder.closed ul {
    display:none;
}

#finder li.file,.filehelper li {
    background:transparent 5px 0 no-repeat url(/include/images/finder/imgicon.php?h=200);
    color:hsl(200,0%,10%);
    background-size:contain;
}

#finder li.folder#trash {
    background-image:url(/include/images/finder/trash.php?h=200),url(/include/images/finder/folder_arrow_grey.svg);
    background-size:contain,auto;
}

#finder li.tem {
    background-image:url(/include/images/finder/temicon.php?h=200);
}

#finder li.txt {
    background-image:url(/include/images/finder/txticon.php?h=200);
}

#finder li.tps {
    background-image:url(/include/images/finder/tpsicon.php?h=200);
}

#finder li.csv {
    background-image:url(/include/images/finder/csvicon.php?h=200);
}

#finder li.pca {
    background-image:url(/include/images/finder/pcaicon.php?h=200);
}

#finder li.pci {
    background-image:url(/include/images/finder/pciicon.php?h=200);
}

#finder li.fimg {
    background-image:url(/include/images/finder/fimgicon.php?h=200);
}

#finder li.obj {
    background-image:url(/include/images/finder/objicon.php?h=200);
}

#finder li.file.selected,#average-list li.selected {
    background-color:hsl(200,0%,40%);
    color:hsl(200,0%,100%);
}

#finder li.file.to_cut,#finder li.file.nosearch,#finder li.file.processing {
    background-color:rgba(0,0,0,.1)!important;
    color:rgba(0,0,0,.3)!important;
}

#finder li.file.ui-selecting,#finder li.file.selected.ui-selecting {
    background-color:hsl(200,0%,40%);
    color:hsl(200,0%,10%);
}

#finder li.file > span {
    max-width:20em;
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:nowrap;
}

#finder > span {
    font-size: 1.25em;
}

#finder span {
    cursor:default;
}

.imghelper {
    width:50px;
    z-index:9000;
}

.filehelper {
    border:none!important;
    height:auto!important;
    z-index:9000;
    font-size:.80em;
}

.filehelper li,.filehelper li:hover {
    background-color:transparent!important;
}

#finder li.folder.folderDrop {
    background-color:transparent;
}

#finder li.folder.folderDrop > span,.filehelper li span {
    background-color:hsl(200,0%,20%);
    color:hsl(200,0%,100%);
    border-radius:1em;
}

.filehelper li span {
    padding:2px 0 2px 3px!important;
    margin-left:0;
    cursor: grabbing;
}

#finder li.folder ul.folderDrop {
    box-shadow:0 0 5px hsl(200,0%,20%) inset;
}

#finder span {
    display:block;
    width:100%;
    max-width:15em;
    position:relative;
    left:-1.875em;
    padding:2px 0 2px 1.875em;
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:nowrap;
}

#finder.hidetems li.tem {
    display:none;
}

#finder.image-view ul > li > ul li {
    height:80px;
    width:80px;
    border-radius:7px;
    padding:1px;
    border:2px solid rgba(0,0,0,0);
    background-position:center center;
    margin:5px 5px 20px;
    float:left;
}

#finder.image-view li.file.selected {
    background-color:hsl(200,0%,40%);
    border:2px solid rgba(0,0,0,.1);
}

#finder.image-view li.folder {
    background-image:url(/include/images/finder/folder.php?h=200);
    background-size:contain;
}

#finder.image-view li > span {
    padding:85px 0 0;
    left:-5px;
    text-align:center;
    width:90px;
    text-overflow:ellipsis;
    overflow:hidden;
}

#finder.image-view li.selected > span,#finder.image-view li.folder:not(.closed) > span {
    color:hsl(200,0%,10%);
}

#average-list {
    overflow-y:auto;
    text-align:left;
}

#average-list li {
    min-height:1.25em;
    padding:0 0 0 2.3em;
    margin-bottom:1px;
    background:transparent 5px center no-repeat;
    background-size:1.25em;
}

#average-list li.dupavg {
    color:red;
}

#defaultTemNotes {
    width:100%;
    height:2em;
}

#help {
    font-size:1em;
}

#help h1 {
    text-align:center;
    font-size:1.30em;
    color:hsl(200,0%,100%);
    background-color:hsl(200,0%,20%);
    width:95%;
    display:block;
    border-radius: 2em;
}

#help h1 + h2 {
    border-top:none;
}

#help h2,#help h3 {
    text-align:left;
    margin:0;
    border-top:1px solid hsl(200,0%,20%);
}

#help ul,#delinHelp ul {
    list-style:disc outside;
}

.tinyhelp {
    cursor:default;
    display:inline-block;
    font-weight:900;
    font-size:.80em;
    width:1.5em;
    height:1.5em;
    color:hsl(200,0%,20%);
    background-color:hsl(200,0%,100%);
    border-radius: 100%;
    box-shadow:0 0 2px rgba(0,0,0,0.5);
    text-align:center;
    margin:0;
    vertical-align:text-center;
    line-height:1.5em;
}

.tinyhelp {
    content:"?";
}

.tinyhelp:hover {
    color:hsl(200,0%,100%);
    background-color:hsl(200,0%,40%);
}

.tinyhelp:active {
    box-shadow:0 0 1px rgba(0,0,0,0.5);
}

/*

⌘ – &#x2318; – &#8984; – the Command Key symbol
⌥ – &#x2325; – &#8997; – the Option Key symbol
⇧ – &#x21E7; – &#8679; – the Shift Key symbol
⎋ – &#x238B; – &#9099; – the ESC Key symbol
⇪ – &#x21ea; – &#8682; – the Capslock symbol
⏎ – &#x23ce; – &#9166; – the Return symbol
⌫ – &#x232b; – &#9003; – the Delete / Backspace symbol
⇥ – &#x21e5; – &#8677; – the Tab symbol
⌃ – &#x2303; –            – the Ctrl symbol

*/

span.kb, span.shift, span.cmd, span.shiftcmd, span.opt, span.shiftopt, span.shiftcmdopt {
    font-family:'Fira Code',Monaco,"Andale Mono",monospace;
}

body.mac span.cmd:before {
    content:"\2318";
}

body.pc span.cmd:before {
    content:"\2303";
}

body.mac span.shiftcmd:before {
    content:"\21E7\2318";
}

body.pc span.shiftcmd:before {
    content:"21E7\2303";
}

span.opt:before {
    content:"\2325";
}

span.shift:before {
    content:"\21E7";
}

span.shiftopt:before {
    content:"\21E7\2325";
}

body.mac span.shiftcmdopt:before {
    content:"\21E7\2318\2325";
}

body.pc span.shiftcmdopt:before {
    content:"21E7\2303\2325";
}

/* FILEPREVIEW */
#filepreview {
    width:205px;
    overflow:visible;
    display:none;
    position:fixed;
}
#filepreview h1, #filepreview table {
    padding: 0;
    margin: 2px;
}

#filepreview h1 {
    width: 6em;
    text-align: right;
}

#selectedImage, #selectedTem {
    border:1px solid grey;
    box-shadow:2px 2px 4px rgba(0,0,0,0.5);
    display:none;
}

#selectedImage {
    max-width:200px;
    max-height:300px;
    background:url(/include/images/bgpatterns/escheresque) 0 0 repeat;
}

#selectedTem {
    height:400px;
    width:300px;
    font-size: .75em;
    font-family: 'Fira Code',Monaco,"Andale Mono",monospace;
}

#filepreview #fileinfo, #filepreview #history {
    width:100%;
    margin-bottom:.5em;
    font-size:.85em;
    color: grey;
}
#filepreview table {
    font: size: 85%;
    color: grey;
    width: 100%;
    max-width: 300px;
}

#filepreview table td {
    padding: 1px 0;
}
#filepreview table td:nth-child(1) {
    text-align:right;
    padding-right: 0.5em;
    font-variant:small-caps;
    width: 7em;
}
#filepreview table tr.date td {
    border-top: 1px solid #e0e0e0;
}

#individual_image_box {
    width:100%;
    padding-left:330px;
}

#avginfo p {
    max-width:100em;
    font-size:.85em;
}

#selectBox {
    border:1px solid #0F0;
    z-index:9999;
    display:none;
    position:absolute;
}

.chosen {
    background-color:hsl(200,0%,90%);
}

.disabled {
    color:#666;
}

#grid,#continua {
    display:none;
}

.dim {
    text-align:left;
}

.dim input {
    float:right;
}

.dim label {
    width:30em;
}
    
.dim input {
    width:10em;
}

#transform {
    object-fit:contain;
    overflow:hidden;
}

#destimages,#grid,#continua,#avg_image_box {
    margin:0;
    font-size:.75em;
    position:absolute;
    width:310px;
    max-width:95%;
}

#avg_image_box {
    height:450px;
}

#average {
    position:absolute;
    top:10px;
    right:10px;
    left:10px;
    bottom:40px;
    background:transparent center center no-repeat url('/include/images/blankface.php?h=200');
    background-size:contain!important;
    display:block;
    border:none;
}

#avg_buttons {
    position:absolute;
    left:0;
    right:0;
    bottom:10px;
    text-align:center;
    margin-top:1em;
    font-size:.75em;
}

#destimages img,#grid img {
    width:100%;
    height:auto;
    border:3px solid hsl(200,0%,100%);
    padding:0;
}

.hoverdrag,#destimages li.hoverdrag {
    border-color:hsl(200,0%,20%);
}

#destimages li,#grid li,#continua li {
    padding:1% 0;
    display:block;
    clear:both;
}

#trans_minus {
    text-align: right !important;
}
#trans_plus {
    text-align: left !important;
}

#continua img {
    width:32%;
}

#destimages li > div,#grid li div {
    width:48%;
    text-align:center;
    display:inline-block;
    float:left;
    padding:1%;
}

#destimages li.movie_settings {
    display:none;
    text-align:left;
}

#destimages li.movie_settings div {
    width:90%;
    margin:1px auto;
}

#trans_settings span {
    display:inline-block;
    width:32%;
    text-align:center;
}

#trans_settings label {
    display:inline-block;
    width:4em;
}

#destimages input[type=number] {
    width:4em;
}

#recent_creations,#taglist {
    clear:both;
    max-width:100%;
    width:100%;
}

#recent_creations {
    text-align:left;
    display:block;
}

#recent_creations img {
    width:auto;
    height:120px;
    margin:0 5px 2px 0;
    padding:0;
    box-shadow:0 0 4px rgba(0,0,0,0.5);
}

#recent_creations img:active {
    box-shadow:1px 1px 2px rgba(0,0,0,0.5);
}

#resizer {
    font-size:1.5em;
}

#resizer input[type=number] {
    font-size:1em;
    width:3em;
}

#cropDiagram {
    text-align:center;
    position:relative;
}

#cropBox {
    display:inline-block;
    background:hsl(200,0%,90%) center no-repeat url(/include/images/cropBox.svg);
    box-shadow:0 0 4px rgba(0,0,0,0.5);
    position:relative;
    width:150px;
    height:150px;
    border:1px solid rgba(0,0,0,0.8);
    margin:0;
}

#cropDiagram input {
    margin:10px;
    width: 4em;
}
.patchcolor input {
    width: 4em;
}
div.patchcolor {
    display: none;
}

#cropDiagram input[name=left],#cropDiagram input[name=right] {
    position:relative;
    top:-70px;
}

#cropBox * {
    position:absolute;
}

#cropBoxWidth {
    left:10px;
    bottom:20px;
}

#cropBoxHeight {
    top:10px;
    right:20px;
}

#mask_builder_box {
    width:100%;
    display:none;
    padding-top:2em;
}

#custom_mask {
    /*width:50%;
    float:right;*/
    height:3em;
    border:2px solid hsl(200,0%,20%);
}

#project_list {
    border:3px solid hsl(200,0%,100%);
    background-color:hsl(200,0%,90%);
    box-shadow:0 0 4px rgba(0,0,0,0.5);
    max-width:60em;
    display: none;
}

#project_list .tinybutton {
    font-size: 1em;
    padding: 0.5em;
    min-width: 2.5em;
    text-align: center;
    margin: 0;
}

#project_list tr td:nth-child(3) {
    max-width:25%;
}

#project_list tr td:nth-child(4) {
    min-width:5em;
}

#project_list ul {
    margin:0;
}

.project_owners {
    display: none;
}

.project_owners_toggle {
    cursor: pointer;
    white-space:nowrap;
    position: relative;
    padding-right: 1em;
}

.project_owners_toggle span {
    position: absolute;
    right: 0;
}
.project_owners_toggle span:after {
    content: "\0025BA";
}
.project_owners_toggle.vis span:after {
    content: "\0025BC";
}

.project_owners li {
    white-space:nowrap;
    padding:0;
}

.project_owners li.read-only {
    color:grey;
}

.projectOwnerAdd {
    width:100%;
}

/**************************** START OS X BUTTON STYLE **********************************/
/******************** http://jsfiddle.net/reitermarkus/xLQ2F/ **************************/
.ui-button,.ui-button:hover {
    color:#000;
    text-decoration:none;
    text-shadow:0 1px rgba(255,255,255,.2);
    font:400 17px/29px "Helvetica Neue",Arial,sans-serif;
    -webkit-tap-highlight-color:transparent;
    padding:0 .923em;
    border:1px solid;
    border-top-color:#9d9d9d;
    border-bottom-color:#939393;
    border-left-color:#949494;
    border-right-color:#949494;
    box-shadow:0 1px rgba(0,0,0,0.1);
    -moz-box-shadow:0 1px rgba(0,0,0,0.1);
    -webkit-box-shadow:0 1px rgba(0,0,0,0.1);
    -webkit-appearance:none;
    background:#fff;
/* Old browsers */
    background:-webkit-gradient(linear,left top,left bottom,/* Chrome,*/ color-stop(0%,#fff),/* Safari4+ */ color-stop(25%,#fff),color-stop(30%,#fcfcfc),color-stop(35%,#f9f9f9),color-stop(40%,#f7f7f7),color-stop(45%,#f5f5f5),color-stop(50%,#f2f2f2),color-stop(50%,#ececec),color-stop(80%,#ededed),color-stop(95%,#efefef),color-stop(100%,#f2f2f2));
    background:-webkit-linear-gradient(top,#fff 0%,#fff 25%,#fcfcfc 30%,#f9f9f9 35%,/* Chrome10+,*/ #f7f7f7 40%,#f5f5f5 45%,#f2f2f2 50%,#ececec 50%,/* Safari5.1+ */ #ededed 80%,#efefef 95%,#f2f2f2 100%);
    background:-moz-linear-gradient(top,#fff 0%,#fff 25%,#fcfcfc 30%,#f9f9f9 35%,/* FF3.6+ */ #f7f7f7 40%,#f5f5f5 45%,#f2f2f2 50%,#ececec 50%,#ededed 80%,#efefef 95%,#f2f2f2 100%);
    background:-o-linear-gradient(top,#fff 0%,#fff 25%,#fcfcfc 30%,#f9f9f9 35%,/* Opera 11.10+ */ #f7f7f7 40%,#f5f5f5 45%,#f2f2f2 50%,#ececec 50%,#ededed 80%,#efefef 95%,#f2f2f2 100%);
    background:-ms-linear-gradient(top,#fff 0%,#fff 25%,#fcfcfc 30%,#f9f9f9 35%,/* IE10+ */ #f7f7f7 40%,#f5f5f5 45%,#f2f2f2 50%,#ececec 50%,#ededed 80%,#efefef 95%,#f2f2f2 100%);
    background:linear-gradient(top,#fff 0%,#fff 25%,#fcfcfc 30%,#f9f9f9 35%,/* W3C */ #f7f7f7 40%,#f5f5f5 45%,#f2f2f2 50%,#ececec 50%,#ededed 80%,#efefef 95%,#f2f2f2 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(/* IE6-9 */ startColorstr='#ffffff',endColorstr='#f2f2f2',GradientType=0);
    cursor:default;
    -webkit-user-select:none;
    -moz-user-select:none;
    user-select:none;
}

/**** Loader ****/

.rainbow-loader {
    font-size:250px;
    bottom:0;
    height:1em;
    left:0;
    margin:auto;
    position:absolute;
    right:0;
    top:0;
    width:1em;
    z-index:700;
}

.rainbow-loader > div {
    animation:rainbow-loader 2000ms cubic-bezier(0,0,1,1) infinite;
    height:.5em;
    left:0;
    overflow:hidden;
    position:absolute;
    top:0;
    transform-origin:50% 100%;
    width:1em;
}

.rainbow-loader > div > div {
    border:.06em solid transparent;
    box-shadow:1px 1px 1px rgba(0,0,0,0.1);
    border-radius:100%;
    height:1em;
    left:0;
    margin:0 auto;
    position:absolute;
    right:0;
    top:0;
    width:1em;
}

.rainbow-loader > div:nth-child(1) {
    animation:rainbow-loader 8000ms cubic-bezier(0,0,1,1) infinite;
}

.rainbow-loader > div:nth-child(2) {
    animation:rainbow-loader 4000ms cubic-bezier(0,0,1,1) infinite;
}

.rainbow-loader > div:nth-child(3) {
    animation:rainbow-loader 2000ms cubic-bezier(0,0,1,1) infinite;
}

.rainbow-loader > div:nth-child(4) {
    animation:rainbow-loader 1000ms cubic-bezier(0,0,1,1) infinite;
}

.rainbow-loader > div:nth-child(5) {
    animation:rainbow-loader 500ms cubic-bezier(.0,0,1,1) infinite;
}

.rainbow-loader > div:nth-child(6) {
    animation:rainbow-loader 250ms cubic-bezier(0,0,1,1) infinite;
}

.rainbow-loader > div:nth-child(1) > div {
    border-color:hsla(0,100%,45%,.8);
    height:.9em;
    width:.9em;
    top:.05em;
}

.rainbow-loader > div:nth-child(2) > div {
    border-color:hsla(30,100%,50%,.8);
    height:.76em;
    width:.76em;
    top:.12em;
}

.rainbow-loader > div:nth-child(3) > div {
    border-color:hsla(50,100%,50%,.8);
    height:.62em;
    width:.62em;
    top:.19em;
}

.rainbow-loader > div:nth-child(4) > div {
    border-color:hsla(100,100%,30%,.8);
    height:.48em;
    width:.48em;
    top:.26em;
}

.rainbow-loader > div:nth-child(5) > div {
    border-color:hsla(200,100%,35%,.8);
    height:.34em;
    width:.34em;
    top:.33em;
}

.rainbow-loader > div:nth-child(6) > div {
    border-color:hsla(275,100%,40%,.8);
    height:.2em;
    width:.2em;
    top:.40em;
}

@keyframes rainbow-loader {
    0% {
        transform:rotate(0);
    }
    
    100% {
        transform:rotate(360deg);
    }
}


.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited,.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited,.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus,.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,.ui-widget-header a,.ui-widget-content,.ui-widget-content a,.ui-widget-header {
    color:hsl(200,0%,10%);
}

.ui-dialog .ui-dialog-content {
    background-color:hsl(200,0%,100%);
}

.ui-widget-content {
    background:hsl(200,0%,100%);
}

@media screen and (max-width: 768px) {
    body {
        margin:10px 0;
        padding:0 10px 3.2em 10px;
    }
    
    .resources { 
        width: 100%;
        float: none; 
    }
    
    #delineateInterface, #threeDInterface {
        padding-top: 2.75em;
    }
    
    .toolbar_switcher {
        top: 15px;
        left: 15px;
    }

    .toolbar {
        margin-bottom:10px;
        top:10px;
        left:10px;
        right:10px;
    }
    
    input {
        font-size: 150%;
    }
    
    #finder li,#finder li:hover,.filehelper li {
        padding-left: 1.9em;
    }
    
    #finder li.file > span {
        max-width:10em;
    }
    
    #footer {
        font-size: 1em;
        padding: 0.1em 4em 0.1em 10px;
        height:3em;
        background:-webkit-linear-gradient(top,rgba(250,250,250,0.95) 0%,rgba(206,206,206,0.95) 100%);
        background:-moz-linear-gradient(top,rgba(250,250,250,0.95) 0%,rgba(206,206,206,0.95) 100%);
    }
    
    #footer-text, #imgname {
        display: block;
        font-size: 0.9em;
        line-height:1.4em;
        height: 1.4em; 
        float:none;
        text-align:left;
        max-width:100%;
        text-overflow:ellipsis;
        overflow:hidden;
        white-space:nowrap;
    }
    
    #toggleMenu {
        display: block;
        top: auto;
        bottom: 0;
        right: 0;
        height: 3em;
        width: 3em;
    }
    
    #quickSwitch {
        display: none;
        position: fixed;
        width: 3em;
        height: 18em;
        bottom: 3em;
        right: 0;
        z-index: 1900;
        padding: 0;
        margin: 0;
    }
    
    #quickSwitch li {
        padding: 0;
        width: 3em;
        height: 3em;
        line-height: 3em;
        text-align: center;
        border: 1px solid rgba(0,0,0,0.5);
        border-bottom: none;
    }
    #quickSwitch li[data-window=menu] {
        background-color:hsla(0,100%,45%,.8);
        background-image: url(/include/images/icons/menu.php?h=0);
        background-size: 60%;
        background-position: center center;
    }
    #quickSwitch li[data-window=finder] {
        background-color:hsla(30,100%,45%,.8);
    }
    #quickSwitch li[data-window=delineate] {
        background-color:hsla(50,100%,45%,.8);
    }
    #quickSwitch li[data-window=threeD] {
        background-color:hsla(100,100%,45%,.8);
    }
    #quickSwitch li[data-window=average] {
        background-color:hsla(200,100%,45%,.8);
    }
    #quickSwitch li[data-window=transform] {
        background-color:hsla(240,100%,45%,.8);
    }
    #quickSwitch li[data-window=project] {
        background-color:hsla(280,100%,45%,.8);
    }
    
    #menubar {
        padding: 0;
        font-size: 1.5em;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: none;
        overflow:visible;
    }
    
    #menubar > li {
        width: 100%;
        height: 2em;
        padding: 0;
        float: left;
        clear: left;
        margin: 0;
    }
    
    .menucategory > span {
        width: 100%;
        display: block;
        border: 1px solid grey;
        background:-webkit-linear-gradient(top,rgba(250,250,250,1) 0%,rgba(206,206,206,1) 100%);
        background:-moz-linear-gradient(top,rgba(250,250,250,1) 0%,rgba(206,206,206,1) 100%);
    }
 
    #menubar ul {
        height: auto;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
    }
    
    .menucategory > ul {
        top:2em;
    }
    
}

@media screen and (max-width: 640px) {
    #loginBox tbody {
        display: none;
    }
    
    #loginBox label {
        display: none;
    }
    #loginBox label[for=login_keep], #reg_use label, #reg_sex label {
        display: inline;
    }
    
    #gif_demos img {
        width:32%;
        max-width: 150px;
        height:auto;
    }
    
    #delineateInterface, #threeDInterface {
        padding-top: 0;
    }
    
    #delin_toolbar {
        display: none;
    }
    .toolbar_switcher {
        display: block;
        top: 15px;
        left: 15px;
    }

    .toolbar {
        margin-bottom:10px;
        top:10px;
        left:10px;
        right:10px;
    }
    
    .toolbar button, #delin_close, #obj_switcher button {
        max-width: 3em;
        width: 3em;
        height: 3em;
    }
    
    .toolbar button span.wm {
        background-size: 100% !important;
    }
    
    .resources img {
        width: 100%;
        height: auto;
        max-width: 150px;
        min-width: 75px;
    }
    
    #averageInterface #avg_image_box {
        width: 100%;
    }
    #averageInterface #finder {
        width: 100%;
    }
    #destimages,#grid,#continua,#avg_image_box {
        font-size: 1em;
        position:relative;
        width:100%;
        max-width:100%;
        margin-bottom: 10px;
    }
    #destimages li:nth-child(2) {
        display: none;
    }
    #destimages li:nth-child(1) {
        font-size: .75em;
    }
    #destimages li > div {
        width: 24%;
        padding: 0.5%;
    }
    
    #individual_image_box {
        clear: left;
    }

    h1,h2,h3,h4,h5,h6,p, 
    .growl, .modal, .ui-dialog {
        max-width: 100% !important;
    }
    .ui-dialog-titlebar {

    }
    
    .ui-dialog .ui-dialog-titlebar-close {

    }
    
    #project_list {
        font-size: 1.0em;
    }
    
    #project_list td.project_desc,
    #project_list td.project_info,
    #project_list td.project_own {
        display: none;
    }

}

@media screen and (max-height: 900px) {
    #webcam,#webcamvas {
        width:600px;
        height:800px;
    }
}

@media screen and (max-height: 640px) {
    /*#webcam,#webcamvas {
        width:300px;
        height:400px;
    }*/
}