/*
   Case Problem 4

   Style Sheet
   Author: Peter Pagonis
   Date:   5/1/2016

   Filename:         oform.css
*/

/* field set styles */

fieldset {
	background-color: rgb(240, 248, 255);
	border: 1px solid blue;
	display: block;
	padding-top: 20px;
	margin:auto;
	width: 46%;
}

legend {
	background-color: rgb(30,100,255);
	color: white;
	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: 50px;
}

/*selection list */
select {
	display: block;
	float: left;
	font-size: 0.9em;
	margin: 7px 0px;
}



/*button styles*/

form p {
	text-align: center;
}

input[type="submit"], input[type="reset"]{
	display: inline;
	float: none;
	height: 40px;
	width: 175px;
}

button{
		display: inline;
	float: none;
	height: 40px;
	width: 175px;
}

/*validation styles*/

input:focus, select:focus, textarea:focus{
	background-color: rgb(220, 255, 220);
}

input:focus:valid{
	background: rgb(220, 255, 220) url(go.png) bottom right no-repeat;
	
	-o-background-size: contain;
	-moz-background-size: contain;
	-webkit-background-size: contain;
	background-size: contain;
}

input:focus:invalid{
	background: rgb(255, 232, 233) url(stop.png) bottom right no-repeat;
	
	-o-background-size: contain;
	-moz-background-size: contain;
	-webkit-background-size: contain;
	background-size: contain;
}