/*
Filename: sitewide.css
Author: Jade Holt
Description: Applying what I learned in Chapters 1-11 by using CSS and 
validating both the CSS and HTML.
*/

	
/* body and layout styles */
body{
	margin-top:5px;
	margin-right:0px;
	margin-bottom:5px;
	margin-left:0px;
	padding:0px 0px 0px 0px;
	font-size:90% !important;
	color:rgba(0,0,0,1);/*black with full opacity*/
	min-width:770px;
	background: url(images/cornucopia.jpg)  repeat;
	font-family:Arial,Helvetica,sans-serif;
}
/*heading styles*/
h3{
	color:rgba(153,153,0,1);/*font color is dark green*/
}
h5{
	font-style:italic;/*font is italicize*/
	}
/*header and navigation*/
#header{
	background-color:rgba(255,255,255,1);/*background is white*/
	background:url(images/topbanner.jpg) no-repeat;
	height:95px;
	width:550px;
}
#nav{
	border:rgba(255,255,255,1) 1px solid ;
	}
/*unordered list descendant to nav*/
#nav ul{
	width:100%;
	background-color: rgba(255,204,1,1);
	padding-left:0px;
	margin:0px;
	float:left;
}
/*defining unordered list list item descendant of the nav id with 
the properites and values*/
#nav ul li{
	display:inline;
	}
/*defining the link state for the unordered list using the nav id*/
#nav a:link {
	float:left;
	color: rgba(0,0,0,1.0);/*black*/
	padding:6px 12px 6px 12px;
	border:1px solid rgba(255,255,255,1.0);/*white*/
	width:auto;
	}
/*defining the hover state for the unordered list using the nav id*/
#nav a:hover{
	background-color:rgba(255,255,153,1);
	padding:6px 12px 6px 12px;
	border:1px solid rgba(255,255,255,1.0);
}	
/*table styles*/
table{
	border:none;
	font:12px, Arial,Helvetica,sans-serif;
	margin:0px 2px 2px 2px;
	table-layout:auto;
	empty-cells:show;
	}
#recipetable{
	padding:10px 10px 10px 10px;
	position:relative;
    left:5px;
	top:-20px;
	display:inline-table;
	}
/*images*/
.recipephoto{
	float:left;
	border:1px solid rgba(0,0,0,1.0);/*black*/
	margin:0px 5px 5px 10px;
	width:140px;
}
#cornbread_stack{
	float:right;
	position:relative;
	top:-145px;
	margin:2px 5px 5px 0px;
	border-radius:5px;
	box-shadow: 1px 3px rgba(0,0,0,0.5);/*black*/
	}
/*ingredients and directions*/
#ingredients{
	margin:5px 5px 5px 5px;
	font-weight:bold;
	background-color:rgba(255,153,0,.4);/*orange*/
	padding:10px 10px 10px 10px;
	position:relative;
	height:auto;
	}
#directions{
	margin: 10px 10px 10px 10px;
	border: 1px solid rgba(255,51,0,1);/*red*/
	padding: 5px 5px 5px 5px;
	}
hr{
	border:1px solid rgba(0,0,0,0.5);/*black*/
	margin-bottom:15px;
}


#wrap {
	background-color: rgba(255,255,255,1); /* white */
	margin: 0 auto; /* centers page */
	width: 770px;
	padding: 10px;
	border-radius: 10px; /* rounds the corners */
	box-shadow: rgba(0,0,0,.75) 2px 0 4px; /* applies box shadow */
}
/* recipe content area */	
	
#main {
	background: rgba(255,255,255,1); /* white */
	float: left;
	width: 550px;
	margin-bottom: 25px;
}
#main h2, #main h3, #main p {
	padding: 0px 10px;
}
/* right side bar */

#sidebar {
	background: rgba(255,255,255,1); /* white */
	float: right;
	width: 195px;
	padding: 10px;
	min-height: 350px;
}
/*define unordered list descendant for sidebar*/
#sidebar ul{
	margin-bottom:0px;
}
/*define unordered list list item descendant for sidebar*/
#sidebar ul li{
	font-size:12px;
	list-style-image:url(images/pieicon.gif);
}
/*define paragraph descendant for sidebar*/
#sidebar p{
	padding:0px 10px 0px 0px;
}
/*id selector side_image*/
#side_image{
	box-shadow:2px 2px 5px rgba(0,0,0,0.4);/*opaque black shadow*/
	}
#facts {
	display: block;
	width: 190px;
	height: 250px;
	overflow: auto;
	background-color: rgba(251,220,71,.25);/*orange*/
	margin:10px 0px 0px 5px;
	font-size:90%;
	padding: 0px 0px 3px 3px;
	
}
/*defining heading 3 for descendant facts*/
#facts h3{
	margin-left: 20px;
	color: rgba(204, 102, 0, 1);/*orange*/
	text-transform: uppercase;
	font-size: inherit;
}
/*styling the form*/
form{
	border: 1px solid rgba(255,204,1,1);/*orange*/
	background-color: rgba(255,190,51,1);/*dark orange*/
	padding: 2px 2px 2px 2px;
	margin: 5px 5px 5px 5px;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 1)/*black*/;
}
input {
	font: 12px Arial, Helvetica, sans-serif;
	background-color: rgba(255,255,204,0.8);/*light orange*/
}
/*styling the footer*/
.logo{
	border:none;
}
#footer{
	background-color:rgba(255,153,0,1);/*orange*/
	clear:both;
}
#footer p {
	font-size: 9px;
	font-style: italic;
	padding: 5px 5px 5px 5px;
	margin: 10px 0px 0px 0px;
	text-align: center;
}
/*styling hyperlinks*/
a{
	color:rgba(255,153,0,1);/*orange*/
	text-decoration:underline;
}
a:link{
	color: rgba(255,153,0,1);/*orange*/
	text-decoration: underline;
}
a:visited {
	color: rgba(255,204,0,1);/*light orange*/
	text-decoration: underline;
}

a:hover {
	color: rgba(255,102,0,1);/*dark orange*/
	text-decoration: underline;
	font-weight: bold;
}

a:active{
	color:rgba(255,102,0,1);/*dark orange*/
	text-decoration:underline;
	font-weight:bold;
}
