/* Setting up the page to resemble the portal theme. */
body {
	font-family: verdana;
}

div#left_sidebar {
	width: 22%;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	background-color: #eee;
	padding: 10px;
	min-height: 100%;
	float: left;
	margin-right: 10px;
}

div#main_content {
	min-width: 70%;
	float: left;
	border: 1px solid #888;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	padding: 10px;
	text-align: center;
}

div#main_content h1 {
	font-weight: normal;
	padding: 0;
	margin: 0;
}


/* Layout out the elements and setting the dimensions for the collapsed course train box. */
.courseTrainBox {
	margin: 10px 0;
	border: 5px solid #ccc;
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
    border-radius: 12px;
    min-height: 100px;
    padding: 5px;
    display: block;
    width: auto;
    min-width: 770px;
    background: #ffffff;
    clear: both;
    box-shadow: 0px 0px 3px #cccccc;
    behavior: url('PIE_uncompressed.htc');
}

.courseTrainBox:hover {
    box-shadow: 0px 0px 6px #666666;
    cursor: hand;

}

.trainImg {
	height: 100px;
	width: 100px;
	padding: 5px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
    border-radius: 4px;
    display: block;
    behavior: url('PIE_uncompressed.htc');
}

.courseInfo {
	float: left;
	text-align: left;
    display: block;
    min-width: 220px;
    width: 275px;
    cursor: pointer; 
    cursor: hand; 
}
.courseTrainBox .coursePartDrawer .studentCoursePart:hover {
	border: 1px solid #000; background-color: #EEE; cursor: pointer; cursor: hand; 
} 
.courseInfo .courseTrainName {
	font-size: 20px;
    line-height: 25px;
	font-weight: normal;
	padding: 0;
	margin: 0;
    max-height: 75px;
    vertical-align: center;
    text-wrap: normal;
    display: inline;
}

span.numPartsInTrain {
	background-image: url('./images/coursepart_icon.png');
	background-position: center left;
	background-repeat: no-repeat;
	padding-left: 20px;
	text-transform: uppercase;
	color: #aaa;
	font-weight: normal;
	font-size: 12px;
    display: block;
    height: 15px;
    margin-top: 10px;
    padding-bottom: 5px;
}

/* Container for the train's grade boxes. */
.courseGradeBoxes {
	float: right;
    display: block;
	width: 370px;
	clear: right;
	margin-bottom: 5px;
}

/* Base settings for the grade box. */
.courseGrade {
	width: 80px;
	height: 95px;
	background-color: #abc9d9;
	margin: 10px 10px 10px 0;
	float: left;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	border: 1px solid #82a8bb;
	overflow: hidden;
	behavior: url('PIE_uncompressed.htc');
}

.courseGrade:hover {
    box-shadow: 0px 0px 5px #82a8bb;
}

/* Making sure the anchor tag fills the button and doesn't do any weird text formatting. */
.courseGrade a.gradebookLink {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #000000;
}

/* If the grade's been approved, setting the box opacity to make the current course most prominent. */
.courseGrade.enrolled.final {
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter:alpha(opacity=60);
    opacity: .6;
}

.courseGrade.enrolled.final:hover {
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter:alpha(opacity=100);
    opacity: 1;
}

/*.courseGrade.enrolled.noprogress {
	background-color: #aaa;
	border: 1px solid #a7a7a7;
}*/

.courseGrade .gradePart {
	font-size: 10px;
	text-transform: uppercase;
	margin: 2px;
	text-align: center;
}

.courseGrade .gradeScore {
	font-size: 35px;
	font-weight: bold;
	margin: 0;
	font-family: arial;
    padding-top: 4px;
    max-width: 78px;
}

/* Adjusting the display of the percent sign based on score. Hiding if there isn't one. */
.courseGrade .gradeScore .percent {
	font-size: 12px;
	font-weight: normal;
    display: inline-block;
    width: 12px;
    margin-right: -10px;
}

.courseGrade.enrolled.noprogress .gradeScore .percent {
    display: none;   
}

.courseGrade .gradeStatus {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	margin: 0px 0;
}

.onPaceStatus {
	background-color: #75b476;	
}

.behindStatus {
	background-color: #FFFF00;	
}

.veryBehindStatus {
	background-color: #FF0000;	
}

/* If the student isn't enrolled in a part, locking down the button. */
.courseGrade.notenrolled {
    background-color: #555;
	color: #ccc;
	border: 1px solid #111111;
	background-image: url('./images/lock_round.png');
	background-repeat: no-repeat;
	background-position: center;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter:alpha(opacity=60);
    opacity: .6;
}

.courseGrade.notenrolled .gradePart {
    margin: 0;
	margin-top: 35px;
	display: block;
	background-color: #ccc;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter:alpha(opacity=50);
    opacity: .5;
	color: #000000;
}

.courseGrade.notenrolled:hover {
    box-shadow: none;
}

/* All CSS for the expanded course train should be contained from here down. */
/* Expanded Train CSS */
.courseTrainBox .coursePartDrawer {
	display:none;
	behavior: url('PIE_uncompressed.htc');
}

.courseTrainBox.trainExpanded .coursePartDrawer, .coursePartDrawer > div {
	background: rgb(205, 223, 233);
	display: block;
	clear: both;
	text-align: left;
	border-top: 5px solid #ccc;
	margin: -5px;
	padding: 5px;
	box-shadow: inset 0 0 5px #82a8bb;
}

.courseTrainBox .coursePartDrawer .coursePart {
	background-color: #fff;
	border: 1px solid #aaa;
	padding: 5px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	margin: 5px;
	behavior: url('PIE_uncompressed.htc');
	position: relative;
	min-height: 50px;
	cursor: pointer;
}

