/* CSS Document */
/* Final Project for CSS CIM 272A, Fall 2010*/
/* Created by Juan Munoz */
/* This Project was created from scratch. However, it has some ideas from  Assignments H7 and H8*/
/* I saw the navBar buttons for div "pageHeader" on Alia's page, so I took the idea and created mines on Photoshop. Also I used Photoshop to make the background images for the body of each page, and the list*/
/* I used -moz and -webkit border feature to get the rounded corners. However, this feature won't work on IE or Opera */


/* Code to set the Background Image for each Page */
body.cs1b {
	background-image: url( cs1b_background.png ); 
}
body.cim225, body.cimw245 {
	background-image: url( cim225_background.png ); 
}

body.cim298 {
	background-image:url(cim298_background.png);
}
body.cs4a {
	background-image:url(cs4a_background.png);
}

body.cs4b {
	background-image:url(cs4b_background.jpg);
}
body.cim205a, body.cimw105 {
	background-image:url(cim205_background.png);
}
body.cim264d{
	background-image:url(cim264d_background.png);
}
body.cim281{
	background-image:url(cim281_background.png);
}

body.cimw110a{
	background-image:url(cimw110a_background.jpg);
}
body.cimw110b{
	background-image:url(cimw110b_background.jpg);
}
body.cimp7a{
	background-image:url(cimp7a_background.jpg);
}
body.cimw220{
	background-image:url(cimw220_background.jpg);
}
body.cimw240{
	background-image:url(cimw240_background.jpg);
}
body.cimw245{
	background-image:url(cimw245_background.jpg);
}
body.cimw260{
	background-image:url(cimw260_background.jpg);
}
body.cimw280{
	background-image:url(cimw280_background.jpg);
}
/* Basic Elements */
body {
	background-repeat: no-repeat;
	background-position: left top;
	background-color:#000000;
	margin: 0px;
}
a:link {
	color:#FFFFCC;
	text-decoration:none;
}
a:visited {
	color:#FFFFCC;
	text-decoration:none;
}
a:hover {
	color:#000000;
	text-decoration:underline;
}
ul {
	list-style-position: outside;
	list-style-image: url(list_button.png);	
	font-weight:normal;
}



/* Div Tags Start Here */
/* Div id="pageBody" */
div#pageBody {
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;
	font-family: "Century Gothic", Arial, sans-serif;
	font-size: medium;
	color: #000000;
	background-color: #660000;
	width: 80%;
	min-width:800px;
	height: auto;
	margin-top: 150px;
	margin-left: 175px;
	border: thin solid #000000;
}

/* Div id="pageHeader" */
/* First, I had the navBar positioned as "Fixed", but I changed it to avoid overlapping the content with the navBar when the window is resized, and the scroll bar appears at the bottom and the user scroll the page. */

header, div#pageHeader {
	font-family: "Century Gothic", Arial, sans-serif;
	display: block;
	float: left;
	margin-left:10px;
	width: 175px;
	height: auto;
}
a.globalLink, a.utilityLink {
	color: #330000;
	background-image: url(button_up.png);
	background-repeat: no-repeat;
	height: 35px;
	width: 150px;
	display: block;
	text-align: center;
	text-decoration: none;
	font-size: medium;
	padding-top: 3px;
}
a.globalLink:hover, a.utilityLink:hover {
	color: #FFFFFF;
	background-image:url(button_down.png);
	background-repeat: no-repeat;
	height: 35px;
	width: 150px;
	display: block;
	text-align: center;
	text-decoration: none;
	font-size: medium;
	padding-top: 3px;
}
/* Div id="pageName" */
div#pageName {
	display: none;
	visibility: hidden;
}
/* Div id="navLocal" */
nav#navLocal, div#navLocal {	
	margin-left:25px;
	margin-right:25px;
	margin-top: 25px;
	text-align:center;
	min-width: 750px;
	height:auto;
}
#navLocal a.localLink {
	-moz-border-radius-topleft: 7px;
	-moz-border-radius-topright: 7px;
	-webkit-border-top-left-radius: 7px 7px;
	-webkit-border-top-right-radius: 7px 7px;
	background-color:#d2903b;
	color:#660000;
	text-decoration: none;
	margin-left:2px;
	margin-right:2px;
	margin-top:0;
	padding-left:5px;
	padding-right:5px;
	background-repeat: no-repeat;
}
#navLocal a.localLink:hover {
	background-color:#660000;
	color:#FFFFFF;
	background-repeat: no-repeat;
}

