html,
body,
svg {
  padding: 0;
  margin: 0;
  font-family: Liberation sans, sans-serif;
}

#canvas {
  transform-origin: 0 0;  
  height: 100vh !important;
  width: 100vw !important;
}

.hide-tool {
  display: none !important;
}

#loadingMessage {
  font-size: 1.5em;
  background: #eee linear-gradient(#eeeeee, #cccccc);
  padding: 20px;
  width: 40%;
  line-height: 50px;
  text-align: center;
  border-radius: 10px;
  position: fixed;
  top: 40%;
  left: 30%;
  z-index: 1;
  box-shadow: 0 0 2px #333333;
  transition: 1s;
}

#loadingMessage.hidden {
  display: none;
  opacity: 0;
  z-index: -1;
}

#loadingMessage::after {
  content: "...";
}

#menuItems {
  /* padding: 6px; */
  border-radius: 3px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#menu::-webkit-scrollbar {
  display: none;
}

#menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
  font-size: 16px;
  overflow-y: scroll;
  position: fixed;
  /* margin-bottom: 30px; */
  color: black;
  max-height: 100%;
  transition-duration: 1s;
  cursor: default;
  transform: translate(0, -50%);
  top: 50%;
  left: 40px;
  border-radius: 3px;
}

#menu.closed {
  border-radius: 3px;
  left: 10px;
  top: 10px;
  background-color: rgba(100, 200, 255, 0.7);
  width: 6vw;
  height: 2em;
  transition-duration: 1s;
}

#menu h2 {
  /*Menu title ("Menu")*/
  display: none;
  font-size: 4vh;
  text-align: center;
  letter-spacing: 0.5vw;
  text-shadow: 0px 0px 5px white;
  color: black;
  padding: 0;
  margin: 0;
}

#menu .tools {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#settings {
  margin-bottom: 20px;
}

#menu .tool {
  position: relative;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
  pointer-events: auto;
  white-space: nowrap;
  list-style-position: inside;
  text-decoration: none;
  cursor: pointer;
  /* margin-top: 10px; */
  /* height: 40px; */
  /* line-height: 40px; */
  border-radius: 0px;
  max-width: 60px;
  height: 60px;
  transition-duration: 0.2s;
  overflow: hidden;
  width: max-content;
  /* background: #ffffff;
	border:1px solid #eeeeee; */
  /* box-shadow: inset 0 0 3px #8FA2BC; */
  /* padding: 6px 0 0px 6px; */
  /* margin-bottom: 12px; */
}

#menu .tool.hv-hover:hover {
  max-width: 100%;
  background-color: #424446;
}

#menu .tool:hover {
  max-width: 100%;
}

@media (hover: none), (pointer: coarse) {
  #menu .tool:hover {
    max-width: 40px;
  }

  #menu .tool:focus {
    max-width: 100%;
  }

  #menu {
    pointer-events: auto;
  }

  #menu:focus-within {
    pointer-events: none;
  }
}

#menu .oneTouch:active {
  border-radius: 3px;
  background-color: #eeeeff;
}

/* #menu .tool:active {
	box-shadow: inset 0 0 1px #ddeeff;
	background-color:#eeeeff;
} */

.tools-bg {
  height: 100%;
  background: black;
  position: absolute;
  width: 60px;
}

#menu .tool.curTool {
  /* background-color: #424446; */
  /* ; */
  /* box-shadow: 0 0 5px #0074D9;
  background: linear-gradient(#96E1FF, #36A2FF); */
}

#menu .tool-icon {
  display: inline-block;
  text-align: center;
  width: 24px;
  height: 24px;
  padding: 18px;
  /* margin: 2.5px; */
  font-family: mono, monospace;
  overflow: hidden;
}

#menu img.tool-icon {
  pointer-events: none;
}

#menu .tool-icon > * {
  display: block;
  margin: auto;
}

#menu .tool-name {
  text-align: center;
  font-size: 23px;
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 2.5px;
  display: inline-block;
  vertical-align: text-bottom;
}
/* #menu .tool-name.slider {
	display: inline-block;
    width: 150px;
    height: 30px;
    font-size: .9em;
    line-height: 15px;
    vertical-align: top;
    padding: 6px;
} */

