@charset "UTF-8";
/*
  @file Holds styles for RoboPaint global settings only.
*/

#settings {
  height: 100%;
  top: -100%;
  box-sizing: border-box;
  padding: 1em 0;
  position: absolute;
  width: 100%;
  z-index: 11;
  transition: top 0.75s;
  background-color: #efefef;
  overflow: hidden;
}

/* Colorset/custom color management interface */
body.home #colorsets {
  position: relative;
}

body.home #colorsets optgroup {
  border-top: 1px solid black;
}

body.home #colorsets #colorset {
  position: absolute;
  top: 0;
  right: 2em;
  font-size: 0.9em;
}

body.home #colorsets ul {
  list-style: none;
}

body.home #colorsets li label {
  top: -0.5em;
  position: relative;
}

body.home #colorsets span.color {
  display: inline-block;
  width: 45px;
  height: 25px;
  margin-right: 10px;
  border-radius: 10px;
}

body.home #colorsets .left {
  float: left;
  width: 40%;
}

body.home #colorsets .right {
  float: right;
  width: 60%;
}

body.home #colorsets .meta {
  margin-bottom: 0.5em;
}

body.home #colorsets .meta label {
  font-weight: bold;
  font-size: 14px;
  font-style: italic;
}

body.home #colorsets .meta span {
  font-size: 13px;
  color: #444;
}

#settings > h2 {
  padding-left: 1.1em;
  margin: 0;
  margin-bottom: 7px;
  margin-top: -6px;
}

#settings-logo {
  float: left;
  height: 1.2em;
  margin-top: -3px;
  margin-left: 1.8em;
  margin-right: 0.7em;
}

/* Close/reset buttons */
#settings div.buttons {
  position: absolute;
  right: 3.7em;
  top: 0;
}

#settings div.buttons button {
  float: right;
  margin-left: 1em;
}

#settings-done {
  padding: 0.3em 0.8em;
}

#settings-reset {
  line-height: 1.7em;
  text-shadow: none;
  font-weight: bold;
  color: rgb(209, 24, 24);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

/* Settings Window Tabs */
#settings ul, ul.tabs {
  padding: 0;
  margin: 0;
}

ul.tabs li {
  list-style:none;
  display:inline;
}

ul.tabs a {
  padding:5px 10px;
  display:inline-block;
  background:#666;
  color:#fff;
  text-decoration:none;
}

ul.tabs a.active {
  background:#fff;
  color:#000;
}

/* Left Chrome settings style tabs */
#settings > div.settings-content {
  padding:10px;
  height: 100%;
  overflow-y: auto;
  background:#fff;
  box-sizing: border-box;
}

#settings > ul.tabs {
  padding-top: 1em;
  padding-right: 1em;
  float: left;
  height: 100%;
  background-color: white;
}

#settings > ul.tabs > li {
  display: block;
}

#settings > ul.tabs > li a {
  display: block;
  padding-left: 1.5em;
  color: #999;
  font-size: 0.9em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  background-color: white;
  cursor: pointer;
  border-left: 7px solid transparent;
}

#settings > ul.tabs > li a.active {
  color: rgb(70, 78, 90);
  cursor: default;
  border-left-color: rgb(78, 87, 100);
}

/* Tabs within tab content */
#settings .settings-content ul.tabs li a {
  background-color: #aaa;
  color: #eee;
  font-weight: bold;
}

#settings .settings-content ul.tabs li a.active {
  background-color: #eee;
  color: black;
}

#settings .settings-content .settings-content {
  padding: 1em;
  background-color: #eee;
  margin: 0;
}

/* General settings element cleanup and styling */
#settings fieldset,
#settings .settings-content > fieldset:last-child {
  /* Default space between each defaut fieldset, and at the bottom of all
  majors fieldsets for a particular settings tab */
  margin-bottom: 0.5em;
}

#settings legend {
  font-weight: bold;
}

#settings .disabled {
  background-color: #eee;
}

#settings .disabled label {
  color: #888;
}


#settings .settings-content > fieldset {
  /* Space between each major fieldset */
  margin-bottom: 0.5em;
  margin-top: 0.75em;
  border: none;
  border-top: 1px solid #CBCBCB;
  padding-top: 1em;
  position: relative;
}

#settings .settings-content > fieldset > legend {
  font-size: 1.2em;
  padding-left: 0.5em;
  margin-left: -13px;
  padding-right: 1em;
  padding-bottom: 1px;
}

#settings fieldset > div,
#settings .settings-content .settings-content > div {
 margin: 0.75em 0;
}

#settings fieldset > fieldset {
  margin-top: 0.5em;
}

#settings fieldset > fieldset legend {
  font-style: italic;
}

#settings fieldset >:nth-child(2) {
  margin-top: 0;
}

#settings div.httpport label span {
  font-size: 0.9em;
  font-style: italic;
}

/* Custom styling for speed fieldset */
#settings fieldset.speed {
  margin-bottom: 1em;
  padding-top: 0.75em;
  padding-bottom: 0;
}

#settings fieldset.speed label {
  display: block;
  text-align: center;
}

#settings fieldset.speed input {
  display: block;
  width: 90%;
}

#settings fieldset.speed div {
  float: left;
  width: 48%;
  margin: 0;
}

/* Custom styling for filltype fieldset */
#settings fieldset.filltype {
  float: right;
  margin-top: -2.5em;
}

#settings fieldset.filltype div:last-child {
  margin-bottom: 0;
}

#settings aside {
  margin-left: 1.5em;
  margin-top: 0.5em;
  color: #555;
  font-size: smaller;
  margin-bottom: 1em;
}