/* Code To Show The Tab of The Current Page */
body#index a#localIndex{
	color:#FFFFFF;
	background-color:#660000;
}

/* Div id="pageContent" */
div#pageContent {
	-moz-border-radius: 10px;
	-webkit-border-radius:10px;
	font-family: "Century Gothic", Arial, sans-serif;
	background-color:#d2903b;
	margin-top:0px;
	margin-right: 25px;
	margin-bottom: 25px;
	margin-left: 25px;
	min-width:750px;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 5px;
}
div#pageContent a.localLink {
	display: none;
	visibility: hidden;
}

/* CLASS="feature" */
.feature {
	color:#660000;
	text-align:center;
}
.feature h3 {
	font-size: 150%;
	color:#660000;	
}
div#pageContent #indexTable #book {
	text-align:center;
}

/* CLASS= storyHeader and storyBody */
.storyHeader {
	-moz-border-radius-topleft: 7px;
	-moz-border-radius-topright: 7px;
	-webkit-border-top-left-radius: 7px 7px;
	-webkit-border-top-right-radius: 7px 7px;
	background-color:#660000;
	color:#FFFFCC;
	font-family: "Century", Arial, sans-serif;
	font-size:140%;
	text-align:center;
	margin-top: 3px;
	margin-bottom: 0px;
	padding-top:2px;
	padding-bottom:2px;
}
.storyBody {
	border-right-width: thin;
	border-bottom-width: thin;
	border-left-width: thin;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: #660000;
	border-bottom-color: #660000;
	border-left-color: #660000;
	padding: 5px;
}
div.storyBody p {
	margin-top:0;	
	padding-top:2px;
	padding-right:2px;
	padding-bottom:2px;
}
 	
/* storyLeft and storyRight */
.storyLeft, .storyRight {
 	font-size:14px;
 }
.storyLeft .storyHeader {
	padding-top: 5px;
	padding-bottom: 5px;	
}
.storyLeft .storyBody {
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;		
}
.storyRight .storyHeader {
	padding-top: 5px;
	padding-bottom: 5px;
}
.storyRight .storyBody {
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;	
}

/* Div id="pageFooter" */
footer, footer, div#pageFooter {
	-moz-border-radius-bottomleft: 10px;
	-moz-border-radius-bottomright: 10px;
	-webkit-border-bottom-left-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
	font-family: "Century", Arial, sans-serif;
	font-size: small;
	font-variant: small-caps;
	color: #FFFFFF;
	background-color: #660000;
	text-align: center;
	width: 80%;
	min-width: 800px;
	height:auto;
	min-height:30px;
	position:absolute;
	margin-left: 175px;
	margin-top: 10px;
	padding-top: 5px;
}

/* Assignmet Page Style*/

/* Code To Show The Tab of The Current Page */
body#assignment a#localAssignment{
	color:#FFFFFF;
	background-color:#660000;
}

/* Styles for Assignment Table */
#assignmentTable, #scheduleTable {
	margin-bottom:10px;
	margin-left:10px;
	margin-right:10px;
}
#assignmentTable .number, #assignmentTable .date {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}
#assignmentTable td.description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
}
#assignmentTable .feature {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	text-align:center;
	background-color:#660000;
	color:#FFFFCC;
}
#assignmentTable .description {
	padding-right: 10px;
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 5px;	
}
#assignmentTable th.description {
	font-size: 150%;
	color:#660000;
}
#assignmentTable .description h3 {
	text-align:center;
	color:#660000;
}

