/*
	Tutorial 6
	Case 4

	Millennium Computers
	Author: Taylor Sears
    Date:   8/6/15

    Filename: 			oform.css
    Supporting files:	mclogo.jpg, go.png, 
						stop.png, mill.css
*/

/* Field Set Styles */

legend {
	background-color: rgb(0, 0, 0);
	color: white;
	padding: 3px 0px;
	text-indent: 5px;
	width: 100%;
	text-align: center;
}

/* 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;
	padding: 5px;
	float: none;
	font-size: 0.9em;
	margin: 10px 0px;
	width: 50%;
}

input#state {
	width: 100px;
}

/* Selection list styles */

select {
	display: block;
	float: left;
	font-size: 0.9em;
	margin: 7px 0px;
}

/* Check Box Style */

#warranty {
	color: rgb(0, 69, 233);
	float: none;
	text-align: center;
	width: 80%;
	font-weight: bold;
}

#warranty input {
	display: inline;
	float: none;
	width: 20px;
}

/* Button Styles */

form p {
	text-align: left;
}

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: 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;