body {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  background: white;
  background: url(./images/etch-a-sketch.png);
  background-size: cover;
}

canvas {
  border: 30px solid #3d348b;
  border-radius: 10px;
  /* Set the width and height to half the actual size so it doesn't look pixelated */
  width: 800px;
  height: 500px;
  background: white;
}

.shake {
  margin-top: 10px;
  font-size: larger;
  background-color: lightgrey;
  border-radius: 5%;
  border: none;
  padding: 12px 14px;
  font-family: 'Chilanka', cursive;
  outline: none;
}

.shake:hover {
  background-color: #7678ed;
  border: none;
}

canvas.shake {
  /* run it over 0.5 second for once in linear */
  animation: shake 0.5s linear 1;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}