.input-box {
  margin: 0;
  color: white;
  border: 1px solid rgb(95, 95, 95);
  border-radius: 5px;
  padding-top: 2px;
  padding-bottom: 9px;
  font-size: 13px;
}

.input-box legend {
  padding: 0 8px;
  font-size: inherit;
  user-select: none;
}

.input-box input[type=text] {
  --paddingLR: 2px;
  --paddingTB: 1px;
  margin: 0;
  font-size: inherit;
  color: white;
  caret-color: white;
  background-color: inherit;
  border: none;
  padding: var(--paddingTB) var(--paddingLR);
  width: calc(100% - 2 * var(--paddingLR));
  text-align: left;
}

.input-box input[type=text]:focus {
  outline: none;
}

.flex-item {
  flex: 1 1 calc(25% - 10px);
  min-width: 0;
}

.flex-item.wide {
  flex: 1 0 100%;
}

.flex-item.wide legend {
  text-align: center;
}

.flex-item.wide input {
  text-align: center;
}

.color-format-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 95%;
  margin-bottom: 16px;
}

.slider-container {
  width: 100%;
  height: 50px;
}

.hue-slider {
  --height: 8px;
  background: linear-gradient(to right, rgb(255, 0, 0),
      rgb(255, 255, 0),
      rgb(0, 255, 0),
      rgb(0, 255, 255),
      rgb(0, 0, 255),
      rgb(255, 0, 255),
      rgb(255, 0, 0));
  width: 90%;
  height: var(--height);
  border-radius: calc(var(--height)/2);
  position: relative;
}

.name-container {
  --padding: 16px;
  text-align: left;
  padding: var(--padding);
  width: calc(100% - var(--padding)*2);
  color: white;
  font-size: 25px;
}

.color-display {
  width: 30%;
  height: 100%;
  background-color: hsl(var(--hue), 100%, 50%);
}

.display-palette-container {
  width: 100%;
  height: 250px;
  --hue: 0;
}

.palette-container {
  height: 100%;
  width: 70%;
  position: relative;
  user-select: none;
}

.background-hue,
.saturation-gradient,
.value-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  user-select: none;
}

.background-hue {
  background-color: hsl(var(--hue), 100%, 50%);
}

.saturation-gradient {
  background: linear-gradient(to right, rgb(255, 255, 255), rgba(0, 0, 0, 0));
}

.value-gradient {
  background: linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0));
}

.dropper {
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  user-select: none;
  cursor: pointer;
}

.color-picker-container {
  width: 750px;
  background-color: #1f1f1f;
  border: 1px solid rgb(95, 95, 95);
  border-radius: 8px;
}