* {
  font-family: "Verdana";
  margin: 0;
  padding: 0;
}

h2 {
  margin-bottom: 1.6rem;
  text-align: center;
  color: #333;
}

#box-shadow-generator {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
}

#controls-container,
#preview {
  flex: 1;
  padding: 2rem;
}

/* Controls */
.form-control {
  display: flex;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed #ccc;
}

.form-control label {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #555;
}

.range-input {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.range-input input[type="range"] {
  appearance: none;
  width: 100%;
  height: 24px;
  background: #d3d3d3;
  outline: none;
}

.range-input input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #e9d60a;
  cursor: pointer;
}

.reference-input {
  display: flex;
  align-items: center;
}

.reference-input p {
  margin-left: 4px;
}

.form-control input[type="text"] {
  height: 30px;
  width: 40px;
  margin-left: 1rem;
  text-align: center;
}

/* Comu */
#color-value {
  min-width: 100px;
}

#inset {
  align-self: start;
  height: 20px;
  width: 20px;
}

/* Preview */
#box {
  width: 100%;
  height: 300px;
  background-color: #e9d60a;
}

/* Área de geração */
#generated-rule {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

#generated-rule p {
  margin-bottom: 0.5rem;
}

#rules-area {
  background-color: #d3d3d3;
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid #e9d60a;
  padding: 1rem;
  cursor: pointer;
  transition: 0.4s;
}

#rules-area:hover {
  background-color: #dfdfdf;
}

#copy-instructions {
  margin-top: 1rem;
  font-style: italic;
}

/* Responsivo */
@media (max-width: 425px) {
  #controls-container,
  #preview {
    padding: 1rem 2rem;
  }

  #box-shadow-generator {
    flex-direction: column;
  }

  #box {
    width: 60%;
    height: 200px;
    margin: 0 auto;
  }

  #generated-rule {
    margin-top: 1.5rem;
  }
}
