﻿nav,
.dialog header,
.dialog footer,
.window footer,
.dialog .background,
.node {
   -moz-user-select: -moz-none;
   -khtml-user-select: none;
   -webkit-user-select: none;

   /*
     Introduced in IE 10.
     See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
   */
   -ms-user-select: none;
   user-select: none;
}

html.loading,
html.loading *
{
    cursor: progress !important;
}

.loading .dialog .button {
    visibility: hidden;
}

input[type=password] {
    font-family: courier, sans-serif;
}

.dialog ul {
    list-style-type: inherit;
    padding-left: 1em;
    padding-top: 0;
}

.dialog {
    background-color: #070777;
    bottom: 2em;
    box-shadow: 1em 1em 0 rgba(0, 0, 0, 0.25);
    left: 2em;
    overflow: visible;
    padding: 0;
    position: fixed;
    right: 2em;
    top: 2em;
    z-index: 14;
}

.dialog.small {
    left: 6em;
    max-height: 20em;
    right: 6em;
}

.dialog .background {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 13;
}

.dialog .border {
    background-color: #070777;
    border: 0.2em double white;
    bottom: 0.25em;
    display: block;
    left: 0.165em;
    position: absolute;
    right: 0.25em;
    top: 0.25em;
    width: auto;
    z-index: 14;
}

.dialog fieldset.border {
    right: 0.25em;
    top: 0;
}

.dialog .content {
    bottom: 4em;
    left: 1em;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.2em;
    position: absolute;
    right: 0.5em;
    top: 3.5em;
    z-index: 14;
}

.dialog.noheader .content {
    top: 1em;
}

.dialog > header {
    border-bottom: 1px solid white;
    left: 2.44em;
    padding: 0.5em 0.5em 0.5em 1em;
    position: fixed;
    right: 2.44em;
    top: 3em;
    z-index: 14;
}

.dialog .content header {
    color: #9C9C9C;
    margin-bottom: 0.5em;
}

.dialog footer,
.window footer {
    bottom: 0.6em;
    left: 0.6em;
    padding: 0.6em;
    position: absolute;
    z-index: 14;
}

.dialog .button,
.window .button {
    background-color: #00A800;
    box-shadow: 0.4em 0.4em 0 rgba(0, 0, 0, 0.5);
    color: #E5E5E5;
    cursor: pointer;
    display: inline;
    padding: 0.5em;
    border: 0;
    margin-left: 0;
    margin-right: 0.4em;
    margin-bottom: 0.4em;
    position: relative;
    top: 0;
    /* below copied from .terminal */
    font-family: 'termnine',Monospace;
    font-size: 12pt;
    font-weight: normal;
    letter-spacing: -2px;
    line-height: 16px;
    margin: 0;
    text-align: left;
    text-decoration: none;
}

.dialog .button:hover,
.window .button:hover {
    text-decoration: underline;
    background-color: #1FFC30;
    color: black;
}

.dialog .button:active,
.window .button:active {
    border-left: 0.4em solid #070777;
    border-top: 0.4em solid #070777;
    top: 0.2em;
    left: 0.2em;
    box-shadow: none;
}

.dialog .tab {
    border: 0.1em solid #E5E5E5;
    color: #E5E5E5;
    cursor: pointer;
    display: inline;
    padding: 0.5em;
}

.dialog .attribute {
    padding-bottom: 0.5em;
}

.dialog textarea, 
.dialog input, 
.dialog fieldset {
    background-color: black;
    border: 1px solid #888888;
    color: #D7D7D7;
    margin: 0.5em 0;
    width: 99%;
}

/* Placeholder styling */
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: #A0A0A0;
}
input:-moz-placeholder, textarea:-moz-placeholder {
    color: #A0A0A0;
}
input::-moz-placeholder, textarea::-moz-placeholder {
    color: #A0A0A0;
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #A0A0A0;
}

.dialog input[type="checkbox"] {
    margin-bottom: 1em;
    position: relative;
    width: auto;
}

.dialog fieldset legend {
    color: #E5E5E5;
}

.dialog textarea {
    height: 4em;
}

.dialog .tabcontent {
    display: none;
}

.dialog .tabcontent.active {
    display: inline;
}