#menu .tool-name.slider {
  display: inline-block;
  width: 150px;
  font-size: 0.9em;
  line-height: 15px;
  vertical-align: top;
  margin-left: 0;
  background: #000000;
  padding: 0 6px;
  height: 60px;
  border-radius: 3px;
  position: relative;
  left: 6px;
}

#menu .tool.hasSecondary .tool-icon {
  margin-top: 0px;
  margin-left: 0px;
}

#menu .tool .tool-icon.secondaryIcon {
  display: none;
}

#menu .tool.hasSecondary .tool-icon.secondaryIcon {
  display: block;
  position: absolute;
  bottom: 0px;
  left: 26px;
  width: 12px;
  height: 12px;
}

input {
  font-size: 16px;
}

#menu .custom-color-pick.tool-icon {
  -webkit-appearance: none;
  padding: 0;
  border: none;
  border-radius: 10px;
  width: 20px;
  height: 20px;
}

#menu .custom-color-pick.tool-icon::-webkit-color-swatch {
  border: none;
  border-radius: 10px;
  padding: 0;
}

#menu .custom-color-pick.tool-icon::-webkit-color-swatch-wrapper {
  border: none;
  border-radius: 10px;
  padding: 0;
}

#menu .custom-color-pick.tool-icon {
  padding: 2px;
  border-radius: 100%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  position: absolute;
  left: 30px;
  top: 30px;
}

#chooseColor {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  color: black;
  display: block;
  margin: 0;
  padding: 0;
}

/* .colorPresets {
	margin-right: 20px;
	vertical-align: top;
	display: inline-block;
} */

.colorPresets {
  margin-left: 70px;
  background: #000000;
  padding: 0 6px;
  height: 60px;
  display: flex;
  justify-items: center;
  align-items: center;
  border-radius: 3px;
}

.colorPresets .colorPresetButton {
  border-radius: 100%;
  width: 16px;
  height: 16px;
  margin: 12px;
  border: 1px solid #fff;
}

.colorPresetButton {
  width: 30px;
  height: 30px;
  border: 1px solid black;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
  padding: 0;
  vertical-align: middle;
}

/* .rangeChooser {
	display: block;
	border: 0;
	width: 100%;
	margin: 0;
	background: transparent;
} */

.rangeChooser {
  display: block;
  border: 0;
  width: 85%;
  margin: 22px auto 0 auto;
  background: transparent;
}

line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

text {
  font-family: "Arial", "Helvetica", sans-serif;
  user-select: none;
  -moz-user-select: none;
}

circle.opcursor {
  pointer-events: none;
  transition: 0.1s;
}

#cursor-me {
  transition: 0s;
}

.custom-modal-mask {
  position: fixed;
  z-index: 998;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
}

.custom-upload-modal {
  position: fixed;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Internet Explorer specific CSS */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  #chooseColor {
    color: transparent;
  }
  label.tool-name[for="chooseColor"] {
    line-height: 10px;
  }
}

@media screen and (max-width: 800px) {
  #menuItems {
    display: flex;
  }

  #menu {
    top: 5px;
    left: 50%;
    transform: translate(-50%, 0);
  }

  #menu .tools {
    display: flex;
  }

  .tool {
    width: 60px;
  }

  .colorPresets {
    position: fixed;
    z-index: 99;
    top: 100px;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .mobile-hide {
    display: none !important;
  }

  .tools-bg {
    height: 60px;
    width: 100%;
  }

  #menu .mobile-setbar {
    width: 60px;
  }

  #menu .mobile-setbar:hover {
    height: 150px;
  }

  li#toolID-Straight\ line {
    display: none !important;
  }

  li#toolID-Rectangle {
    display: none !important;
  }

  li#toolID-Ellipse {
    display: none !important;
  }

  li#toolID-Text {
    display: none !important;
  }
}

@media screen and (min-width: 801px) {
  .mobile-toolbox {
    display: none;
  }
}
