/*
body {
	font-family: Lato, "Helvetica Neue", Arial, "Lucida Grande", Tahoma, Verdana, sans-serif;
	background: #f8faf3;
	color: #595d64;
	font-size: 14px;
	margin: 0;
	padding: 0;
}

@media screen and (min-width: 640px) {
	body {
		padding: 20px;
	}
}

h1 {
	text-align: center;
	font-weight: 900;
	margin-top: 10px;
}


h2 {
	margin: 0 0 0.5em 0;
}

h3 {
	font-size: 1em;
	margin: 0 0 0.1em 0;
}
*/

body.no_scroll {
	overflow: hidden;
}

h1, h2, h3 {
	color: #61a4ad;
}


th {
	text-align: left;
}


button, span.button {
	color: #ffffff;
	background: #595d64;
	border-radius: 6px;
	cursor: pointer;
	border: 0;
	padding: 0.3em 0.6em;
	margin-left: 0.5em;
	margin-right: 0.5em;
	-user-select: none;
}

span.button {
	display: inline-block;
	margin-top: 2px;
	margin-bottom: 2px;
	font-size: 0.8em;
}

/*
select {
	font-family: Lato, "Helvetica Neue", Arial, "Lucida Grande", Tahoma, Verdana, sans-serif;
	font-size: 1.5em;
	-webkit-appearance: none;
	padding: 0.3em 0.6em;
	border-radius: 6px;
	color: #ffffff;
	background: #595d64;
}
*/

label {
	-user-select: none;
	-webkit-user-select: none;
	display: block;
}

button.remove {
	background: #c11704;
}

span.button.selectedCourse, button.selectedCourse {
	background: #cc5e04;
}


input[type=checkbox]:checked {
}

/*
.selectionsArea {
	background: #ffffff;
	padding: 10px;
	max-width: 1100px;
	overflow: hidden;
}

@media screen and (min-width: 640px) {
	.selectionsArea {
		border: 1px solid #cfd4d8;
		border-radius: 6px;
		margin: 10px auto;
	}
}
*/


#selections {
	font-size: 14px;
	overflow: auto;
}

#selections .period {
	margin-top: 1em;
}

#selections h3 {
	margin: 0;
	font-size: 1.2em;
}

#selections ul {
	margin: 0.4em 0 0.4em 0;
	padding: 0;
	list-style-type: none;
}

#selections li {
	margin-top: 0.2em;
	cursor: pointer;
}

#location_warning {
	background: #c11704; 
	color: #ffffff;
	text-align: center;
	padding: 0.3em 0.8em;
	display: none;
	margin: 0.3em 0;
}

@media screen and (min-width: 800px) {
	#selections .period {
		width: 50%;
		float: left;
		box-sizing: border-box;
		padding-left: 0.5em;
		padding-right: 0.5em;
	}
}

/*
@media screen and (min-width: 1200px) {
	#selections .period {
		width: 33%;
		float: left;
	}
}
*/

.overlay {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	padding: 20px 0 0 0;
	background: rgba(0, 0, 0, 0.8);
}

.overlay .content {
	box-sizing: border-box;
	width: 95%;
	max-width: 700px;
	margin: 0 auto;
	min-height: 200px;
	max-height: 100%;
	background: #ffffff;
	padding: 20px 15px;
	overflow: auto;
}

@media (min-width: 520px) {
	.overlay .content {
		padding: 30px;
	}
}

.overlay .content h1 {
	font-size: 1.6em;
	text-align: center;
	font-weight: 900;
	margin: 0 0 0.5em 0;
	color: #61a4ad;
}

.overlay .content h2 {
	font-size: 1.3em;
	text-align: center;
	margin: 1em 0 .3em 0;
}

.overlay .content p {
	margin-top: 0.6em;
	margin-bottom: 0.6em;
}

.overlay .content .repeatCourse {
	display: block;
	margin: 1em 0 0 0;
	text-align: center;
}

.overlay .content button {
	font-size: 14px;
	margin: 10px 10px;
}

.overlay .content .buttons {
	text-align: center;
	margin: 0 0 1em 0;
}

.overlay .close {
	border: 1px solid #a0a0a0;
	width: 25px;
	height: 25px;
	float: right;
}

.overlay .content p.course_description {
	font-size: 0.85em;
	line-height: 1.4em;
}

.overlay .content p.course_credits,
.overlay .content p.course_instructor,
.overlay .content p.course_resources {
	font-size: 0.85em;
	font-weight: bold;
}

.overlay .content p.course_resources span {
	font-weight: normal;
}

.overlay .content .showHide {
	color: #61a4ad;
	cursor: pointer;
}


#info_overlay .content table.courses {
	width: auto;
	min-width: 50%;
	margin-left: auto;
	margin-right: auto;
}

#info_overlay .content table.courses th {
	text-align: right;
	white-space: nowrap;
	vertical-align: top;
}


/* Fit to very narrow screens */
@media (max-width: 400px) {
	.overlay {
		padding: 0;
	}

	.overlay .content {
		width: 100%;
		height: 100%;
		padding: 10px;
	}

	#options_overlay .content {
		padding: 10px 0 0 0;
	}
	
	#options_overlay .content h1,
	#options_overlay .content p {
		margin-left: 10px;
		margin-right: 10px;
	}
	
	#options_overlay .content table.courses {
		border-left: 0;
		border-right: 0;
	}

	#options_overlay .content table.courses td,
	#options_overlay .content table.courses th {
		padding-left: 5px;
		padding-right: 5px;
	}

}

