:root {
  --mainColor: #101020;
  --headerColor: #AA3;
  --workspaceBG: #40404A;
  --uiBGColor: #F0E0A0;
  --uiFontColor: #604020;
}

input {
  border: none;
  border-bottom:  1px solid var(--mainColor);
}

.section {
  border-bottom: solid 1px var(--mainColor);
  padding-bottom: 8px;
}

#workspace {
  background: var(--workspaceBG);
  overflow: auto;
  flex:1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.paper {
  background: white;
  position: absolute;
  transform-origin: 50% 50%;
  cursor: crosshair;
}

.paper {
  background-image: linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.paper canvas {
  position: absolute;
}

#user_interface {
  width: 320px;
  max-width: 320px;
  border-left: 2px solid rgba(0, 0, 0, 0.8);
}

#user_interface h1 {
  background: var(--uiBGColor);
  color: var(--uiFontColor);
}

#user_interface .tableContainer {
  background: rgba(0, 0, 0, 0.10);
}

.tableContainer table {
  width: 100%;
  font-size: 0.8em;
}

.tableContainer input {
  width: 55px;
}

.tableContainer p, .tableContainer input {
  padding: 0;
  margin: 2px;
}


.btop {
  border-top: 1px solid var(--mainColor);
}


.sliderBox {
  width: 150px;
}

.opacityDesign {
  width: 100%;
  height: 15px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  background-color: #AAA;
  background-image: linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10pxs, 10px -10px, -10px 0px;
  border: 1px solid var(--mainColor);
}

.opacityGradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(-90deg, #FFF 0%, transparent 100%);
}

.sliderGroup {
  display: flex;
}

.sliderGroup input[type="range"] {
  width: 100%;
  position: absolute;
  transform: translate(-3px, 0);
}

.sliderGroup input[type="number"] {
  width: 50px;
}

/*
  ICON RULES ====================================
*/

.icon {
  cursor: pointer;
}

.icon img {
  width: 30px;
  height: 30px;
}

.icon p, .iconBox > p {
  position: absolute;
  display: none;
  border: 1px solid var(--uiFontColor);
  color: var(--uiFontColor);
  background: var(--uiBGColor);
  z-index: 1;
}

.icon:hover p, .iconBox:hover > p {
  display: block;
}

.iconList .icon {
  display: none;
}

.iconList .icon.selected {
  display: block;
}

.iconBox {
  width: 20px;
  height: 20px;
  margin: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background-size: 20px 20px;
  cursor: pointer;
}

.iconBox > p {
  top: 20px;
  z-index: 10;
}

.iconBox.sight.active {
  background-image: url("../images/icons8-eye-60.png");
}

.iconBox.pencil.active {
  background-image: url("../images/icons8-pencil-64.png");
}

.iconBox.broom {
  background-image: url("../images/icons8-sweep-60.png");
}

.iconBox.trash {
  background-image: url("../images/icons8-delete-64.png");
}


/* COLOR PALETTE STUFFS */
.palette {
  flex-wrap: wrap;
  flex: 1;
  height: 250px;
}

.palette > div {
  width: 20px;
  height: 20px;
  margin: 5px;
  border: 2px solid black;
}

.palette > div.selected {
  border: 2px double red;
}

/*
====================================== WORKSPACE ZOOM
*/
.zoomDetail {
  position: absolute;
  left: 0;
  bottom: 0;
}

.zoomDetail input {
  border: 2px solid var(--uiFontColor);
  background: var(--uiBGColor);
  width: 70px;
  margin: 0;
}

.zoomDetail p {
  background: #888;
  border: 2px solid var(--mainColor);
  border-right: none;
}

#layerTable tr {
  background: rgba(0, 0, 0, 0.3);
}

#layerTable tr.active {
  background: none;
}