#settings hr {
  margin-top: 1.5em;
  width: 80%;
}

#settings input[type=range] {
  top: 3px;
  margin-left: 5px;
  width: 50%;
  position: relative;
}

#settings label.rangeval {
  white-space: nowrap;
  padding-left: 8px;
  font-size: 0.9em;
  font-weight: bold;
  padding-bottom: 8px;
  line-height: 30px;
  vertical-align: bottom;
}

#settings #maxpaintdistance {
  width: 35%;
}

/* Connection options buttons specifics */
body.home div.options button.normal {
  font-size: 0.6em;
}

/* Specifics for live fill/stroke preview */
#render #settings-preview-wrapper {
  float: right;
  margin: 1em;
  box-shadow: 3px 3px 14px 0px rgba(0,0,0,0.5);
  width: 200px;
  height: 400px;
}

#settings-preview-wrapper * {
  background-image: url('../images/paper_texture.png');
}

#render .settings-content {
  min-height: 400px;
}

/* Mode browser in settings dialog */
.advanced-modes .modebox {
  padding-bottom: 4em;
}

#settings-modes .advanced-modes .modebox.disabled {
  background-color: transparent;
}
.advanced-modes .modebox.disabled img {
  -webkit-filter: grayscale(1);
}

.advanced-modes .modebox.disabled .icon {
  opacity: 0.5;
}

.advanced-modes .modebox.disabled {
  color: rgb(115, 119, 122) !important;
}

.advanced-modes .modebox > * {
  display: inline-block;
  vertical-align: top;
}

.advanced-modes .modebox h3 {
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 17px;
  margin-top: 2px;
}

.advanced-modes .modebox img.icon {
  width: 64px;
  padding-right: 20px;
}

.advanced-modes .modebox .details {
  width: 45%;
  padding-right: 30px;
}

.advanced-modes .modebox .details label {
  font-weight: 700;
  font-size: 20px;
  color: rgb(48, 57, 66);
  cursor: pointer;
  width: 100%;
  display: block;
  padding-right: 110px; /* Force wrapping room for switch & version */
  box-sizing: border-box;
}

.advanced-modes .modebox span.ver {
  font-weight: normal;
  color: rgb(115, 119, 122);
  font-size: 15px;
  padding-right: 10px;
}

.advanced-modes .modebox .switch {
  font-size: 1.5em;
  position: absolute;
  left: -20px;
  top: -4px;
  transform: translate(-100%, 0);
  z-index: 1;
}

.advanced-modes .modebox .previews {
  width: 200px;
  height: 150px;
  position: relative;
}

@media (max-width: 760px) {
  .advanced-modes .modebox .previews,
  .advanced-modes .modebox .previews img {
    height: 0 !important;
    width: 0 !important;
  }

  .advanced-modes .modebox .details {
    width: 72%;
  }
}

.advanced-modes .modebox .previews img {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 150px;
  background-color: rgb(240, 240, 240);
  border: 1px solid rgb(240, 240, 240);
  object-fit: contain;
}

.advanced-modes .modebox .previews img.multi {
  cursor: e-resize;
}

/* Specialty Elements: Aside display placeholder targets */
#settings .aside-show {
  display: inline-block;
  width: 1em; height: 1em;
  color: white;
  text-align: center;
  margin-left: 0.5em;
  background-color: rgba(0,0,0,.5);
  border-radius: 1em;
  cursor: default;
}

#settings .aside-show.open {
  color: black;
  background-color: white;
  border: 1px solid black;
}

/* Specialty Elements: iOS style checkboxes switches */
input[type="checkbox"] {
	position: absolute;
	opacity: 0;
}

input[type="checkbox"]:disabled + div {
  opacity: 0.8;
}

input[type="checkbox"]:disabled + div {
  background-image: linear-gradient(90deg, #add5ac 50%, transparent 50%);
}

input[type="checkbox"]:disabled:checked + div {
  border: 2px solid #add5ac;
}

input[type="checkbox"] + div {
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  width: 2em;	height: 1em;
  border: 2px solid rgba(0,0,0,.3);
  border-radius: 999px;
  background: white;
  background-image: linear-gradient(90deg, #64bd63 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  background-origin: border-box;
  background-clip: border-box;
  overflow: hidden;
  transition-duration: .2s;
  transition-property: padding, width, background-position, text-indent;
  font-size: 112%; /* change this and see how they adjust! */
}

input[type="checkbox"]:checked + div {
  padding-left: 1em; width: 1em;
  background-position: 0 0;
  border: 2px solid #64bd63;
}

input[type="checkbox"] + div:before {
  content: ' ';
  float: left;
  width: 1.65em; height: 1.65em;
  margin: -.1em;
  border: 1px solid rgba(0,0,0,.35);
  border-radius: inherit;
  background: white;
  background-color: white;
  box-shadow: 0 .1em .1em .1em hsla(0,0%,100%,.8) inset,
              0 0 .5em rgba(0,0,0,.3);
  color: white;
  text-shadow: 0 -1px 1px rgba(0,0,0,.3);
  text-indent: -2.5em;
}

input[type="checkbox"]:active + div:before {
  background-color: #eee;
}

input[type="checkbox"]:focus + div {
  box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset,
              0 .45em 0 .1em rgba(0,0,0,.05) inset,
              0 0 .4em 1px rgba(255,0,0,.5);
}

input[type="checkbox"] + div:before,
input[type="checkbox"] + div:after {
  font: bold 60%/1.9 sans-serif;
  text-transform: uppercase;
}

input[type="checkbox"] + div:after {
  content: ' ';
  float: left;
  text-indent: .5em;
  color: rgba(0,0,0,.45);
  text-shadow: none;
}