#course_browser {
	max-width: 800px;
	margin: 20px auto;
}

#course_browser.no_results table.course_list {
	display: none;
}

#course_browser .warning {
	display: none;
}

#course_browser.no_results .warning {
	display: block;
}

/*
#course_browser > h2 {
	margin-left: 10px;
}
*/

#course_browser > h3 {
	text-align: center;
	margin-bottom: .8em;
}

table.courses {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	border: 1px solid #c0c0c0;
}

table.courses thead th {
	background: #c0c0c0;
}

table.courses td, table.courses th {
	vertical-align: middle;
	padding: 0.45em 0.5em;
}

table.courses tr:nth-child(even) {
	background: #ececec;
}

table.courses tr.selected {
	background: rgba(202, 95, 4, 0.29);
}

table.courses tr.selected:nth-child(even) {
	background: rgba(202, 95, 4, 0.4);
}

table.courses tr.cancelled {
	text-decoration: line-through;
}

#course_list tbody {
	cursor: pointer;
}


#course_timetable {
	display: none;
}

#course_timetable table {
	margin: 1em 0 2em 0;
}

#course_timetable table thead tr th {
	font-size: 1.2em;
	text-align: center;
	margin-top: 2em;
	margin-bottom: 0.7em;
	color: #ffffff;
	background: #606060;
}

#course_timetable tr {
	border-top: 1px solid #c0c0c0;
}


#course_timetable tbody th {
	text-align: center;
	vertical-align: middle;
	padding: 0.3em 0.5em;
	background: transparent;
}

#course_timetable tbody td {
	width: 100%;
	padding: 0;
}

#course_timetable div {
	border-top: 1px dashed #b0b0b0;
	padding: 0.5em;
}

#course_timetable div:first-child {
	border-top: 0;
}

#course_timetable table h3 {
	margin: 0;
	font-size: 1em;
}

#course_timetable ul {
	margin: .5em 0 0.5em 0;
	padding: 0 0 0 0;
}

#course_timetable li {
	list-style-type: none;
	margin: 0 0 0.5em 0;
}

#course_timetable li {
	cursor: pointer;
}

@media (min-width: 640px) {
	#course_timetable div {
		overflow: hidden;
	}

	#course_timetable table h3 {
		float: left;
	}

	#course_timetable ul {
		padding-left: 100px;
		margin-top: 0;
		margin-bottom: 0;
	}

}

#filter_area {
	background: #707070;
	font-size: 0.8em;
	margin: 1em 0 0 0;
	padding: 0 0.5em;
	overflow: hidden;
	color: #e0e0e0 !important;
}

#filter_area #secondary_filter_toggle {
	clear: both;
	text-align: right;
	padding: 0 1em;
}

#filter_area h3 {
	color: #b1c9d1;
	margin: 0 0 0.4em 0;
	font-size: 1em;
}

#filter_area .filter_options {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#filter_area li {
	padding: .1em 0;
}

#filter_area label {
	color: #e0e0e0;
	font-size: 1em;
	line-height: 1.5em;
}

#filter_area label input[type="checkbox"] {
	top: 2px;
}

#filter_area .showHide {
	color: #9fc5d5;
	cursor: pointer;
}

#filter_area .showHide:hover {
	color: #cc5e04;
}


#filter_area .filter_column {
	padding: 1em;
	box-sizing: border-box;
}

@media (min-width: 350px) {
	#filter_area .filter_column {
		width:50%;
		float: left;
	}

	#filter_area .filter_column:nth-child(2n + 1) {
		clear: left;
	}

}

@media (min-width: 525px) {
/*
	#filter_area {
		width: 90%;
		margin-left: auto;
		margin-right: auto;
	}
*/
	#filter_area .filter_column {
		width: 33.3%;
		float: left;
	}

	#filter_area .filter_column:nth-child(2n + 1) {
		clear: none;
	}

	#filter_area .filter_column:nth-child(3n + 1) {
		clear: left;
	}
}


@media (min-width: 700px) {
	#filter_area .filter_column {
		width: 25%;
		float: left;
	}

	#filter_area .filter_column:nth-child(3n + 1) {
		clear: none;
	}

	#filter_area .filter_column:nth-child(4n + 1) {
		clear: left;
	}
}

/*
@media screen and (min-width: 875px) {
	#filter_area .filter_column {
		width: 20%;
		float: left;
	}

	#filter_area .filter_column:nth-child(4n + 1) {
		clear: none;
	}

	#filter_area .filter_column:nth-child(5n + 1) {
		clear: left;
	}
}
*/


#course_browser #filters .secondary {
	display: none;
}

#course_browser #filters.show_secondary .secondary {
	display: block;
}

#course_browser.timetable_view #course_list,
#course_browser.timetable_view #filters #filter_day,
#course_browser.timetable_view #filters #filter_timeOfDay {
	display: none;
}

#course_browser.timetable_view #course_timetable {
	display: block;
}