html, body, div, span, applet, object, iframe, 
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, 
abbr, acronym, address, big, cite, code, del, 
em, img, ins, kbd, q, s, samp, small, strike, 
strong, sub, sup, tt, var, b, u, i, center, dl,
 dt, dd, ol, ul, li, fieldset, form, label, legend,
  table, caption, tbody, tfoot, thead, tr, th,
   td, article, aside, canvas, details, embed,  figure,
    figcaption, footer, header, menu, nav, 
    output, section, summary, time, mark, 
    audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit
  }


html {font-size: 18px;
    text-align: center;
    height: 100%;
    width: 100%;
}

body {
    background: #f9f4f0;
    color: #354;
    font-family: 'Luxurious Roman', cursive;
    
}


/* 
flex properties 
*/
.contact-info{ 
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}





/* 
main css 
*/

header {
 width: 100vw;
 background-color: rgb(94, 213, 218);
 color: #2b2928;
 font-size: large;
 font-weight: bold;
 padding: 1em;
 text-shadow: -2px 2px 1px rgba(61, 71, 165, 0.445);
}
p{ 
    font-weight: bold;
}
div{ 
    padding-bottom: 1.5rem;
    border-bottom: 5px solid rgb(8, 15, 77);  
    border-radius: 7px;
    margin-right: 2vw;
    margin-left: 2vw;
    
}
h1{ 
    color: rgb(8, 15, 77);
    font-size: large;
    font-weight: bolder;
    font-size: 1.5rem;
    margin-top: .75rem;
    margin-bottom: .75rem;
}

div > p { 
    font-size: smaller;
    max-width: 75vw;
    width: 100%;
    display: contents;
    margin-bottom: 3rem; 
}

form {
    border-top: 2px solid rgb(8, 15, 77); 
    margin: 10px auto;
    padding: 10px 20px;
    background: #f4f7f8;
    border-radius: 8px;
    width: 70vw;
  }
 

fieldset > legend { 
    padding: .2rem .5rem 0;
    color: rgb(8, 15, 77);
    font-size: x-large;
    text-align: left;
    font-weight: bold;
 }

.contact-info > label{ 
    color: grey;
    text-align: left;
    padding-top: 1.5rem;
    padding-bottom: .1rem;
}

input, select { 
    height: 44px;
    margin-left: 2px;

}
input:focus, select:focus, textarea:focus{   
    border : 4px solid rgb(21, 153, 43); 
    box-sizing: border-box; 
    transition: .5s ease-in-out;
}
#zip{
    width: 50%;
}
input::placeholder, #choose{ 
    text-align: right;
    color: grey;
    padding-right: .5rem;
}
.contact-info {
    border-bottom: 2px solid rgb(8, 15, 77); 
    border-radius: 7px;
    padding-bottom: 2rem;
}

.newsletter{ 
    margin-top: .2rem;
}

.newsletter > legend{ 
    border-top: 2px solid rgb(8, 15, 77); 
    width: 100% ;
    border-radius: 7px;
    font-weight: bold;
}
.newsletter:nth-child(2){ 
    padding-top: .5rem;
    text-align: left;
}
 .newsletter > input{ 
     height:fit-content;
     margin-top: 1rem;
 }

.light{ 
    display: inline;
    height: 44px;
}
#format { 
    margin-top: 1rem;
    display: block;
}
#html{ 
    margin-top: 2px;
}
#plaintext{ 
    margin-top: 2px;
    margin-bottom: 2rem;
}
.flex{ 
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 2rem;
}

label[for^="other-tops"]{ 
    margin-top: 2rem;
    padding-bottom: .7rem;
}
#other-tops{ 
    width: 100%;
    height: 44px;
}
textarea{ 
    margin-bottom: 2rem;
}

button {
    padding: 19px 39px 18px 39px;
    color: #FFF;
    background-color: #4bc970;
    font-size: 18px;
    text-align: center;
    font-style: normal;
    border-radius: 5px;
    width: 100%;
    border: 1px solid #3ac162;
    border-width: 1px 1px 3px;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.1) inset;
    margin-bottom: 10px;
  }

footer{ 
    font-weight: lighter;
    padding-bottom: 2rem;
}

  
  @media screen and (min-width: 768px) {
      form {
        max-width: 700px;
      }
      .contact-info{ 
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: 1rem;
        padding-bottom: 1rem;
      }
      label[for="state"]{ 
          margin-right: 1rem;
      }

      .contact-info > label{ 
        width: 20%;
        margin-left: .5rem;
        margin-right: .5rem;
      }
      
      .contact-info > input, select { 
          width: 71%;
          display: inline;;
          height: 50px;
          align-self: center;
          margin-left: 2rem;
          align-content: flex-end;
      }
      
       .contact-info > label{ 
        padding-bottom: 1rem;
      }
      #zip {
           width:17.75%;
      }

      textarea{ 
          height: 6rem;
          
      }
  }