/*
   IT 270
   Final Project

   Chris Walters Contact Form Stylesheet
   Author: Christopher Walters
   Date:   August 15, 2015

   Filename:        oform.css
   Supporting Files: 

*/
/* Field Set Styles */

fieldset {
	background-color: moccasin;
	color: darkred;
	border: 3px solid darkslategray;
	float: left;
	margin: 10px 0px 10px 2.5%;
	width: 45%;
	}
legend {
	background-color: sienna;
	color: moccasin;
	padding: 3px 0px;
	text-indent: 5px;
	width: 100%;
	}

/* label styles */
label {
	clear: left;
	display: block;
	float: left;
	font-size: 0.9em;
	margin: 7px 4% 7px 5px;
	width: 40%;
	}
	
/* Input control styles */

input {
	display: block;
	float: left;
	font-size: 0.9em;
	margin: 7px 0px;
	width: 50%;
	}
input#state {
	width: 40px;
	}
	
/* Selection list styles */

select {
	display: block;
	float: left;
	font-size: 0.9em;
	margin: 7px 0px;
	}
	
/* Option button styles */

fieldset.optionGroup {
	border-width: 0px;
	}
fieldset.optionGroup label {
	display: inline;
	float: none;
	margin: 0px 3px 0px 0px;
	width: 30px;
	}
fieldset.optionGroup input {
	display: inline;
	float: none;
	margin: 0px 20px 0px 0px;
	width: 20px;
	}

	/* Text area styles */

textarea {
	display: block;
	font-size: 0.9em;
	float: left;
	height: 150px;
	margin: 10px 0px;
	width: 50%;
	}
	
	/* Checkbox styles */
	
#emailList{
	color: darkred;
	float: none;
	margin-left: 30%;
	text-align: center;
	width: 40%;
	border: 3px solid sienna;
	opacity: 0.8;
	filter: alpha(opacity=80);
	background-color: moccasin;
	}
#emailList input {
	display: inline;
	float: none;
	width: 20px;
	}

	
/* Button styles */

form p{
	text-align: center;
	}
input[type="submit"], input[type="reset"] {
	display: inline;
	float: none;
	height: 40px;
	width: 200px;
	}

/* Validation styles */

input:focus, select:focus, textarea:focus {
	background-color: rgb(220, 255, 220);
	}
input:focus:valid {
	background: lightgreen url(images/go.png) bottom right no-rpeat;
	
	-o-background-size: contain;
	-moz-background-size: contain;
	-webkit-background-size: contain;
	background-size: contain;
	}
input:focus:invalid {
	background: darksalmon url(images/stop.png) bottom right no-repeat;
	
	-o-background-size: contain;
	-moz-background-size: contain;
	-webkit-background-size: contain;
	background-size: contain;
	}
	