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

body {
  margin: 0;
  background: #111;
  color: white;
  font-family: sans-serif;
  text-align: center;
}

/* CENTER EVERYTHING */
#turntable {
  margin: 40px auto;
  width: 450px;
  height: 450px;
  position: relative;
}

/* PLATTER */
#platter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(#222, #000);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* LABEL IN THE MIDDLE OF THE RECORD */
#record-label {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(#c22, #700);
  z-index: 3;
}

/* YOUR CANVAS GOES ON TOP OF THE RECORD */
#myContainer canvas {
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

/* TONEARM */
#tonearm {
  position: absolute;
  width: 180px;
  height: 12px;
  background: #d9d9d9;
  right: -20px;
  top: 140px;
  transform-origin: 15px 6px;  /* pivot point */
  transform: rotate(35deg);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* Pivot post */
#tonearm::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: #999;
  border-radius: 50%;
  left: -12px;
  top: -6px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

/* Headshell at end */
#tonearm::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 6px;
  background: #e5e5e5;
  right: -10px;
  top: 3px;
  border-radius: 4px;
}



/* CONTROLS BELOW */
#controls {
  margin-top: 40px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#myContainer.spinning canvas {
  animation: spin linear infinite;
}
