/*
Filename: sitewide.css
Author:Rachel Lincoln 
Description: Making a recipe page using what I've learned in the 1st 11 chapters. 
*/

	
/* body and layout styles */
/*Adding body above wrap and styling- font, background, image, font family*/
body{
	margin: 5px 0px 5px 0px;
	padding: 0px;
	font-size: 90% !important;
	color: rgba(0,0,0,255);
	min-width: 770px;
	background-image: url(images/cornucopia.jpg);
	background-repeat: repeat;
	font-family: Arial, Helvetica, sans-serif;
}
	
#wrap {
	background-color: rgba(255,255,255,1); /* white */
	margin: 5px 0px 5px 0px ; /* centers page */
	min-width: 770px; 
	padding: 0px;
	border-radius: 10px; /* rounds the corners */
	box-shadow: rgba(0,0,0,.75) 2px 0 4px; /* applies box shadow */


}
/*Heading Styles */
/*Adding h3 color */
h3{
	color: rgba(153,153,0,1);
}
/*Adding h5 font style*/
h5{
	font-style: italic;
}

/*Header and Navigation*/
/*Creating header with image */
#header{
	background-color: rgba(250,250,250,1);
	background-image: url(images/topbanner.jpg);
	background-repeat: no-repeat;
	height: 95px;
	width: 550px;
}
/* setting nav border*/
#nav{
	border: 1px solid rgba(255,255,255,1);
}

/*Setting nav undordered list and added li for display:inline*/	
#nav ul{
	width:100%;
	background-color: rgba(255,204,1,1);
	padding-left: 0px;
	margin: 0px;
	float:left;
}

#nav ul li{
	display: inline;
}


/*Setting up how the links look in nav*/
/*I went to tutoring for this issue and I tried to look in mulitple places for this
answer. This is as close as I could get it. I can't figure out why it won't work*/

#nav ul li a:link{
	float:left;
	color: rgba(0,0,0,1);
	padding:6px 12px 6px 12px;
	border-right: 1px solid rgba(250,250,250,1);
	width:auto;
}
/*Setting up how hovering will look in nav*/
#nav ul li a:hover{
	background-color: rgba(255,255,153,1);
	padding: 6px 12px 6px 12px;
	border-right: 1px solid rgba(250,250,250,1);
}

/*table styles*/
/*creating html table selector using single font property*/
table{
	border:none;
	font: 12px Arial, Helvetica, sans-serif;
	margin: 0px 2px 2px 2px;
	table-layout: auto;
	empty-cells: show;
}
/*Adding ID selector recipetable*/
#recipetable{
	padding: 10px 10px 10px 10px;
	position: relative;
	left: 5px;
	top: -20px;
	display:inline-table;
}

/*images*/
/*class selector recipephoto - adding styling  */
.recipephoto{
	float:left;
	border: 1px solid rgba(0,0,0,1);
	margin: 0px 5px 5px 10px;
	width:140px;
}
/*adding ID selector of cornbread_stack and styling*/
#cornbread_stack{
	float:right;
	position: relative;
	top:-145px;
	margin: 2px 5px 5px 0px;
	border-radius: 5px;
	box-shadow:1px 1px 3px rgba(0,0,0,.5);
}

/*ingredients and directions*/
/*Creating ID selector ingredients and styling */
#ingredients{
	margin: 5px 5px 5px 5px;
	font-weight: bold;
	background-color: rgba(255,153,0,.4);
	padding: 10px 10px 10px 10px;
	border-radius: 10px;
	position: relative;
	height:auto;
}

/*setting up ID selector directions*/
#directions{
	margin:10px;
	border: 1px solid rgba(255,51,0,1);
	margin-top: 10px;
	padding:5px;
}
/*Adding <hr> rule and styling*/
hr{
	border:1px solid rgba(0,0,0,.5);
	margin-bottom: 15px;
}

/*adding form selector and styling*/
form {
	border: 1px solid rgba(255,204,1,1);
	background-color: rgba(255,190,51,1);
	padding:2px;
	margin: 5px;
	box-shadow: 2px 2px 5px rgba(0,0,0,1);
}

/*adding input selector and styllng*/
input {
	font: 10px Arial, Helvetica, sans-serif;
	background-color: rgba(255,255,204,.8);
}



/* 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;
}

/*Adding unordered list for sidebar ID and li */
#sidebar ul{
	margin-bottom: 0px;
}

#sidebar ul li{
	font-size: 12px;
	list-style: url(images/pieicon.gif);
}

#sidebar p{
	padding: 0px 10px 0px 0px;
}

/*creating sidebar id for styling*/
#side_image{
	box-shadow: 2px 2px 5px rgba(0,0,0,1);
}

/*adding facts id  and styling */
#facts{
	display:block;
	width: 190px;
	height: 250px;
	overflow: auto;
	background-color: rgba(251,220,71,.25);
	margin: 10px 0px 0px 5px;
	font-size: 90%;
	padding: 0px 3px 3px 0px;
}

#facts h3{
	margin:20px;
	color: rgba(204,102,0,1);
	text-transform: uppercase;
	font-size: inherit;
}

/*Adding hyperlink styling for link state, link, visited, hover, active */
a{
	color: rgba(255,153,0,1);
	text-decoration: underline;
}

a:link{
	color: rgba(255,153,0,1);
	text-decoration: underline;
}

a:visited{
	color:rgba(255,204,0,1);
	text-decoration: underline;
}

a:hover{
	color: rgba(255,102,0,1);
	text-decoration: none;
	font-weight: bold;
}

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



/*Footer*/
/*creating logo class with no border*/
.logo{
	border: none;
}

/*ID footer and styling*/
#footer{
	background-color: rgba(255,153,0,1);
	clear: both;
}

/*adding p as a descedent*/
#footer p{
	font-size: 9px;
	font-style: italic;
	padding:5px;
	margin: 10px 0px 0px 0px;
	text-align: center;
}

