
  form {
    width:85%;
    max-width:900px;
    border:2px solid black;
    background-color: whitesmoke;
    list-style-type: none;
    padding: 0.5em;
    margin:0 auto;
    border-radius: 15px;
  }

  legend {
    margin:0 auto; 
    border-bottom: 1px solid purple;
  }

  fieldset {
  margin:0.25em;
  }

  section {
    display: flex;
    justify-content: space-between;
    padding: .5em;
  }
label {
    padding: .5em 1em .5em 0;
    text-align:right;
    flex: 1;
  }

input {
    flex: 5;
  }

  .message {
    display:flex;
    flex-direction:column;
  }

  .message label {
    text-align:left;
  }

  .buttons {
    display:flex;
   justify-content: center;
   } 
  
   button {
    margin:12px 25px;
    width:100px;
   }
  

  @media only screen and (max-width: 600px) {


    form {
      width:95%;
      margin:0;
      border-radius: 15px;
    }
    section {
      display: flex;
      flex-direction:column;
    }


    label {
      text-align:left;

    }

    .buttons {
      display:flex;
      flex-direction:column;
    
     } 

     button {
      margin:12px auto;
      width:100px;
     }

  }




