/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Font Faces
   Generated by Font Squirrel (http://www.fontsquirrel.com)
   ========================================================================== */
   
   @font-face {
    font-family: 'quicksand';
    src: url('../fonts/quicksand/Quicksand-Regular-webfont.eot');
    src: url('../fonts/quicksand/Quicksand-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/quicksand/Quicksand-Regular-webfont.woff2') format('woff2'),
         url('../fonts/quicksand/Quicksand-Regular-webfont.woff') format('woff'),
         url('../fonts/quicksand/Quicksand-Regular-webfont.ttf') format('truetype'),
         url('../fonts/quicksand/Quicksand-Regular-webfont.svg#quicksandregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

/* ==========================================================================
   YHSCS custom styles
   ========================================================================== */


	/* Main Styles */
	body {
		background-color: #000;
		-webkit-background-size: cover;
		background-size: cover;
		background-attachment: fixed;
		background-image: url(../images/circuitBG.png);
		background-position: 50% 50%;
		background-repeat: no-repeat no-repeat;
	}
	
	h1, h2, h3, h4, h5, h6 {
		font-family: 'quicksand';
		color: #FFF;
	}
	
	h4, h5, h6 {
		color: #AAA;
	}
	
	#container {
		margin: 0 auto;
		width: 960px;
	}
	
	#content {
		color: #828282;
		background-color: #121212;
		padding: 0 5px;
		min-height: 500px;
		text-align: justify;
	}
	
	#mainImg {
		border: solid #828282 2px;	
		margin-right: 10px;
	}
	
	#twitterFeed {
		float: right;
		width: 450px;
		margin-left: 10px;
	}
	
	#assignments {
		color: #828282;
		background-color: #1C1C1C;
		font-size: 14px;
		height: 25px;
		padding-left: 10px;
	}
	
	#assignmentsTitle {
		color: #AA4D00;
		font-weight: bold;
	}
	
	.picLabel {
		position: relative;	
	}
	
	.picLabel span {
		position: absolute;
		color: #FFF;
		background-color: #AA4D00;
		right: 0px;
		padding: 2px;
	}
	
	#errorMsg {
		font-weight: bold;
		color: #f38630;
	}
	
	/* Table Styles */
	.tg {
		border-collapse:collapse;
		border-spacing:0;
		border-color:#ccc;
		margin:0px auto;
	}

	.tg td {
		font-family:Arial, sans-serif;
		font-size:14px;
		padding:10px 5px;
		border-style:solid;
		border-width:1px;
		overflow:hidden;
		word-break:normal;
		border-color:#ccc;
		color:#333;
		background-color:#fff;
	}

	.tg th {
		font-family:Arial, sans-serif;
		font-size:14px;
		font-weight:normal;
		padding:10px 5px;
		border-style:solid;
		border-width:1px;
		overflow:hidden;
		word-break:normal;
		border-color:#ccc;
		color:#333;
		background-color:#f0f0f0;
	}

	.tg .tg-s6z2 {
		text-align:center
	}
	
	.tableShortCourse {
		display: none;	
	}
	
	/* Header & Footer Styles */
	header {
		background-color: #1C1C1C;
		padding-left: 5px;
	}
	
	h1 {
		margin-bottom: 0px;	
	}
	
	#socialMedia {
		float: right;
		margin-right: 10px;
		margin-top: 5px;
	}
	
	#socialMediaMobile {
		margin-left: auto;
		margin-right: auto;
		width: 210px;
		display: none;
	}
	
	footer {
		color: #525252;
		background-color: #1C1C1C;
		font-size: 14px;
		padding: 5px;
		height: 500px;
		margin-top: 20px;
	}
	
	#deptInfo {
		margin-left: 20px;
		width: 200px;
	}
	
	#copy {
		position: relative;
		bottom: 0px;
		left: 625px;
		width: 300px;
	}
	
	#coursesHeading, #courseList {
		position: relative;
		left: 250px;
		bottom: 170px;
		width: 300px;
	}
	
	#courseList {
		margin-left: 20px;
	}
	
	#linksHeading, #otherLinks {
		position: relative;
		left: 600px;
		width: 300px;
		margin-bottom: -200px;
	}
	
	#linksHeading {
		bottom: 650px;	
	}
	
	#otherLinks {
		margin-left: 20px;
		bottom: 420px;
	}
	
	#courseList span {
		margin-left: 20px;
	}
	
	
	/* Lesson and Project Styles */
	.barronsBook {
		color: #AA4D00;
		float: right;
		text-align: center;
		margin-right: 5px;
		margin-left: 5px;
	}
	
	.methodDef {
		border: solid #FFF 1px;
		background-color:#1C1C1C;
		padding:2px;
		margin-left: 10px;
	}
	
	.division {
		position:relative;
		top:-2px;
		left:0px;
		font-weight:bold;
	}
	
	.divisionDiv {
		border-top: solid #828282 2px;
		width: 50px;
	}
	
	.margin0 {
		margin-bottom: 0px;
		margin-top: 0px;
	}
	
	#projectInfo {
		color: #A00;
		float: right;
		background-color:#1C1C1C;
		border: double #FFF 2px;
		margin-left: 5px;
		padding: 2px;
	}
	
	.excel {
		color: #98fb98;
	}
	
	.sheets {
		color: #cd5c5c;
	}
	
	/* Naviagation Styles */
	a:link, a:visited {
		color: #FFF;
		text-decoration: none;
	}
	
	a:hover, a:active {
		color: #A00;
		text-decoration: none;
	}
	
	#mainMenu {
		color: #828282;
		background-color: #1C1C1C;
		text-align: center;
		font-size: 14px;
		padding-top: 10px;
	}
	
	#mainMenu a {
		margin-right: 10px;
		font-family: Arial, Helvetica, sans-serif;
	}

	#mainMenu a:link, nav a:visited {
		color: #AAAAAA;
		text-decoration: none;
	}
	
	#mainMenu a:hover, nav a:active {
		color: #A00;
		text-decoration: none;
	}
	
	#mainMenu a.current {
		color: #A00;
		font-weight:bold;
	}
	
	#mainMenu div {
		display: inline;
	}
	
	.divider {
		margin-right: 10px;	
	}
	
	.mobileLink {
		display: none;	
	}


	/* Classes */
	.left {
		float: left;
		margin-right: 4px;
	}
	
	.right {
		float: right;
		margin-left: 4px;
	}

	.rightAlign {
		text-align: right;	
	}
	
	.orangeBold {
		color: #AA4D00;
		font-weight: bold;
	}
	
	.bold {
		font-weight: bold;
		font-size: larger;
	}
	
	.centerImg {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	
	.centerTable {
		margin-left:auto; 
    	margin-right:auto;	
	}
	
	.centerText {
		text-align: center;	
	}
	
	.monoTable {
		width:200px;
		font-family:monospace;
		font-size:18px;
	}
	
	.inline {
		display: inline;	
	}
	
	.margin10 {
		margin-left: 10px;	
	}

	.red {
		color: #A00;
		font-weight: bold;
	}
	
	.blue {
		color: #00F;	
	}
	
	.white {
		color: #FFF;	
	}
	
	.underline {
		text-decoration: underline;	
	}
	
	.overline {
		text-decoration: overline;	
	}
	
	.leftImageList {
		margin-left: 300px;
	}


	/* 3-Column Styles */	
	#col3Content {
		padding-left: 315px; /* Width of columns */
		padding-right: 315px;
		text-align: left;
	}
	
	#col3Content .category {
		position: relative;
		float: left;
	}
	
	#col3Content .category h3 {
		color: #AA4D00;
	}

	#category2, #category5, #category8 {
		width: 100%;	
	}
	
	#category1, #category4, #category7 {
		width: 315px;
		margin-left: -100%;
	}
	
	#category3, #category6, #category9 {
		width: 315px;
		margin-right: -315px;
	}
	
	#category4 {
		margin-left:-200%;
		clear: right;
	}
	
	#col3Content .category h4 {
		padding-left: 30px;
	}
	
	#col3Content .category ul {
		margin-top: -20px;
		padding-left: 60px;
	}

	#clearCols {
		clear: both;	
	}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

