* {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
  }

  #controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  #controls > div,
  #controls > button {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #controls label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1;
    margin-right: 6px;
  }

  #controls input[type="range"] {
    width: 100px;
  }
  
  input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
  }

  input[type="checkbox"]:checked::after {
    top: 4px;
    left: 6px;
    width: 4px;
    height: 8px;
  }

  #controls button {
    height: 36px;
    padding: 0 16px;
    display: flex;
    align-items: center;
  }

  button {
    background: #2f2f2f;
    border: 0.2px solid #4f4f4f;
    border-radius: 6px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    transition: all 0.8s ease;
  } 

  button:hover {
    background: #424141;
  }

  #gradientBox {
    width: 100%;
    height: 70vh;
    background: #1e1e1e;
    border: 2px solid #333;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    border-radius: 12px;
    user-select: none;
  }

  .circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
    animation: pop 0.3s ease-out forwards;
    opacity: 0.8;
  }

  @keyframes pop {
    to {
      transform: translate(-50%, -50%) scale(1);
    }
  }

  #noiseCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 12px;
    mix-blend-mode: overlay;
    z-index: 5;
  }

  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #181818;
    border-radius: 10px;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 10px;
    outline: none;
    transition: all 0.8s ease;
  }

  input[type="range"]::-webkit-slider-runnable-track {
    background: #181818;
    border: 0.2px solid #4f4f4f;
    border-radius: 5px;  
    width: 100%;
    height: 20px;
    cursor: pointer; 
  }

  input[type="range"]::-moz-range-track {
      background: #181818;
    border: 0.2px solid #4f4f4f;
    border-radius: 5px;  
    width: 100%;
    height: 20px;
    cursor: pointer; 
  }

  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #373737;
    border: 0.2px solid #4d4c4c;
    border-radius: 5px;
    width: 26px;
    height: 26px;
    margin-top: -4px;
    cursor: pointer;
  }

  input[type="range"]::-moz-range-thumb {
    background: #373737;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    margin-top: -4px;
    cursor: pointer;
  }

  input[type="checkbox"] {
-webkit-appearance: none; 
-moz-appearance: none; 
appearance: none;
width: 20px;
height: 20px;
border-radius: 5px;
border: 0.2px solid #4d4c4c;
background: #181818;
cursor: pointer;
position: relative;
}

input[type="checkbox"]:checked {
background: #373737;
}

input[type="checkbox"]:checked::after {
content: "";
position: absolute;
top: 3px;
left: 7px;
width: 4px;
height: 9px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
  h1{
  text-align: center;
  font-size:4rem;
  line-height: 0.2rem;
  color: white;
  }

  #header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .colorPicker {
width: 30px;
height: 30px;
border: none;
border-radius: 4px;
padding: 0;
cursor: pointer;
background-color: rgba(53, 53, 53, 0);
-webkit-appearance: none;
appearance: none;
}