.dialog .tab.active {
    background-color: #B6B6B6;
    color: black;
}

.dialog .tab:hover {
    text-decoration: underline;
    background-color: #333333
}

.dialog .tab.active:hover {
    background-color: #B6B6B6;
    text-decoration: underline;
}

.dialog .button.hidden {
    display: none;
}

.dialog textarea.error,
.dialog input.error,
.dialog .tab.error {
    border: 1px solid red;
}

.dialog error.temp {
    color: red;
}

.dialog fieldset {
    background-color: black;
    border: 1px dotted #888888;
    margin: 0;
    padding: 0;
}

.dialog fieldset div {
    padding: .3em;
}

.dialog fieldset legend {
    text-decoration: underline;
}

.dialog fieldset.border legend {
    margin-left: 1%;
    text-decoration: none;
    z-index: 14;
}

nav {
    background-color: #A8A8A8;
    border: 0 none;
    position: fixed;
    text-decoration: none;
    width: 100%;
    z-index: 14;
}

nav a:link, /* unvisited link */
nav a:visited, /* visited link */
nav a:hover, /* mouse over link */
nav a:active, /* selected link */ 
nav a {
    -moz-box-orient: vertical;
    display: inline-block;
    padding: 1px 1em 0;
    text-decoration: none;
    vertical-align: middle;
    color: black;
}

nav a .check {
    visibility: hidden;
}

nav ul.menu li:hover a.toggled .check {
    visibility: visible;
}

nav a:hover {
    background-color: #00A800;
}

nav .cap {
    color: #A80000;
}

nav ul.menu {margin: 0 0 0 200px;}
nav ul.menu a { display:block; text-decoration: none;}
nav ul.menu, 
nav ul.menu li, 
nav ul.menu ul { 
    list-style-type: none;
    list-style: none; 
    margin: 0; 
    padding: 0;
    white-space: nowrap;
}
nav ul.menu { position: relative; z-index: 13; float: left; }
nav ul.menu li { float: left; vertical-align: middle; zoom: 1; list-style: none; }
nav ul.menu li:hover { position: relative; z-index: 14; cursor: default; }

nav ul.menu ul {
    background: none repeat scroll 0 0 #A8A8A8;
    border: 1px solid;
    left: 0;
    padding: 0.25em;
    top: 100%;
    visibility: hidden;
    z-index: 13;
}

nav ul.menu ul li { float: none; }
nav ul.menu ul div,
nav ul.menu ul ul {
    left: 100%;
    top: -9px;
}
nav ul.menu div {
    background: none repeat scroll 0 0 #A8A8A8;
    left: 0;
    margin: 0;
    overflow: visible;
    padding: 0.25em;
    position: absolute;
    top: 100%;
    visibility: hidden;
    z-index: 13;
}

nav ul.menu div.hover,
nav ul.menu div.hover > ul { 
    visibility: visible;
}

nav ul.menu a.divider {
    border-top: 1px solid #E5E5E5;
    display: block;
    height: 0;
    left: 4px;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 4px;
    z-index: 15;
}

.window ul {
    margin-top: 0;
    padding-left: 1em;
    padding-top: 0;
}

.window {
    background-color: #009797;
    bottom: 2em;
    box-shadow: 1em 1em 0 rgba(0, 0, 0, 0.25);
    overflow: visible;
    padding: 0.25em 0.5em 0.5em;
    position: fixed;
    top: 2em;
    z-index: 10;
}

.window .border {
    border: 0.2em double white;
    bottom: 0.25em;
    left: 0.25em;
    position: absolute;
    right: 0.25em;
    top: 0.25em;
    z-index: -1;
}

.window > .content {
    bottom: 4em;
    left: 0;
    padding: 0.2em;
    position: relative;
    right: 0.5em;
    top: 0.5em;
    z-index: 10;
}

.dialog.small input[type=text],
.dialog.small input[type=password] {
    min-width: 10em;
    width: 33%;
}

.dialog.small label {
    display: block;
}

#login #remember-edit {
    display: inline;
    min-width: initial;
    width: auto;
}

#login .remember label {
    display: inline;
    min-width: initial;
    width: auto;
}