/* Project Page Style*/
/* Code To Show The Tab of The Current Page */
body#project a#localProject {
	color:#FFFFFF;
	background-color:#660000;
}
#project #storyMain {
	margin-top: 0px;
	padding-top: 15px;
	padding-right: 10px;
	padding-bottom: 5px;
	padding-left: 10px;
}
#project .storyHeader {
	padding-top: 5px;
	padding-bottom: 5px;
}
#project .storyBody {
	padding-top: 10px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
}
#index, #syllabus, #assignmentTable  {
	list-style-position: outside;
	list-style-image: url(list_button.png);
}

/* Schedule Page Style*/
/* Code To Show The Tab of The Current Page */
body#schedule a#localSchedule {
	color:#FFFFFF;
	background-color:#660000;
}
#scheduleTable {
	margin:auto;
	padding-bottom: 10px;
}
#scheduleTable td.feature {
	text-align: center;
	font-size: 120%;
	line-height: 10px;
	font-weight: bold;
}
#scheduleTable td.description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
}
 #scheduleTable .number, #scheduleTable th.description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
 }
 
/* Syllabus Page Style*/
/* Code To Show The Tab of The Current Page */
body#syllabus a#localSyllabus {
	color:#FFFFFF;
	background-color:#660000;
}
#syllabus .feature {
	margin-top: 0px;
	line-height: 10px;
	padding-top: 15px;	
}
#syllabus .story {
	margin-top: 10px;
	margin-right: 3px;
	margin-bottom: 0px;
	margin-left: 3px;
}
#syllabusHeaderTable {
	margin:auto;
	text-align:center;
}
#syllabusHeaderTable td.description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
}
#syllabusHeaderTable .number, #syllabusHeaderTable th.description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
 }
#syllabusHeaderTable .blank,  #syllabusGradingTable .blank {
	visibility:hidden;
	display:none;	
}
#syllabusGradingTable {
	text-align: center;
	margin: auto;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}
#localScheduleSyllabus {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	display:inline-block;
	background-color:#660000;
	margin-left: 10px;
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 5px;
	text-align:center;
}
#syllabusGradingTable .number {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding: 5px;
}
#syllabusGradingTable .description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
}

/* General Styles for Classes: CIM 205 SQL, CIM 264D FLASH HACKS, CIM281 FIREWORKS, CS4A INTRO JAVA, CIM225 PHP, and CS1B C++ Start Here */
/* I had to make some small adjustments on each of these pages. For example I had to change the class names on some specific tags in order to get the result that I wanted ( i.e. ".number" for ".feature" etc.). This because some of these classes were applied diferent on some pages. However, all HTML tags remind the same */

/* Code to center the Book */
body.cim205a #book, body.cs4a #book, body.cim264d #book, body.cim281 #book {
	text-align:center;
}
/* Margin for the Assignment Tables */
body.cim205a#assignment table, body.cim281#assignment table, body.cim264d#assignment table  {
	margin-bottom: 10px;
	margin-top: 10px;
	margin-right: 3px;
	margin-left: 3px;
}
/* Border for class .description */
body.cim264d .description, body.cs4a .description, body.cim281 .description, body.cim205a .description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
}
/* This code hides the blank cells on the Tables */
body.cim264d#schedule .date, body.cim298#schedule .date, body.cim281#schedule .date {
	display:none;
	visibility:hidden;
}
body.cim264d#schedule table, body.cs4a#schedule table {
	margin:auto;
}
/* Code to Invert the Color of the H3 Tag on Assignment CIM 205 Page*/
body#assignment .feature h3 {
	color:#FFFFCC;
}
/* Style for th .description */
body.cim205a th.description, body.cim281 th.description, body.cim264d th.description, body.cs4a th.description {
	font-size: 150%;
	color:#660000;
}

/* Specific Styles for each Page Start Here */

/* CIM 205  Class */
/* Table Columns */
body.cim205a#assignment  table .number, body.cim205a#assignment  table .date, body.cim205a#schedule  table .number {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}
/* Styles for Course Intro CIM 205 */
/* Code to show the current page */
body#flyer a#localFlyer {
	color:#FFFFFF;
	background-color:#660000;
}
body#flyer #pageContent {
	margin-top: 0;
	padding-top: 15px;
	padding-right: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
}