.courseTrainBox .coursePartDrawer .coursePart.not_enrolled {
	background-color: #ccc;
	color: #fff;
	background-image: url('./images/lock_round.png');
	background-repeat: no-repeat;
	background-position: center;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter:alpha(opacity=60);
    opacity: .6;
    border-bottom: none;
	border: 1px solid #aaa;
	cursor: not-allowed;
}

.courseTrainBox .coursePartDrawer .coursePart.final {
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter:alpha(opacity=60);
    opacity: .6;
}

/* Hover States for coursePart types */
.courseTrainBox .coursePartDrawer .coursePart:hover {
    box-shadow: 0px 0px 5px #82a8bb;
}

.courseTrainBox .coursePartDrawer .coursePart.final:hover {
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter:alpha(opacity=100);
    opacity: 1;
}

.courseTrainBox .coursePartDrawer .coursePart.not_enrolled:hover {
    box-shadow: none;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
    filter:alpha(opacity=80);
    opacity: .8;
}
.courseTrainBox .coursePartDrawer .coursePart:not(.not_enrolled):hover{
	 border: 1px solid black;
}


/* Styles for the coursePart number and section code based on the part type */
.courseTrainBox .coursePartDrawer .coursePart .coursePart_num {
	font-size: 10px;
	text-transform: uppercase;
	font-weight: bold;
	display: inline-block;
    width: 50px;
    text-align: right;
    padding-right: 5px;
    border-right: 1px solid #878787; 
}

.courseTrainBox .coursePartDrawer .coursePart.not_enrolled .coursePart_num {
    margin: -5px;
    font-size: 10px;
    line-height: 20px;
    text-transform: uppercase;
    text-align: center;
	margin-top: 15px;
	background-color: #555;
	color: #fff;
	font-weight: bold;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
    filter:alpha(opacity=70);
    opacity: .7;
    display: block;
    width: 100%;
    float: left;
    padding: 0 5px;
}

.coursePart_sectioncode {
	text-transform: uppercase;
	font-size: 10px;
	display: inline-block;
	/*border-left: 1px solid #878787;*/
	color: #444;
	padding-left: 5px;
	margin-left: 3px;
	line-height: 20px;
	font-weight: normal;
}

.courseTrainBox .coursePartDrawer .coursePart.not_enrolled .coursePart_sectioncode {
	color: #fff;
	font-weight: normal;
}

/* Course part details (section and teachers) */
.coursePartDetails {

    display: block;
    float: none;
}

.coursePartDetails p {
	margin: 0;
	padding: 0;
	font-size: 11px;
	line-height: 14px;
	padding-right: 400px;
}


.coursePartDetails p.teachers {
    text-align: left;
    float: none;
    padding-top: 3px;
    margin: 4px 0;
    padding-left: 65px;
}

.coursePartDetails p.teachers a {
	background-image: url('./images/messageicon.png');
	background-repeat: no-repeat;
    background-position: center;
	display: inline-block;
	text-decoration: none;
    margin: -2px 0;
    clear: right;
    text-transform: uppercase;
    width: 16px;
    margin-right: 5px;
    border-right: 1px dotted #ccc;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
    filter:alpha(opacity=70);
    opacity: .7;
    padding: 6px 8px 6px 0;
    margin-left: -31px;
}

.coursePartDetails p.teachers a:hover {
    opacity: 1;
    filter:alpha(opacity=100);
}

/* Display the student's progress in the course part. */
.coursePartProgress {
	width: 450px;
	float: right;
    display: block;
	text-align: right;
    position: absolute;
    right: 5px;
    top: 10px;
    clear: left;
}

.coursePartProgress p {
	margin: 0;
	font-size: 10px;
	line-height: 10px;
	padding: 0;
	float: right;
    text-align: right;
    width: 460px;
    margin-top: 1px;
    margin-bottom: 10px;
}

.coursePartProgress p span {
    width: 165px;
    font-size: 10px;
    line-height: 20px;
    display: inline-block;
}

.coursePartProgress p span.progress_7day {
    text-align: right;
    padding-right: 15px;
}

.coursePartProgress p span.progress_overall {
	text-align: left;
    padding-left: 14px;
	border-left: 1px solid #878787;
}

.coursePart .statusWrapper {
	width: 80px;
	padding: 2px 0;
	border: 0 1px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	margin-bottom: 0;
	float: left;
    overflow: hidden;
    behavior: url(PIE_uncompressed.htc);
    font-size:8px;
    display: none;
    z-index: 1;
}

.progressBarWrapper:hover + div.statusWrapper {
	display: block;
}

.coursePart .progressBarWrapper {
	width: 360px;
	background-color: #ccc;
	padding: 2px 0;
	border: 0 1px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	margin-bottom: 0;
	float: right;
    overflow: hidden;
    behavior: url(PIE_uncompressed.htc);
}

.coursePart .progressBarInner {
	height: 14px;
	font-size: 10px;
	line-height: 18px;
	text-align: right;
	color: #000;
	padding: 2px 0;
}

.coursePartProgress .progressBarInner span {
	display: inline-block;
	margin: 0 10px;
}

/* Collapsed Train Box */
.courseTrainBox .coursePartDrawer {
	display: none;
}

.coursePart_dates {
	font-size: 10px;
	display: inline-block;
	border-left: 1px solid #878787;
	padding-left: 5px;
	margin-left: 3px;
	line-height: 20px;
	font-weight: normal;
	color: #222;
}

.aheadStatus {
	background-color: #006400;	
}