*{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
}
body{
    padding-bottom: 200px;
}

h2{
    margin-bottom: 1.6rem;
    text-align: center;
    color: #333;
}

#box-shadow-generator{
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
}

#control-container,
#preview{
    flex: 1;
    padding: 2rem;
}

.form-control{
    display: flex;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #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"]{
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 10px;
    background-color: #dddddd;
    outline: none;
}

.range-input input[type ="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 21px;
    height: 21px;
    border-radius: 20px;
    background-color: #5b7883;
    cursor: pointer;
}

.reference-input p{
    margin-left: 4px;
}

.form-control input[type="text"]{
    height: 30px;
    width: 30px;
    text-align: center;
    margin-left: 1rem;
}

#color-value{
    min-width: 100px;
}
#inset{
    align-self:start;
    height: 20px;
    width: 20px;
}

#box{
    width: 85%;
    height: 270px;
    background-color: rgb(132, 156, 252);
    border-radius: 10px;
}

#generated-rule{
    text-align: center;
}

#generated-rule p{
    margin-bottom: 0.5rem;
}

#rules-area{
    background-color: #dedddde0;
    max-width: 1000px;
    margin: 0 auto;
    border: 2px solid #83b2dc;
    padding: 1rem;
    transition: 0.4s;
    cursor: pointer;
}

#rules-area:hover{
    background-color: #dfdfdf;
}

#copy-instructions{
    font-style: italic;
    margin-top: 1rem;
}

@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;
    }
  }