#tools_left {
  position: absolute;
  border-right: none;
  width: var(--x12);
  top: var(--x8);
  bottom: 0;
  left: 0;
  z-index: 4;
}

.tool_button {
  height: var(--x12);
  width: var(--x12);
  cursor: pointer;
  line-height: 60px;
  text-align: center;
  transform: scale(0.8);
}

.inverted .tool_button svg {
  fill: var(--z13);
}


.tool_button:hover {
  transform: scale(1);
}

.tool_button:hover svg {
  fill: var(--z13);
}

.tool_button.current {
  transform: scale(1.4);
}

.tool_button svg {
  vertical-align: center;
  fill: var(--z5);
}

.tool_button.current svg {
  fill: var(--accent8);
}

.tool_button.current svg {
  fill: var(--accent7);
}


.tool_button.disabled svg {
  background-color: #aaa;
  cursor: not-allowed;
  fill: var(--z3);
  pointer-events: none;
}

#tool_rect svg {
  position: relative;
  top: -1px;
  left:  1px;
}

#tool_ellipse svg {
  position: relative;
  top: 2px;
  left: 1px;
}

/* Shapes submenu: a vertical flyout attached to the side of the Shapes
   button (inside #tools_left). It appears to the right of the button. */
#tool_shapes {
  position: relative;
  transform: scale(1);
}

#tools_left .tool_menu {
  position: absolute;
  display: none;
  left: var(--x12);
  top: 0;
  background: var(--z15);
  border-radius: 0 var(--x2) var(--x2) var(--x2);
  box-shadow: var(--shadow);
  padding: var(--x2);
  z-index: 50;
}

.inverted #tools_left .tool_menu {
  background:var(--z0);
}

#tools_left .tool_menu .tool_button {
  display: block;
  background-color:var(--z15);
  height: var(--x10);
  width: var(--x10);
  transform: scale(1);
  line-height: normal;
  margin: 0 auto;
}

.inverted #tools_left .tool_menu .tool_button {
  background-color:var(--z0);
}


#tools_left .tool_menu .tool_button svg {
  fill: var(--z4);
  vertical-align: middle;
}

#tools_left .tool_menu .tool_button:hover svg {
  fill: var(--z1);
}


.inverted  #tools_left .tool_menu .tool_button:hover svg {
  fill: var(--z15);
}

#tools_left .tool_menu .tool_button.current svg {
  fill: var(--accent8);
}

#tools_left .tool_menu .tool_button.current {
  outline: 2px solid var(--accent8);
  border-radius: var(--x1);
}
