@import url(http://fonts.googleapis.com/css?family=Droid+Sans);
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab);
* {
  
  /*with these codes padding and border does not increase it's width.Gives intuitive style.*/
  
  -webkit-box-sizing: border-box;   
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
   margin:0;
   padding:0;
  font-family: 'Droid Sans', sans-serif;
  
  }
div#envelope{
	width: 80%;
	margin: 10px 10% 10px 10%;
	background-color: #Fff;
	padding: 0;
	border: 1px solid gray;
	border-radius: 10px;
	} 
	
div#responsive{
width:90%;
margin-left:5%;
}  

form header {
  margin: 0; 
  text-align:center;
  font-family: 'Roboto Slab', serif;
  }
  
form header div {
  font-size: 90%;
 }

/* Makes responsive fields.Sets size and field alignment.*/
input[type=text],
input[type=email],
input[type=url],
input[type=tel]
 {
	width: 100%;
	padding: 15px;
	border-radius: 5px;
	border: 1px solid #6B98BF;
}
textarea{
	width: 100%;
	border: 1px solid #6B98BF;
	border-radius: 5px
  }


div{
	padding-top: 3px;
	padding-right: 0;
	padding-bottom: 3px;
	padding-left: 0;
}
 
input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=tel]:focus,
textarea:focus {

  border-color: #4697e4;
}
label{
margin-left:0;
}

/* Sets form button size*/
input[type=submit]{
	width: 100px;
	border-radius: 5px;
	border: 2px solid #6B98BF;
	margin-right: 10%;
	padding-top: 10px;
	padding-right: 2px;
	padding-bottom: 10px;
	padding-left: 2px;
}

/* By using @ media form can have different layout for screen, mobile phone, tablet.*/

/* Sets the form layout for mobile phone, tablet*/
@media screen and (max-device-width: 600px) {
body {
   margin:0;
   padding:0;
  font-family: 'Droid Sans', sans-serif;
  
  }
div#envelope{
width:50%;
	margin: 10px 30% 10px 25%;
	background-color:#f2f4fb;
	padding:0;
	border:1px solid gray;
	border-radius:10px;
	} 
	
div#responsive{
width:50%;
margin-left:25%;
}  

form header {
  margin: 0; 
  text-align:center;
  font-family: 'Roboto Slab', serif;
  }
  
form header div {
  font-size: 90%;
 }

/* Makes responsive fields.Sets size and field alignment.*/
input[type=text],
input[type=email],
input[type=url],
input[type=tel]
 {
width:100%;
  padding: 15px;
  border-radius:5px;
  border:1px solid #7ac9b7;
}
textarea{
	width:100%;
    border:1px solid #7ac9b7;
	border-radius:5px 
  }


div{
  padding:10px 0;
}
 
input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=tel]:focus,
textarea:focus {

  border-color: #4697e4;
}
label{
margin-left:0;
}


input[type=submit]{
width:160px;
padding:20px 2px;
border-radius:5px;
border:2px solid  #4697e4;
margin-right:10%
}
}




  
