html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "p22-folk-art-stitch", sans-serif;
font-weight: 400;
font-style: normal;
}

h3{
  font-size: 19pt;
  background-color: white;
  padding: 10px;
}

#p5-background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none; 
}

#container {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
}

#leftPanel {
  margin-left: 0;
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

#middlePanel {
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.panel-inner {
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
  border-radius: 8px; 
  margin-left: 10px;
}

#rightPanel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

#wheel {
  image-rendering: pixelated;
}


#preview {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  max-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  padding: 12px;
}

.revolving {
  width: 100%;
  position: relative;
}

.circle {
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background-color: #d9d9d9;
  position: relative;  
  overflow: visible;
  margin-top: 10px;
  transition: transform 0.1s linear;
  margin-top: 40px;
}

.slider-container {
  width: 100%;
  margin: 10px 0;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  outline: none;
  color: black;
}

.rotating {
  position: absolute;
  width: 100%;
  height: 100%;
}

  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }


button{
  align-items: center;
 background-color: #FFFFFF;
 border: 1px solid rgba(0, 0, 0, 0.1);
 box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
 box-sizing: border-box;
 color: black;
 cursor: pointer;
 display: inline-flex;
 font-family: "p22-folk-art-square", sans-serif;
font-weight: 400;
font-style: normal;
 justify-content: center;
 line-height: 1;
 min-height: 3rem;
 padding: calc(.875rem - 1px) calc(1.5rem - 1px);
 text-decoration: none;
 transition: all 250ms;
 user-select: none;
 -webkit-user-select: none;
 touch-action: manipulation;
 vertical-align: baseline;
 width: auto;
 margin-top: 10px;
}

input{
  background-color: white;
 align-items: center;
 border: 1px solid rgba(0, 0, 0, 0.1);
 box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
 box-sizing: border-box;
 color: black;
 cursor: pointer;
 display: inline-flex;
 font-family: "p22-folk-art-square", sans-serif;
font-weight: 400;
font-style: normal;
 justify-content: center;
 line-height: 1;
 min-height: 2rem;
 padding: calc(.875rem - 1px) calc(1.5rem - 1px);
 text-decoration: none;
 transition: all 250ms;
 user-select: none;
 -webkit-user-select: none;
 touch-action: manipulation;
 vertical-align: baseline;
 width: auto;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: black;
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
  border-radius: 5px;
  padding: 0;
  min-height: 2px;
}

input[type="range"]:hover {
  opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  cursor: pointer;
  border-radius: 50%;
}

button:hover, button:focus {
 border-color: rgba(0, 0, 0, 0.15);
 box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
 color: rgba(0, 0, 0, 0.65);
}

input:hover, input:focus {
 border-color: rgba(0, 0, 0, 0.15);
 box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
 color: rgba(0, 0, 0, 0.65);
}

.param-value {
  display: inline-block;
  width: 30px;
  text-align: right;
}