@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/*下面是解决ios上去除微信点击蓝色边框 */
a:focus,
input:focus,
p:focus,
div:focus {
  -webkit-user-modify: read-write-plaintext-only;
}

.icon {
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

body {
  margin: 0;
  overflow: hidden;
  background-color: white;
  -ms-touch-action: none;
      touch-action: none;
}

#drawing-board {
  display: block;
  cursor: crosshair;
}

.hide {
  display: none;
}

.tools {
  position: fixed;
  left: 0;
  bottom: 8px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-color: white;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
}

.tools > button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: white;
  margin: 0 10px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.tools > button.active, .tools > button:active {
  background-color: #eee;
  color: red;
}

.tools > button > svg {
  width: 30px;
  height: 30px;
}

.color-group {
  position: fixed;
  width: 30px;
  left: 30px;
  top: 50%;
  -webkit-transform: translate(0, -150px);
          transform: translate(0, -150px);
}

.color-group > ul {
  list-style: none;
}

.color-group > ul > li {
  width: 25px;
  height: 25px;
  margin: 10px 0;
  border-radius: 50%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.color-group > ul > li.active {
  -webkit-box-shadow: 0 0 0 5px #ebebeb;
          box-shadow: 0 0 0 5px #ebebeb;
  -webkit-animation: selectAni ease-in 0.3s;
          animation: selectAni ease-in 0.3s;
}

@-webkit-keyframes selectAni {
  0% {
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  33% {
    -webkit-transform: scale(1.4);
            transform: scale(1.4);
  }
  66% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes selectAni {
  0% {
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  33% {
    -webkit-transform: scale(1.4);
            transform: scale(1.4);
  }
  66% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

#range-wrap {
  position: fixed;
  top: 50%;
  right: 30px;
  width: 30px;
  height: 150px;
  margin-top: -75px;
}

#range-wrap > input {
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
  width: 150px;
  height: 20px;
  margin: 0;
  -webkit-transform-origin: 75px 75px;
          transform-origin: 75px 75px;
  border-radius: 15px;
  -webkit-appearance: none;
  outline: none;
  position: relative;
}

#range-wrap > input::after {
  display: block;
  content: "";
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-right: 150px solid #d7d7d7;
  border-left-width: 0;
  position: absolute;
  left: 0;
  top: 5px;
  border-radius: 15px;
  z-index: 0;
}

#range-wrap > input[type="range"]::-webkit-slider-thumb, #range-wrap > input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
}

#range-wrap > input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  margin-top: -1px;
  background: white;
  border-radius: 50%;
  -webkit-box-shadow: 0 0 8px #ebebeb;
          box-shadow: 0 0 8px #ebebeb;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

@media screen and (max-width: 768px) {
  .tools {
    top: 0;
    bottom: auto;
    padding: 5px;
  }
  .tools > button {
    width: 40px;
    height: 40px;
  }
  .tools > button > svg {
    width: 30px;
    height: 30px;
  }
  .color-group {
    left: 0;
    top: auto;
    bottom: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-align: center;
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
  }
  .color-group > ul > li {
    display: inline-block;
    margin: 0 5px;
  }
  #range-wrap {
    left: auto;
    right: 5px;
  }
}
/*# sourceMappingURL=style.css.map */