
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

body {
  background-image: url(https://i.postimg.cc/K8VYB2HP/tumblr-f3ef19648ee01d0e713954bb13d7ea68-2f7f93a1-100.webp);
  background-size: 20%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  width: calc(100% - 50px);
  height: calc(100% - 50px);
  background-color: #E2D4FF;
  border: 35px groove #B793FF;
  border-radius: 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
}

.left-block {
  width: 160px;
  border-right: 1px solid #E2D4FF;
  flex-grow: 0;
}

.right-block {
  flex-grow: 1;
  width: 900px;
  box-shadow: inset 2px 0px 3px rgba(0,0,0,0.5);
}

.colors {
  background-color: #E2D4FF;
  text-align: center;
  padding-bottom: 5px;
  padding-top: 10px;
}

.colors button {
  display: inline-block;
  border: 1px solid #E2D4FF;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  margin-bottom: 5px;
}

/*
.colors button:nth-of-type(1) {
  background-color: #0000ff;
}

.colors button:nth-of-type(2) {
  background-color: #009fff;
}

.colors button:nth-of-type(3) {
  background-color: #0fffff;
}

.colors button:nth-of-type(4) {
  background-color: #bfffff;
}

.colors button:nth-of-type(5) {
  background-color: #000000;
}

.colors button:nth-of-type(6) {
  background-color: #333333;
}

.colors button:nth-of-type(7) {
  background-color: #666666;
}

.colors button:nth-of-type(8) {
  background-color: #999999;
}

.colors button:nth-of-type(9) {
  background-color: #ffcc66;
}

.colors button:nth-of-type(10) {
  background-color: #ffcc00;
}

.colors button:nth-of-type(11) {
  background-color: #ffff00;
}

.colors button:nth-of-type(12) {
  background-color: #ffff99;
}

.colors button:nth-of-type(13) {
  background-color: #003300;
}

.colors button:nth-of-type(14) {
  background-color: #555000;
}

.colors button:nth-of-type(15) {
  background-color: #00ff00;
}

.colors button:nth-of-type(16) {
  background-color: #99ff99;
}

.colors button:nth-of-type(17) {
  background-color: #f00000;
}

.colors button:nth-of-type(18) {
  background-color: #ff6600;
}

.colors button:nth-of-type(19) {
  background-color: #ff9933;
}

.colors button:nth-of-type(20) {
  background-color: #f5deb3;
}

.colors button:nth-of-type(21) {
  background-color: #330000;
}

.colors button:nth-of-type(22) {
  background-color: #663300;
}

.colors button:nth-of-type(23) {
  background-color: #cc6600;
}

.colors button:nth-of-type(24) {
  background-color: #deb887;
}

.colors button:nth-of-type(25) {
  background-color: #aa0fff;
}

.colors button:nth-of-type(26) {
  background-color: #cc66cc;
}

.colors button:nth-of-type(27) {
  background-color: #ff66ff;
}

.colors button:nth-of-type(28) {
  background-color: #ff99ff;
}

.colors button:nth-of-type(29) {
  background-color: #e8c4e8;
}

.colors button:nth-of-type(30) {
  background-color: #ffffff;
}
*/
.brushes {
  /* background-color: purple; */
  padding-top: 5px
}

.brushes button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background-color: #E2D4FF;
  margin-bottom: 5px;
  padding: 5px;
  height: 30px;
  outline: none;
  position: relative;
  cursor: pointer;
}

.brushes button:after {
  height: 1px;
  display: block;
  background: #533D80;
  content: '';
}

.brushes button:nth-of-type(1):after {
  height: 1px;
}

.brushes button:nth-of-type(2):after {
  height: 2px;
}

.brushes button:nth-of-type(3):after {
  height: 4px;
}

.brushes button:nth-of-type(4):after {
  height: 6px;
}

.brushes button:nth-of-type(5):after {
  height: 8px;
}

.buttons {
  height: 80px;
  padding-top: 10px;
}

.buttons button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background-color: #E2D4FF;
  margin-bottom: 5px;
  padding: 5px;
  height: 30px;
  outline: none;
  position: relative;
  cursor: pointer;
  font-size: 16px;
}

#paint-canvas {
  width: 100%;
  cursor:crosshair;
}

#saved {
  position: fixed;
  top: 80px;
  right: 80px;
  font-size: 3em;
  padding: 1px 15px;
  border-radius: 10px;
  background-color: rgba(80, 0, 150, 0.5);
  color: #fff;
  display: none;
  animation: none;
  opacity: 100%;
}
#saved.play {
  display: block;
  animation: fade-out 2s 1;
}

@keyframes fade-out {
  0% {
    opacity: 100%;
  }
  
  50% {
    opacity: 100%;
  }
  
  80%,
  100% {
    opacity: 0%;
  }
}