:root {
  --article-background-color: #e0e0e0; /*#F5F5F5;*/
  --background-color: #f4f4f4;
  --slider-track-color: #f9f9f9;
}
/*
  grey tones dark to light:
  #adadad #bababa #c6c6c6 #d3d3d3 #e0e0e0 #ededed #f9f9f9
  white: 
*/

body { font-family: "Manrope", sans-serif; }

label {
  text-align: center;
}

canvas {
display: block;
width: 100%;
aspect-ratio: 1.0 / 1.0;
}

#canvas0 {aspect-ratio: 2.0 / 1.0;}
#canvas1 {aspect-ratio: 2.0 / 1.0;}
#canvas2 {aspect-ratio: 2.0 / 1.0;}
#canvas3 {aspect-ratio: 2.0 / 1.0;}
#canvas4 {aspect-ratio: 1.2 / 1.0;}

/* .controls {
  display: flex;
  justify-content: center;
} */

.controls input[type="range"] {
display: block;
width: 100%;
height: 60px;
padding: 4px 0;
margin: 10px 0;
overflow: visible;
-webkit-appearance: none;
background: var(--background-color);
border-radius: 3px;
touch-action: pan-y; /* helps on touch devices */
}


/* input[type=range]::-webkit-slider-thumb {
  width: 36px;
  height: 26px;
  background-color: #007aff;
  border-radius: 50%;
  border: 12px solid white;
  cursor: pointer;
  box-shadow: 0 0 0 20px rgba(0,0,0,0);
} */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 44px;  /* Larger for easier touch - Apple recommends min 44x44px */
    height: 44px;
    background-color: #ff6b6b; /* Change this to your desired knob color */
    border-radius: 50%;
    border: 3px solid white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* visible shadow for depth */
    position: relative;
    margin-top: -9px; /* Center the thumb on the track */
}

input[type=range]::-webkit-slider-runnable-track {
  height: 26px;
  background: var(--article-background-color);
  border-radius: 20px;
}

.code-display {
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
}

pre {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  text-align: left;
  overflow-x: auto;
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}