#contact-user-modal, #email-was-sent-modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  transition: all 5s ease-in-out;
}

#email-was-sent-modal{
    display: block;
}

#contact-user-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  border: 1px solid #888;
  width: 60%;
  position: relative;
  height: 30rem;
  overflow-y: auto;
}

#email-was-sent-modal-content{
    margin: 15% auto;
    background-color: #fefefe;
    border: 1px solid #888;
    width: 60%;
    position: relative;
    height: auto;
    overflow-y: auto;
    border-radius: 0.5rem;
    padding: 1rem;
    display: grid;
    align-items: center;
    grid-auto-flow: column;
    color: #444;
    font-weight: bold;
}

#contact-modal-grid{
    display: grid;
}

#contact-user-modal-close, #email-was-sent-modal-close{
    text-align: right;
}

#contact-modal-msg{
    width:100%;
    height: 9rem;
    color: var(--sub-header);
    max-height: 10rem;
    resize: none;
    font-family: inherit;
}

#contact-modal-submit-btn{
    text-transform: uppercase;
    padding: 10px;
    width: 100%;
    position: absolute;
    bottom: 0;
    font-size: small;
    border: 4px solid white;
}

#contact-modal-title{
    display:grid;
    align-items: center;
    grid-auto-flow: column;
    color: #444;
    font-weight: bold;
    border-bottom: solid #f0f0f0 2px;
    background-color: #f8f8f8;
}

#contact-modal-grid div {
    display: grid;
    border-bottom: solid #f0f0f0 1px;
    font-size: small;
    align-items: center;
}

#contact-modal-grid div:nth-child(1){
    grid-column: span 2;
}

#contact-modal-grid div:nth-child(3n+3){
    text-align: right;
}

#contact-user-modal-content div {
    padding: 10px;
}

@media (max-width: 650px) {
    #contact-user-modal-content {
      width:90%;
    }
}

@media (max-width: 5000px) and (min-width: 1500px){
    #contact-user-modal-content {
        width:40%;
    }
}