#main {
  text-align: left;
  justify-items: auto;
}

.sell {
  padding: 3.75rem 11.75rem 18.75rem 11.75rem;
}

.sell h1 {
    margin-bottom: 1rem;
    font-weight: bold;
    font-family: didot;
    font-size: 20px;
    letter-spacing: 1px;
}

form {
  display: grid;
  grid-template-areas: 'name name price quantity'
                       'description description description description'
                       '. . . submit';
  font-size: inherit;
}

input {
  box-sizing: border-box;

}

select {
  background-color: hsla(0, 0%, 100%, 1);
  font-size: inherit;
}

textarea {
  min-height: 12rem;
  font-size: inherit;
}

#name {
  grid-area: name;
  margin-right: 10px;
  
}

#name input {
  border: 1px solid black;
}

#price {
  grid-area: price;
  margin-right: 10px;
  
}

#price input {
  border: 1px solid black;
}

#quantity {
  grid-area: quantity;
}

#quantity select {
  border: 1px solid black;
}

#description {
  grid-area: description;
  margin-top: 20px;

}

#description input {
  border: 1px solid black;
}

#description textarea {
  font-family: didot;
}

#submit {
  grid-area: submit;
  justify-self: end;
  margin-top: 20px;
}

input:focus::-webkit-input-placeholder {
    opacity: 0;
}

textarea:focus::-webkit-input-placeholder {
    opacity: 0;
}

@media only screen and (max-width: 1100px) {
  .sell {
    padding-left: 10%;
    padding-right: 10%;
  }
}

@media only screen and (max-width: 970px) {
  form {
    grid-template-areas: 'name name'
                         'price quantity'
                         'description description'
                         '. submit';
  }
}

@media only screen and (max-width: 660px) {
  form {
    grid-template-areas: 'name'
                         'price'
                         'quantity'
                         'description'
                         'submit';
  }

  #submit {
    justify-self: center;
  }
}

@media only screen and (max-width: 490px) {
  .field label {
    margin-top: 10px;
  }

  .field input {
    width: 50%;
  }

  select {
    width: 50%;
  }

  textarea {
    width: 50%;
  }
}