@import url("https://fonts.googleapis.com/css?family=Black+And+White+Picture");

.speakerCloseMed {
  position: absolute;
  width: 50px;
  height: 50px;
  background: url(../imgs/sclose.png) center center no-repeat;
  top: 20px;
  right: 20px;
  z-index: 5000000;
  cursor: pointer;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

body {
  background-color: #695aa6;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
}

.container
{
  float: left;
  width: 360px;
  height: auto;
  margin-left: calc(50% - 180px);
  margin-left: -webkit-calc(50% - 180px);
  margin-left: -moz-calc(50% - 180px);
  margin-top: 30px;
}

.bg-img {
  float: left;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  filter: blur(100px);
  opacity: 0.5;
  transform: scale(1.2, 1.2);
}

.button-clear
{
  background-color: #fff;
  color:#695aa6
}

#canvas {
float: left;
  width: 360px;
  height: 360px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: white;
  margin-bottom: 20px;
}

.layer-bar {
float: left;
  top: calc(50% - 250px);
  right: calc(50% + 350px);
  height: 500px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-right: 40px;
}

.tools-bar {
  float: left;
  height: 40px;
  width: 80px;
  margin-bottom: 20px;
  margin-left: 20px;
}
.tools-bar .button {
  width: 66px;
  height: 40px;
  float: left;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #fff;
  background-image: url(../imgs/erase.png);
}
.tools-bar .button.button-clear:before, .tools-bar .button.button-clear:after {
  content: "";
  background-color: rgba(0, 0, 0, 0.2);
}
.tools-bar .button.button-clear:before {
  width: 10px;
  height: 12px;
  left: 14px;
  top: 16px;
}
.tools-bar .button.button-clear:after {
  width: 14px;
  height: 5px;
  left: 12px;
  top: 10px;
}
.tools-bar .button.button-clear:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.thickness-bar {
float: left;
  width: 360px;
  text-align: center;
  margin-bottom: 14px;
}
.thickness-bar .thickness {
  width: 40px;
  height: 40px;
  position: relative;
  margin: 0 10px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}
.thickness-bar .thickness:hover {
  border-color: rgba(0, 0, 0, 0.2);
}
.thickness-bar .thickness:after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.2s;
}
.thickness-bar .thickness.active {
  border-color: #fff;
}
.thickness-bar .thickness.active:after {
  background-color: #fff;
}
.thickness-bar .thickness:nth-child(1):after {
  width: 5px;
  height: 5px;
}
.thickness-bar .thickness:nth-child(2):after {
  width: 10px;
  height: 10px;
}
.thickness-bar .thickness:nth-child(3):after {
  width: 15px;
  height: 15px;
}
.thickness-bar .thickness:nth-child(4):after {
  width: 20px;
  height: 20px;
}
.thickness-bar .thickness:nth-child(5):after {
  width: 25px;
  height: 25px;
}

.color-bar {
  float: left;
  text-align: center;
  width: 360px;
  margin-bottom: 50px;
}
.color-bar .color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-block;
  margin: 0 20px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.1, 2, 0.5, 1);
}
.color-bar .color:hover {
  transform: scale(1.2, 1.2);
}
.color-bar .color.active {
  transform: scale(1.3, 1.3);
  cursor: default;
}
.color-bar .color:nth-child(1) {
  background-color: #bd56e8;
  box-shadow: 0 7px 25px rgba(186, 93, 226, 0.6);
}
.color-bar .color:nth-child(2) {
  background-color: #6f80e7;
  box-shadow: 0 7px 25px rgba(123, 143, 242, 0.6);
}
.color-bar .color:nth-child(3) {
  background-color: #3498db;
  box-shadow: 0 7px 25px rgba(70, 167, 231, 0.6);
}
.color-bar .color:nth-child(4) {
  background-color: #2ecc71;
  box-shadow: 0 7px 25px rgba(46, 204, 113, 0.6);
}
.color-bar .color:nth-child(5) {
  background-color: #f6bd03;
  box-shadow: 0 7px 25px rgba(241, 196, 15, 0.6);
}
.color-bar .color:nth-child(6) {
  background-color: #fe7a15;
  box-shadow: 0 7px 25px rgba(230, 126, 34, 0.6);
}
.color-bar .color:nth-child(7) {
  background-color: #e73c61;
  box-shadow: 0 7px 25px rgba(231, 76, 60, 0.6);
}