.dg {
  /** Clear list styles */
  /* Auto-place container */
  /* Auto-placed GUI's */
  /* Line items that don't contain folders. */
  /** Folder names */
  /** Hides closed items */
  /** Controller row */
  /** Name-half (left) */
  /** Controller-half (right) */
  /** Controller placement */
  /** Shorter number boxes when slider is present. */
  /** Ensure the entire boolean and function row shows a hand */
  /** allow overflow for color selector */ }
  .dg ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    clear: both; }
  .dg.ac {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    z-index: 0; }
  .dg:not(.ac) .main {
    /** Exclude mains in ac so that we don't hide close button */
    overflow: hidden; }
  .dg.main {
    -webkit-transition: opacity 0.1s linear;
    -o-transition: opacity 0.1s linear;
    -moz-transition: opacity 0.1s linear;
    transition: opacity 0.1s linear; }
    .dg.main.taller-than-window {
      overflow-y: auto; }
      .dg.main.taller-than-window .close-button {
        opacity: 1;
        /* TODO, these are style notes */
        margin-top: -1px;
        border-top: 1px solid #2c2c2c; }
    .dg.main ul.closed .close-button {
      opacity: 1 !important; }
    .dg.main:hover .close-button,
    .dg.main .close-button.drag {
      opacity: 1; }
    .dg.main .close-button {
      /*opacity: 0;*/
      -webkit-transition: opacity 0.1s linear;
      -o-transition: opacity 0.1s linear;
      -moz-transition: opacity 0.1s linear;
      transition: opacity 0.1s linear;
      border: 0;
      line-height: 19px;
      height: 20px;
      /* TODO, these are style notes */
      cursor: pointer;
      text-align: center;
      background-color: #000; }
      .dg.main .close-button.close-top {
        position: relative; }
      .dg.main .close-button.close-bottom {
        position: absolute; }
      .dg.main .close-button:hover {
        background-color: #111; }
  .dg.a {
    float: right;
    margin-right: 15px;
    overflow-y: visible; }
    .dg.a.has-save > ul.close-top {
      margin-top: 0; }
    .dg.a.has-save > ul.close-bottom {
      margin-top: 27px; }
    .dg.a.has-save > ul.closed {
      margin-top: 0; }
    .dg.a .save-row {
      top: 0;
      z-index: 1002; }
      .dg.a .save-row.close-top {
        position: relative; }
      .dg.a .save-row.close-bottom {
        position: fixed; }
  .dg li {
    -webkit-transition: height 0.1s ease-out;
    -o-transition: height 0.1s ease-out;
    -moz-transition: height 0.1s ease-out;
    transition: height 0.1s ease-out;
    -webkit-transition: overflow 0.1s linear;
    -o-transition: overflow 0.1s linear;
    -moz-transition: overflow 0.1s linear;
    transition: overflow 0.1s linear; }
  .dg li:not(.folder) {
    cursor: auto;
    height: 27px;
    line-height: 27px;
    padding: 0 4px 0 5px; }
  .dg li.folder {
    padding: 0;
    border-left: 4px solid transparent; }
  .dg li.title {
    cursor: pointer;
    margin-left: -4px; }
  .dg .closed li:not(.title),
  .dg .closed ul li,
  .dg .closed ul li > * {
    height: 0;
    overflow: hidden;
    border: 0; }
  .dg .cr {
    clear: both;
    padding-left: 3px;
    height: 27px;
    overflow: hidden; }
  .dg .property-name {
    cursor: default;
    float: left;
    clear: left;
    width: 40%;
    overflow: hidden;
    text-overflow: ellipsis; }
  .dg .c {
    float: left;
    width: 60%;
    position: relative; }
  .dg .c input[type=text] {
    border: 0;
    margin-top: 4px;
    padding: 3px;
    width: 100%;
    float: right; }
  .dg .has-slider input[type=text] {
    width: 30%;
    /*display: none;*/
    margin-left: 0; }
  .dg .slider {
    float: left;
    width: 66%;
    margin-left: -5px;
    margin-right: 0;
    height: 19px;
    margin-top: 4px; }
  .dg .slider-fg {
    height: 100%; }
  .dg .c input[type=checkbox] {
    margin-top: 7px; }
  .dg .c select {
    margin-top: 5px; }
  .dg .cr.function,
  .dg .cr.function .property-name,
  .dg .cr.function *,
  .dg .cr.boolean,
  .dg .cr.boolean * {
    cursor: pointer; }
  .dg .cr.color {
    overflow: visible; }
  .dg .selector {
    display: none;
    position: absolute;
    margin-left: -9px;
    margin-top: 23px;
    z-index: 10; }
  .dg .c:hover .selector,
  .dg .selector.drag {
    display: block; }
  .dg li.save-row {
    padding: 0; }
    .dg li.save-row .button {
      display: inline-block;
      padding: 0px 6px; }
  .dg.dialogue {
    background-color: #222;
    width: 460px;
    padding: 15px;
    font-size: 13px;
    line-height: 15px; }

/* TODO Separate style and structure */
#dg-new-constructor {
  padding: 10px;
  color: #222;
  font-family: Monaco, monospace;
  font-size: 10px;
  border: 0;
  resize: none;
  box-shadow: inset 1px 1px 1px #888;
  word-wrap: break-word;
  margin: 12px 0;
  display: block;
  width: 440px;
  overflow-y: scroll;
  height: 100px;
  position: relative; }

#dg-local-explain {
  display: none;
  font-size: 11px;
  line-height: 17px;
  border-radius: 3px;
  background-color: #333;
  padding: 8px;
  margin-top: 10px; }
  #dg-local-explain code {
    font-size: 10px; }

