﻿overlay {
    background: rgba(0, 0, 0, .5);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 300; /* Need to clean this up, there is no reason for z-index to ever be this high. */
    padding: 0 30px;
}
overlay.active {
    display: block;
}
overlay-window {
    color: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .6);
    background: rgba(40, 40, 40, .9);
    width: 650px;
    border: 2px solid #b1b1b1;
    display: block;
    position: absolute;
    height: 80%;
    max-height: 600px;
    right: 20px;
}
overlay-arrow {
    background: transparent url("../ui-images/overlay_arrow.png");
    width: 17px;
    height: 13px;
    position: absolute;
    top: -12px;
}
overlay-window h2 {
    font-size: 1em;
}
overlay-tabs, overlay-content {
    display: block;
    border: 1px solid #000;
}
overlay-tabs {
    border-radius: 7px 7px 0 0;
    border-bottom: none;
    padding: 5px 5px 0;
    overflow: hidden;
    white-space: nowrap;
}
overlay-tabs tab {
    border-radius: 3px 3px 0 0;
    padding: 0 15px;
    height: 25px;
    line-height: 25px;
    margin-right: 5px;
    color: #bbb;
    display: inline-block;
    float: none;
    position: static;
    border: none;
}
overlay-tabs tab:hover {
     background: rgba(0, 0, 0, .2);
}
overlay-tabs tab.active {
    color: #fff;
    border-color: #000;
    background: rgba(0, 0, 0, .4);
    cursor: auto;
}
overlay-content, overlay-info {
    position: absolute;
    top: 31px;
    bottom: 0;
    right: 0;
    padding: 10px;
    overflow: auto;
}
overlay-content {
    background: rgba(0, 0, 0, .4);
    border-radius: 0 0 7px 7px;
    border-top-width: 0;
    left: 0;
}
overlay-info:not(:empty) + overlay-content {
    padding-right: 200px;
}
overlay-info:not(:empty) {
    z-index: 2;
    border-left: 1px solid rgba(255, 255, 255, .1);
    width: 180px;
}
overlay-info p {
    margin: 0 0 8px;
}
overlay-info ol {
    margin: 0;
    padding: 0 0 0 20px;;
}
overlay-info li {
    margin-bottom: 8px;
}
overlay fieldset, overlay hr {
    border: 1px solid rgba(255, 255, 255, .1);
}
overlay fieldset {
    margin: 10px 5px 10px 5px;
    color: #999;
}
overlay fieldset legend {
    color: #fff;
}
overlay hr {
    border-width: 0 0 1px;
}

.overlay input {
  color: #fff;
}

.overlay input[type=text]:not([default-text]):not([placeholder]),
.overlay input[type=number], 
.overlay select,
.overlay textarea,
.scc-input,
.shortcuts-config filter {
  border: 1px solid #0b0b0b;
  border-top-color: #090909;
  xborder-bottom-color: #212121;
  background-color: #101010;
  border-radius: 3px;
  color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.055),
              0 1px 0 0 rgba(255,255,255,0.02);
  padding: 3px;
  margin: 2px;
}

.overlay input[type=text]:not([default-text]):not([placeholder]):focus,
.overlay input[type=number]:focus {
  border: 1px solid rgba(255,255,255,0.4);
}

.overlay select option{color: rgba(255, 255, 255, .6);}

.overlay button,
.overlay input[handler="cancel-remote-debug"], /* TODO should be changed to button */
.hud .ui-control, /* TODO class should be changed to .overlay ... */
.shortcuts-config header {
  background-color: #292929;
  color: rgba(255, 255, 255, .8);
  background-image: -o-linear-gradient(-90deg,
                                       rgba(255,255,255,0.14) 0%,
                                       rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(0,0,0,0.7);
  border-radius: 4px;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05),
              inset 0 1px 0 0 rgba(255,255,255,0.09);
  -o-transition: background-color 0.2s;
}

.overlay button,
.overlay input[handler="cancel-remote-debug"], /* TODO should be changed to button */
.overlay .setting-composite input[type=button]{
  line-height: 20px;
  padding: 1px 12px;
  height: 24px;
  margin-left: 1px;
  margin-right: 1px;
}

.overlay button:hover,
.overlay input[handler="cancel-remote-debug"]:hover, /* TODO should be changed to button */
.hud .ui-control:hover, /* TODO class should be changed to .overlay ... */
.shortcuts-config header:hover {
  background-color: #323232;
  color: rgba(255, 255, 255, .9);
  -o-transition: background-color 0.2s;
}


.overlay button:active,
.overlay input[handler="cancel-remote-debug"]:active, /* TODO should be changed to button */
.hud .ui-control:not([disabled]):active, /* TODO class should be changed to .overlay ... */
.shortcuts-config header:active {
  box-shadow: 0 1px rgba(0,0,0,0.0),
              inset 0 1px 3px rgba(0, 0, 0, .4);
  background-color: #232323;
}

.overlay select+button {margin-left: 6px;}
.overlay button+button {margin-left: 3px;}

.overlay checkbox label:hover {
  color: #fff;
}