/* CIM 264D Class */
/* Table Columns  */
body.cim264d table .number ,body.cim264d  table .date {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}
body.cim264d#schedule{
	text-align:center;
}

/* CIM 281 Class */
/* Table Columns  */
body.cim281#assignment .number, .date, body.cim281#schedule .number{
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}
/* Invert Colors  */
body.cim281#assignment .feature{
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}

/* CS4A Class */
hr {
	color:#660000;
	border: thin solid #660000;
}
body.cs4a#index .feature h3 {
	font-size: 120%;
	text-align:center;
}
body.cs4a#index table p {
	text-align:center;
}
body.cs4a#index #storyMain {
	text-align:center;
}
body.cs4a#index table h3 {
	text-align:center;
}
/* Table Columns */
body.cs4a table .number ,body.cs4a  table .date {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}
/* CIM225 - PHP*/
/*For the table grade on the Learning Excercise page, I had to add the class "number" and "description" to style the  table*/
/* to place the text to the left - Index page*/
body#index.cim225 .description, body#syllabus.cim225 .description, body#syllabus.cim225 .number{
	text-align:left;
}

/*to change the background color. the original class "number" has a background of red, but for the index page should be the brown color */
body#index.cim225 .number, body#syllabus.cim225 .number {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
	background-color:#D2903B;
	color:#000000;
}

/*Schedule table*/
body#schedule.cim225 .number, body#schedule.cim225 th {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}
/*schedule tabel - schedula page*/
body#syllabus.cim225 #syllabusGradingTable .number {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;	
	color:#FFFFFF;
	text-align:center;
}
/*these two divs are empty, so that's why they are hidden. If you place content into these divs remove this code*/
body#syllabus.cim225 #requiredText  {
	visibility:hidden;
	display:none;
}

body#schedule.cim225 .description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
}
/*Learning excercise page*/
body#exercises.cim225 .story {
	padding-top:20px;
	
}
body#exercises.cim225 .storyHeader {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
}

body#exercises.cim225 .storyBody {
	border: none;	
}
body#exercises.cim225 p.feature, body#exercises.cim225 span {
	background-color: #D2903B;
	color:#000000;
	text-align:left;
}
/* Code to show the current page in cim225 Learning excercise and cs1b test page */
body#exercises a#localLearning, body#test a#localTest {
	color:#FFFFFF;
	background-color:#660000;
}
/*For some reason the footer in this page was way too much to the right, so I had to set the margin left to "auto" to fix this. This happen only on this page (Learning Excercise) */
body#exercises #pageFooter{
	margin-left:auto;
}
/*Flyer page*/
body#flyer.cim225 h3 {
	color:#660000;
	text-align:center;
}
body#flyer.cim225 li h3 {
	color:#000000;
	text-align:left;	
}

/* CS1B - C++*/
/* Index page*/
body#index.cs1b #book {
	text-align:center;
}

/*Assignments Page*/
body#assignment.cs1b #assignmentTable .story {
	padding-top: 20px;
	text-align:center;
}
/*schedule table*/
body#schedule.cs1b .number, body#schedule.cs1b .date, body#schedule.cs1b th {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
	color:#FFFFCC;
	text-align:center;
	padding-top: 5px;
	padding-right: 3px;
	padding-bottom: 5px;
	padding-left: 3px;
}
body#schedule.cs1b table {
	margin:auto;
}
body#schedule.cs1b .description {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	border: thin solid #660000;
	padding:5px;
}
/*test page*/
body#test.cs1b  .storyHeader {
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
	background-color:#660000;
}
/*I'm using the CSS3 "nth-last-of-type() Selector" (http://www.w3schools.com/css3/sel_nth-last-of-type.asp) to hide the empty paragraph in the "div class= story" that is right after the opening "pageContent" div. If you place content in this paragraph, remove this code!  */
/*I just changed the number (nth-last-child(3)) until I got the paragraph I wanted to hide. In this case number 3 did the job*/
body#test.cs1b .story > p:nth-last-child(3) {
	visibility:hidden;
	display:none;	
}
body#test.cs1b .story {
	padding-top:20px;
}