.tg {width: auto !important;}
.tg col {width: auto !important;}
.tg-wrap {overflow-x: auto;-webkit-overflow-scrolling: touch;margin: auto 0px;}

/* Chrome & Safari (Webkit) Specific Styles */
@media screen and (-webkit-min-device-pixel-ratio:0) {
	#linksHeading {
		margin-top: 25px;
	}
}

@media (max-width: 959px) {

	/* Main Page Styles */
	#container {
		width: 600px;
	}

	#twitterFeed {
		width: 300px;
	}
	
	.tableCourse {
		display: none;
	}
	
	.tableShortCourse {
		display: inline;
	}
	
	/* Footer Styles */
	#otherLinks, #linksHeading {
		position: relative;
		left: 0px;
		top: -225px;
	}
	
	#linksHeading {
		top: -430px;	
	}
	
	#courseList {
		margin-left: 70px;
	}
	
	#coursesHeading {
		margin-left: 50px;	
	}
	
	#copy {
		display: none;
	}
	
	/* Main Course Page */
	#mainImg {
		float: none;
		display: block;
		margin-left: auto;
		margin-right: auto;
	}


	/* Lessons Page */
	#col3Content {
		padding-left: 195px; /* Width of columns */
		padding-right: 195px;
	}
	
	#category1, #category4, #category7 {
		width: 195px;
	}
	
	#category3, #category6, #category9 {
		width: 195px;
		margin-right: -195px;
	}
}



