@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

#mandelbulb-container {
  display: flex;
  width: 725px;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: stretch;

  font-family: "Montserrat", sans-serif;

  flex-wrap: wrap;

  margin: 10px 0;
}

legend {
  font-weight: 700;
  padding: 0 5px;
}

.panel {
  display: flex;
  flex: 1 0 200px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;

  border: 2px dotted var(--gray-200);
  border-radius: 10px;

  margin: 5px;
}

.checkbox-box {
  width: 200px;
  background-color: var(--gray-100);
  margin: 10px 0;
  height: 30px;
  align-items: center;
  justify-content: left;
  display: flex;
  border-radius: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.checkbox-box span {
  flex: 1 0;
  font-size: 0.8rem;
  margin-left: 5px;
  font-weight: 400;
  flex-wrap: nowrap;
}

.checkbox-box input {
  appearance: none;
  -webkit-appearance: none;

  flex: 0 1 55px;

  width: 55px;
  height: 30px;

  background-color: var(--gray-100);

  vertical-align: middle;

  border: none;

  outline: none;
  cursor: pointer;
  
  border-right: 5px solid var(--body-background);
}

.checkbox-box input:checked {
  background-color: var(--body-font-color);
  /* border-left: 1px solid var(--body-font-color); */
}

.color-picker {
  width: 100%;

  cursor: pointer;
  background-color: 0;

  padding: 0;
  margin: 0;

  border-radius: 10px;
  outline: none;
  border: none;

  -webkit-appearance: none;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-picker::-webkit-color-swatch {
  border: none;
}

.vec3-container {
  display: flex;
  flex-direction: column;
  width: 200px;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 10px;
}

.vec3-container > label {
  font-weight: 400;
}

.vec3-component-container {
  display: flex;
  flex-direction: column;
  width: 200px;
  justify-content: space-between;
  align-items: stretch;
}

.vec3-component {
  flex: 1 1;

  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  /* align-items: stretch; */
  margin: 5px 0;
  border-radius: 5px;
  border: none;
  background-color: var(--gray-100);
  /* overflow: hidden; */
}

.vec3-component span {
  /* flex: 0 1; */
  flex: 0 1 50px;
  width: 50px;
  /* margin: 0 2px 0 5px; */
  text-align: center;
  font-weight: 500;
  font-size: 1.15rem;
}

.vec3-component input {
  /* flex: 0 1; */
  width: 150px;
  /* margin: 0 5px; */

  height: 30px;

  background-color: transparent;
  border: none;
  border-left: 5px solid var(--body-background);

  padding-left: 5px;

  /* width: 20px; */
  /* width: 100%; */
}

.vec3-component input:focus {
  outline: none;
}

.vec3-component input::-webkit-outer-spin-button,
.vec3-component input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.vec3-component input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

.slider-container {
  display: flex;
  flex-direction: column;
  width: 200px;
  overflow: hidden;
}

.slider-box-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  overflow: hidden;

  background-color: var(--gray-100);
  border-radius: 5px;
  align-items: stretch;
  justify-content: left;
  margin: 0;
}

.slider-box-container input[type="range"] {
  flex: 1 0 105px;
  margin: 0;
  border: none;
  background-color: transparent;

  -webkit-appearance: none;

  border-left: 5px solid var(--body-background);
  height: 30px;
}

.slider-box-container input[type="range"]:focus {
  outline: none;
}

.slider-box-container input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  cursor: pointer;
  background: transparent;
}

.slider-box-container input[type="range"]::-webkit-slider-thumb {
  height: 30px;
  width: 15px;

  background: var(--body-font-color);
  cursor: pointer;

  border: none;
  -webkit-appearance: none;
}

.slider-box-container input[type="text"] {
  flex: 0 1 50px;
  width: 100%;
  border: none;
  background-color: transparent;
  text-align: center;
  margin: 0;
  padding: 0;
}

.slider-box-container input[type="text"]:focus {
  outline: none;
}

.slider-box-container input[type="text"]::-webkit-outer-spin-button,
.slider-box-container input[type="text"]::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.slider-box-container input[type="text"] {
  -moz-appearance: textfield; /* Firefox */
}
