/* Form Related Rules */

fieldset {
    border: #003333 solid 1px;
    margin: 20px 0;
    max-width:98%;
}
legend {
    font-size: 1.3em;
    color: #000000;
    font-family: "Book Antiqua", Palantino, Garamond, serif;
    margin-bottom: 10px;
}
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:5%;
}
.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: antiquewhite;
    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:aliceblue;
    color: royalblue;
}

nav ul {
  display: flex;
  flex-direction: column;
  background-color: gold;
  margin: 0;
  border: solid 2px gold;
  padding-left: 0;
}
nav ul li {
  flex: auto;
  list-style-type: none;
}
nav ul li:nth-child(5) {
  border-right: none;
}
nav ul li a {
  display: block;
  background-color: royalblue;
  color: gold;
  text-decoration: none;
  text-align: center;
  padding: 8px;
}
nav ul li a:hover {
  color: royalblue;
  background-color: gold;
}

header {
    background-color: gold;
      border: solid royalblue;
      border-radius: 5px;
      text-align: center;
      color:royalblue;
      margin-bottom: 3px;
      min-height:180px;
}




@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;
  }
  nav ul li {
    border-right: solid 1px #000;
  }
  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;
    }
    
    
    
}