@media (max-width: 599px) {

	/* Main Page Styles */
	#container {
		width: 100%;
		min-width: 320px;
	}
	
	#twitterFeed {
		display: none;	
	}
	
	#content {
		min-width: 320px;	
	}
	
	#content p:first-of-type, .lessonTitle {
		margin-top: 350px;	
	}
	
	html, body {
    	max-width: 100%;
    	overflow-x: hidden;
	}
	
	h2 {
		font-size: 20px;
		padding-top: 20px;
		margin-left: 75px;
	}
	
	
	/* Header & Footer Styles */
	footer, h1, #socialMedia, .divider {
		display: none;	
	}
	
	#mainMenu {
		position: absolute;
		top: 100px;
		font-size: 24px;
		text-align: left;
		min-width: 320px;
	}
	
	#mainMenu div {
		display: inline-block;
		width: 98%;
		vertical-align: middle;
		text-overflow: ellipsis;
		white-space: nowrap;
		word-wrap: normal;
		overflow: hidden;
		border: 2px solid rgba(255,255,255, 0.7);
		border-radius: 7px;
		margin-bottom: 4px;
		background-color: #000;
	}
	
	#mainMenu div > * {
		vertical-align: middle;
	}
	
	.mobileLink {
		display: inline-block;	
	}
	
	#mainMenu img {
		display: inline;
		margin-right: 10px;
		margin-left: 4px;
	}
	
	#socialMediaMobile {
		display: block;	
	}
	
	/* Course Page Styles */
	#assignments, .linkImg {
		display: none;
	}
	
	.lessonTitle {
		margin-bottom: -325px;	
	}
	
	.barronsBook, #projectInfo {
		margin-top: 350px;
		float: right;	
	}
	
	.barronsBook img {
		margin-bottom: -500px;
		float: none;	
	}
	
	#mainImg, .adaptImage {
		float: right;
		margin-top: 350px;
		margin-left: 5px;
		width: 50%;
		height: 50%;
	}
	
	#mainImg.centerText {
		float: none;
		width: auto;
		height: auto;
	}
	
	#col3Content {
		width: 100%;
		padding: 0px;
		margin-top: 350px;
	}
	
	#col3Content .category {
		float: none;
	}
	
	#category1, #category4, #category7 {
		width: 100%;
		margin: 0px;
	}
	
	#category3, #category6, #category9 {
		width: 100%;
		margin: 0px;
	}
	
	/* Teacher and History Page Styles */
	.teacherName:first-of-type {
		margin-top: 350px;	
	}
	
	.teacherName p {
		margin-top: 0px !important;	
	}
	
	.picLabel span {
		display: none;	
	}
	
	img {
    	max-width: 100%;
    	height: auto;
	}
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after, a[href^="javascript:"]:after {
        content: "";
    }

    pre, blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr, img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }

    h2, h3 {
        page-break-after: avoid;
    }
	
	footer a, nav, #assignments {
		display: none;	
	}
	
	/* Custom print styles */
	#socialMedia, #socialMediaMobile {
		display: none;	
	}
	
	#content p:first-of-type, .lessonTitle, .barronsBook, .barronsBook img, #projectInfo, #mainImg {
		margin-top: 0px;	
		margin-bottom: 0px;
	}
}
