.containers {
  background: #fff;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.controls label {
  font-weight: 600;
  color: #333333;
  font-size: 16px;
}

.controls input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  color: #333333;
  background-color: #f4f7fa;
  margin-top: 10px;
}

.controls input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #333333;
  border-radius: 50%;
  cursor: pointer;
}

.controls input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #333333;
  border-radius: 50%;
  cursor: pointer;
}

.controls .value {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

.button {
  padding: 14px;
  background: #374B47;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  margin-top: 15px;
  border:2px solid #374B47;
}


.button:hover{
    background-color: transparent;
    color: #374B47;
  
}

.reset-btn {
  margin-top: 15px;
  color: #374B47;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

.result {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

canvas {
  max-width: 320px;
  max-height: 320px;
}

.legend {
  margin-top: 20px;
  font-size: 16px;
}

.legend div {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.legend span {
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .containers {
    grid-template-columns: 1fr;
  }
}
