* {
  box-sizing: border-box;
}

@font-face {
  src: url(https://dl.dropbox.com/s/1479f8x52y3z5u4/rainyhearts.ttf);
  font-family: hearts;
}

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;
  flex-direction: column;
}

body,
button {
  font-family: hearts, serif;
}

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;
  flex-grow: 0;
  flex-shrink: 0;
}

.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 input {
  margin: 2px;
  flex-shrink: 1;
  padding: 0px;
  border: 1px solid #000;
  width: 20px;
  height: 20px;
  margin-left: 23px;
  border-bottom: 2px solid #000;
}

.swatch.active {
  height: 21px;
  border: 2px solid #fff;
}

#custom-color {
  display: none
}

#custom-color.show {
  display: inline-block
}

/*
.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.active:after {
  background: #f00;
}

.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: 5px;
}

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

  &:hover {
    background-color: #0f0
  }
}

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

#menu {
  background-color: #B793FF;
}

#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;
}

#session-display {
  display: flex;
  flex-direction: column;
  overflow: auto;
}

#session-display button {
  background-color: rgba(0, 0, 0, 0.2);
  margin: 1px 0;
  padding: 3px;
  border: 0;
  color: #fff;

  &:hover {
    background-color: rgba(0, 0, 0, 0.4);
  }
}

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

  50% {
    opacity: 100%;
  }

  80%,
  100% {
    opacity: 0%;
  }
}

.mini {
  main {
    border-width: 1px;
    border-radius: 0;
  }

  .left-block {
    width: 150px;
  }

  .colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2px 5px;
  }

  .colors button {
    margin: 1px;
    flex-shrink: 0;
  }

  .colors button,
  #custom-color {
    height: 16px;
  }

  .brushes,
  .buttons {
    display: flex;
    padding: 1px;
    justify-content: center;
    align-items: center;
    align-content: center;
  }

  .brushes button {
    flex-shrink: 1;
    height: 10px;
    margin: 0;
    padding: 2px;
  }

  .buttons {
    height: auto;
    flex-wrap: wrap;
  }

  .buttons button {
    display: inline-block;
    align-content: center;
    font-size: 10px;
    flex-shrink: 1;
    flex-grow: 1;
    padding: 0;
    margin: 1px;
    width: 40%;
    height: 18px;
  }

  .left-block {
    margin-top: 2px;
    font-size: 12px;
  }

  #saved {
    font-size: 14pt;
    padding: 1px 5px;
    border-radius: 5px;
  }
}