/*
   IT-270 Final Project

   PC Form Style Sheet
   Author: Jacob Talbot
   Date:   26 March 2016

   Filename:         pcform.css
   Supporting files:

*/

/* Field Set Styles */

fieldset {
	background-color: gray;
	background-color: rgba(255, 255, 255, 0.8);
	float: left;
	margin: 10px, 0px, 10px, 2.5%;
	width: 100%;
	}

legend {
	background-color: rgb(97, 30, 2);
	color: rgb(145, 98, 78);
	color: rgba(255, 255, 255, 0.3);
	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: 60%;
      }

input#fName {
	width: 100px;
	}

input#lName {
	width: 100px;
	}

input#phone {
	width: 125px;
	}

input#email {
	width: 150px;
	}

/* Selection List Styles */

select {
	display: block;
	float: left;
	font-size: 0.9em;
	margin: 7px 0px;
       }

select#date {
	width: 150px;
	}
	
/* Text Area Styles */

textarea {
	display: block;
	font-size: 0.9em;
	float: left;
	height: 150px;
	margin: 10px 0px;
	width: 50%;
	 }

/* Number Input Box Styles */

#group {
	width: 50px;
       }

/* 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 {
	background-color: rgb(220, 255, 220);
	}

input:focus:valid {
	background: rgb(220, 255, 220) url(/media/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(/media/stop.png) bottom right no-repeat;

	-o-background-size: contain;
	-moz-background-size: contain;
	-webkit-background-size: contain;
	background-size: contain;
	}