#dat-gui-save-locally {
  display: none; }

/** Main type */
.dg {
  color: #eee;
  font: 11px 'Lucida Grande', sans-serif;
  text-shadow: 0 -1px 0 #111;
  /** Auto place */
  /* Controller row, <li> */
  /** Controllers */ }
  .dg.main {
    /** Scrollbar */ }
    .dg.main::-webkit-scrollbar {
      width: 5px;
      background: #1a1a1a; }
    .dg.main::-webkit-scrollbar-corner {
      height: 0;
      display: none; }
    .dg.main::-webkit-scrollbar-thumb {
      border-radius: 5px;
      background: #676767; }
  .dg li:not(.folder) {
    background: #1a1a1a;
    border-bottom: 1px solid #2c2c2c; }
  .dg li.save-row {
    line-height: 25px;
    background: #dad5cb;
    border: 0; }
    .dg li.save-row select {
      margin-left: 5px;
      width: 108px; }
    .dg li.save-row .button {
      margin-left: 5px;
      margin-top: 1px;
      border-radius: 2px;
      font-size: 9px;
      line-height: 7px;
      padding: 4px 4px 5px 4px;
      background: #c5bdad;
      color: #fff;
      text-shadow: 0 1px 0 #b0a58f;
      box-shadow: 0 -1px 0 #b0a58f;
      cursor: pointer; }
      .dg li.save-row .button.gears {
        background: #c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;
        height: 7px;
        width: 8px; }
      .dg li.save-row .button:hover {
        background-color: #bab19e;
        box-shadow: 0 -1px 0 #b0a58f; }
  .dg li.folder {
    border-bottom: 0; }
  .dg li.title {
    padding-left: 16px;
    background: #000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .dg .closed li.title {
    background-image: url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==); }
  .dg .cr.boolean {
    border-left: 3px solid #806787; }
  .dg .cr.color {
    border-left: 3px solid; }
  .dg .cr.function {
    border-left: 3px solid #e61d5f; }
  .dg .cr.number {
    border-left: 3px solid #2FA1D6; }
    .dg .cr.number input[type=text] {
      color: #2FA1D6; }
  .dg .cr.string {
    border-left: 3px solid #1ed36f; }
    .dg .cr.string input[type=text] {
      color: #1ed36f; }
  .dg .cr.function:hover, .dg .cr.boolean:hover {
    background: #111; }
  .dg .c input[type=text] {
    background: #303030;
    outline: none; }
    .dg .c input[type=text]:hover {
      background: #3c3c3c; }
    .dg .c input[type=text]:focus {
      background: #494949;
      color: #fff; }
  .dg .c .slider {
    background: #303030;
    cursor: ew-resize; }
  .dg .c .slider-fg {
    background: #2FA1D6;
    max-width: 100%; }
  .dg .c .slider:hover {
    background: #3c3c3c; }
    .dg .c .slider:hover .slider-fg {
      background: #44abda; }
.sp-container {
  background-color: white;
  border: 1px solid #CBCBCB;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }

.sp-palette .sp-thumb-el {
  border: 0px solid white;
  margin: 1px 0px 0px 1px !important; }

.sp-cancel {
  display: block;
  text-align: center;
  margin-right: 5px !important;
  color: #333 !important; }

.sp-cancel:hover {
  text-decoration: none !important;
  color: #111 !important; }

.sp-cancel, .sp-choose {
  position: relative;
  float: left; }

.sp-container button, .sp-cancel {
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  background-color: #f5f5f5;
  background-image: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1);
  background-image: -moz-linear-gradient(top, #f5f5f5, #f1f1f1);
  background-image: -ms-linear-gradient(top, #f5f5f5, #f1f1f1);
  background-image: -o-linear-gradient(top, #f5f5f5, #f1f1f1);
  background-image: linear-gradient(top, #f5f5f5, #f1f1f1);
  border: 1px solid #dcdcdc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  cursor: default;
  font-family: inherit;
  font-size: 11px;
  height: 29px;
  line-height: 29px;
  margin: 9px 0px -1px 0;
  min-width: 45px;
  outline: 0;
  padding: 0 8px; }

.sp-container button:hover, .sp-cancel:hover {
  -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  background-color: #f8f8f8;
  background-image: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1);
  background-image: -moz-linear-gradient(top, #f8f8f8, #f1f1f1);
  background-image: -ms-linear-gradient(top, #f8f8f8, #f1f1f1);
  background-image: -o-linear-gradient(top, #f8f8f8, #f1f1f1);
  background-image: linear-gradient(top, #f8f8f8, #f1f1f1);
  border: 1px solid #c6c6c6;
  color: #111; }

.sp-not-palette-only .sp-palette-toggle,
.sp-not-palette-only .sp-palette-toggle:hover {
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid #2f5bb7;
  border-top: 1px solid #2f5bb7; }

.sp-container .sp-choose {
  background-color: #4d90fe;
  background-image: -webkit-linear-gradient(top, #4d90fe, #4787ed);
  background-image: -moz-linear-gradient(top, #4d90fe, #4787ed);
  background-image: -ms-linear-gradient(top, #4d90fe, #4787ed);
  background-image: -o-linear-gradient(top, #4d90fe, #4787ed);
  background-image: linear-gradient(top, #4d90fe, #4787ed);
  border: 1px solid #3079ed;
  color: #fff;
  height: 31px; }

.sp-container .sp-choose:hover {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  background-color: #357ae8;
  background-image: -webkit-linear-gradient(top, #4d90fe, #357ae8);
  background-image: -moz-linear-gradient(top, #4d90fe, #357ae8);
  background-image: -ms-linear-gradient(top, #4d90fe, #357ae8);
  background-image: -o-linear-gradient(top, #4d90fe, #357ae8);
  background-image: linear-gradient(top, #4d90fe, #357ae8);
  border: 1px solid #2f5bb7;
  color: #fff !important;
  border-bottom-color: #2f5bb7; }

.cr.string.color input {
  cursor: pointer !important; }
/** Main type */
.dg {
  text-shadow: none;
  font-family: 'Lucida Grande', sans-serif;
  font-size: 11px;
  color: #000000;
  /* Controller row, <li> */
  /** Controllers */ }
  .dg .close-button {
    display: none; }
  .dg li:not(.folder) {
    background: white;
    transition: height 0.1s ease-out;
    height: 27px;
    line-height: 26px;
    overflow: hidden;
    padding: 0 0px 0 5px;
    border-bottom: 1px solid #ddd; }
  .dg li.folder:first-child {
    border-top: 1px solid #ddd; }
  .dg li.folder {
    border-left: 0px; }
  .dg li.title {
    padding-left: 20px;
    font-weight: bold;
    margin-left: 0px;
    text-transform: capitalize;
    background: #F1F1F1 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAECAYAAABCxiV9AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAnSURBVHjaYtTQ0PjPgAMwgghsCm7cuMHICOMgKwBJYBiDbgJAgAEAaXIK8tZDkjMAAAAASUVORK5CYII=) 8px 10px no-repeat;
    border: 1px solid #ddd;
    border-top: 0px; }
  .dg .closed li.title {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHCAMAAAAYuxziAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAGUExURSgoKAAAANqv3YAAAAACdFJOU/8A5bcwSgAAAB1JREFUeNpiYGBkZGRgYAATDGCCAcYCiQFlAQIMAADrAA1gGCQCAAAAAElFTkSuQmCC); }
  .dg .cr.color input {
    margin-left: 0px;
    height: 24px;
    width: 60%;
    margin-top: 1px; }
  .dg .cr.number input[type=text],
  .dg .cr.number input[type=number] {
    color: #000000;
    line-height: 26px; }
  .dg .cr.number input[type=number] {
    width: 100%; }
  .dg .cr.number input[type=text] {
    width: 33%; }
  .dg .cr.string input[type=text] {
    color: #000000; }
  .dg .cr.function:hover, .dg .cr.boolean:hover {
    background: white; }
  .dg .c {
    font-size: 13px; }
    .dg .c input, .dg .c select {
      box-sizing: border-box;
      height: 24px; }
    .dg .c input[type=checkbox] {
      margin-top: 1px; }
    .dg .c input[type=text] {
      margin-top: 1px;
      margin-right: 0px;
      background: #FFFFFF;
      border: 1px solid #A9A9A9; }
      .dg .c input[type=text]:hover {
        background: white; }
      .dg .c input[type=text]:focus {
        background: white;
        color: #000000; }
    .dg .c .slider {
      background: #FFFFFF;
      height: 24px;
      margin-top: 1px;
      margin-left: 0px; }
    .dg .c select {
      margin-top: 0px;
      width: 100%;
      margin-left: 0px; }
    .dg .c .slider-fg {
      background: #2196F3;
      margin-left: 0px; }
    .dg .c .slider:hover {
      background: white; }
      .dg .c .slider:hover .slider-fg {
        background: #39a1f4; }

.choices {
  position: absolute;
  width: 100%; }

.choices[data-type*=select-one]:after {
  border-width: 6px;
  right: 8.5px;
  border-left-width: 3px;
  border-right-width: 3px; }

.choices[data-type*=select-one].is-open:after {
  border-color: #333 transparent transparent transparent;
  margin-top: -2.5px; }

.choices__inner {
  min-height: 20px;
  padding: 0;
  padding-left: 3px;
  background-color: white;
  font-size: 13px;
  border: 1px solid darkgray;
  border-radius: 0 !important; }

.choices[data-type*=select-one] .choices__inner {
  padding-bottom: 0; }

.choices__list--single {
  padding: 0; }

.color-palette-controller {
  left: calc(40% + 5px);
  width: calc(60% - 5px);
  position: absolute;
  margin-top: 1px;
  line-height: 22px !important; }

.dg .folder {
  position: relative; }

.dg .color-list-controller input {
  display: none; }

.dg .color-list-el {
  margin-top: 4px;
  position: relative; }

.dg .color-list-color-el {
  display: inline-block;
  margin-left: 1px;
  margin-bottom: 1px; }

.dg li.color-list-color-el:not(.folder) {
  width: 14px;
  border: 1px solid transparent;
  height: 23px !important;
  cursor: default; }
