/*
Filename: sitewide.css
Author: Edith Harvey
Description: CSS external style sheet for the project #3 assignment for ITWP 1050 during Week 5
*/

	
/* body and layout styles */
body {
	margin: 5px 0px 5px 0px;
	padding: 0px;
	font-size: 90% !important;
	color: rgba(0,0,0,255);
	min-width: 770px;
	background: url('images/cornucopia.jpg') repeat;
	font-family: Arial, Helvetica, sans-serif;
}
/* ========================================= */

/* heading styles */
h3 {
	color: rgba(153,153,0,1); /* dark green */
}
h5 {
	font-style: italic;
}
/* ========================================= */

/* header and navigation */
#header {
	/* Note to self, opacity is 0 for transparent and 1 for opaque, variations are between */
	background: rgba(255,255,255,1) url('images/topbanner.jpg') no-repeat;
	width: 550px;
	height: 95px
}
#nav {
	border: 1px rgba(255,255,255,1);
}
/* unordered list descendants of the nav id */
#nav ul {
	width: 100%;
	background: rgba(255,204,1,1);
	padding-left: 0px;
	margin: 0px;
	float: left;
}
/* list items of the unordered list descendants of the nav id */
#nav ul li {
	display: inline;
}
/* link style for list items in the unordered list descendants of the nav id */
#nav ul li a:link {
	float: left;
	color: rgba(0,0,0,1);
	padding: 6px 12px 6px 12px;
	border-right: 1px rgba(255,255,255,1) solid;
	width: auto;
}
/* hovering style for list items in the unordered list descendants of the nav id */
#nav ul li a:hover {
	background: rgba(255,255,153,1);
	padding: 6px 12px 6px 12px;
	border-right: 1px rgba(255,255,255,1) solid;
}
/* ========================================= */

/* 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;
	position: relative;
	left: 5px;
	top: -20px;
	display: inline;
}
/* ========================================= */

/* images */
.recipephoto {
	float: left;
	border: 1px rgba(0,0,0,1) solid;
	margin: 0px 5px 5px 10px;
	width: 140px;
}
#cornbread_stack {
	float: right;
	position: relative;
	top: -145px;
	margin: 2px 5px 5px 0px;
	/* rounds the corners with 5px radius */
	border-radius: 5px;
	/* x and y offset by 1px, blue 3px, color black with 50% opacity box shadow */
	box-shadow: 1px 1px 3px rgba(0,0,0,.5);
}
/* ========================================= */

/* ingredients and directions */
#ingredients {
	margin: 5px;
	font-weight: bold;
	background: rgba(255,153,0,.4);
	padding: 10px;
	/* rounded corners with 10 pixels radius */
	border-radius: 10px;
	position: relative;
	height: auto;
}
#directions {
	margin: 10px;
	border: 1px rgba(255,51,0,1) solid; /* reddish */
	/* Professor, I am curious why the margin-top when we already have margins of 10px all around? */
	margin-top: 10px;
	padding: 5px;
}
hr {
	border: 1px rgba(0,0,0,1) solid;
	margin-bottom: 15px;
}
/* ========================================= */

/* styling the form */
form {
	border: 1px rgba(255,204,1,1) solid; /* orangish */
	background: rgba(255,190,51,1); /* darker orange */
	padding: 2px;
	margin: 5px;
	/* 2 px x and y offset with 5px blur, black opaque shadow */
	box-shadow: 2px 2px 5px rgba(0,0,0,1);
}
input {
	font: 10px Arial, Helvetica, sans-serif;
	/* light yellow background color with 80% opacity value is .8 */
	background: rgba(255,255,204,.8); 
}
/* ========================================= */

/* styling the footer */
.logo {
	border: none;
}
#footer {
	background: rgba(255,153,0,1); /* orange */
	clear: both;
}
#footer p {
	font-size: 9px;
	font-style: italic;
	padding: 5px;
	margin: 10px 0px 0px 0px;
	text-align: center;
}
/* ========================================= */

/* further sidebar id styling not included with files to start with */
/* unordered list descendant of the sidebar id */
#sidebar ul {
	margin-bottom: 0px;
}
/* li descendant of the unordered list of the sidebar id */
#sidebar ul li {
	font-size: 12px;
	list-style: none url('images/pieicon.gif') inside;
}
/* paragraph descendant of the sidebar id */
#sidebar p {
	padding: 0px 10px 0px 0px;
}
/* adding a 2px offset 5px blur black opaque shadow to new side_image id */
#side_image {
	box-shadow: 2px 2px 5px rgba(0,0,0,1);
}
#facts {
	display: block;
	width: 190px;
	height: 250px;
	overflow: auto;
	/* 25 % opacity for a light light yellow background color */
	background: rgba(251,220,71,.25);
	margin: 10px 0px 0px 5px;
	font-size: 90%;
	padding: 0px 3px 3px 0px;
}
/* h3 descendant of the facts id */
#facts h3 {
	margin-left: 20px;
	color: rgba(204,102,0,1); /* reddish brown */
	/* adding text case, using text-transform, to uppercase */
	text-transform: uppercase;
	font-size: inherit;
}
/* ========================================= */

/* link anchor tag styles */
/* all links before clicked */
a {
     color: rgba(255,153,0,1); /* orange */
     text-decoration: underline;
}
a:link {
     color: rgba(255,153,0,1); /* orange */
     text-decoration: underline;
}
/* visited link style */
a:visited {
     color: rgba(255,204,0,1); /* light orange */
     text-decoration: underline;
}
/* hovering over link style */
a:hover {
     color: rgba(255,102,0,1); /* dark orange */
	text-decoration: none;
	font-weight: bold;
}
a:active {
     color: rgba(255,102,0,1); /* dark orange */
	text-decoration: none;
	font-weight: bold;
}
/* ========================================= */

/* CSS Code that came with the project files */
#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;
}
/* ========================================= */