/*
   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;
	float: left;
	margin: 10px 0px 10px 2.5%;
	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;
}

/*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;
	height: 150px;
	margin: 10px 0px;
	margin-left: 7%;
	width: 85%;
}

/* check box styles */
#warranty {
	color: rgb(233, 69, 0);
	float: none;
	margin: 10px auto;
	text-align: center;
	width: 90%;
}

#warranty input {
	display: inline;
	float: none;
	width: 20px;
}

/*button styles*/

form p {
	text-align: center;
}

input[type="submit"], input[type="reset"], input[type="button"]{
	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: 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;
}