/* Form Related Rules */

fieldset {
    border: royalblue solid 2px;
    border-radius: 5px;
    background-color: rgba(255, 215, 0, 0.15);
    margin: 20px 0;
    max-width:98%;
}
legend {
    font-size: 1.3em;
    color: #000000;
    font-family: "Book Antiqua", Palantino, Garamond, serif;
    margin-bottom: 10px;
}

p{
    font-family: "Book Antiqua", Palantino, Garamond, serif;
    font-size:17px;
}

textarea {
    color: royalblue;
    width:50%;
    height:100px;
    max-width: 98%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    background-image: url('searchicon.png');
    background-position: 10px 10px; 
    background-repeat: no-repeat;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}
label{
  width:12%;
  display:inline-block;
}
.longlabel{
  width:25%;
}
.shortlabel{
  width:9%;
}
.label{
  width:12%;
}
input[type=text],input[type=email],input[type=tel], input[type=url], input[type=password]{
    margin-left:10px;
    width: 50%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    background-image: url('searchicon.png');
    background-position: 10px 10px; 
    background-repeat: no-repeat;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

input[type=text]:focus,input[type=email]:focus,input[type=tel]:focus,input[type=url]:focus, textarea:focus  {
    width: 80%;
}
input:focus, textarea:focus {
    background-color:white;
    color: royalblue;
}



@media screen and (min-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    max-width: 98%;
    margin: auto;
  }
  
  
  main {
    display: flex;
    flex-wrap: wrap;
  }
  nav,
  header {
    order: -1;
  }
  nav ul {
    flex-direction: row;
  }
  
  article {
    flex: 50%;
    border-right: solid black 1px;
    border-bottom: solid black 1px;
  }
}

@media screen and (min-width: 1024px) {
    
    main{
        margin-left:auto;
        margin-right:auto;
    }
    
    
    
}

