.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #006495;
    padding: 5em 2em 3em 2em;
    margin: auto; /* 15% from the top and centered */
    margin-top: 5em;
    /* border: 1px solid #888; */
    width: 40em; /* Could be more or less, depending on screen size */
    overflow: hidden;
    position: relative;
    border: 2px solid #fafafa;
  }

  .modal-content > h3{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    white-space: nowrap;
    color: #fafafa;
    margin-top: 0.8em;
  }
  
  /* The Close Button */
  .close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 0;
    right: 0;
    margin: 1em;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .modal-content > form{
    width: 100%;
    padding: 2em 0;
    /* margin: 2em auto 0;  */
    background-color: #fefefe;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
  }

  .modal-content > div > h3{
    color: #006495;
    font-size: 2em;
    margin: auto;
  }

  .modal-content > div > span{
    color: #006495;
    margin: auto;
    margin-bottom: 2em;
  }

  .modal-content > div{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  @media only screen and (max-width: 47.5em) {

    .modal-content{
      width: 90vw;
    }

  }

  @media only screen and (max-width:37.5em){
    .modal-content > h3{
      font-size: 1.5em;
    }

    .close{
      margin: 0.5em;
    }
  }

  @media only screen and (max-width: 29em) {

    .submit-div{
      flex-direction: column;
    }

    .submit-div > button{
      width: 90%;
    }

    form > input{
      font-size: 1em;
    }

    form > label{
      font-size: 1em;
    }

    form{
      gap: 1em;
    }

    form > select{
      font-size: 1em;
    }

    .submit-button{
      font-size: 1em;
    }

    .submit-div{
      gap: 2em;
    }

    .modal-content{
      padding: 5em 1em 3em 1em
    }

    .modal-content > h3{
      font-size: 1.2em;
    }

    .close{
      margin: 0.3em;
    }

  }