body {
  margin: 0;
  overflow: hidden;
}

#canvas {
  width: 50%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #8e44ad;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #9b59b6;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #8e44ad;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
}

input[type="range"]::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #8e44ad;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  border-color: transparent;
  color: transparent;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #8e44ad;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #9b59b6;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #8e44ad;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
}

input[type="range"]::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #8e44ad;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  border-color: transparent;
  color: transparent;
}

input[type="range"]:focus {
  outline: none;
}