/* Color Definitions */
$color-dark: #1875c6;
$color-bright: #00a5ea;

/* Imports */
@import "octicons.css";

/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* Old browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

/* Basic Elements */

body{
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	background: #fff;
}
a {
  color: $color-bright;
  text-decoration: none;
	-webkit-transition: color 200ms;
	transition: color border 200ms;

	&:hover{
		color: $color-dark;
	}

	&.marker:after{
		content: "\203A";
		border: solid 1px $color-bright;
		border-radius: 50%;
		display: inline-block;
		height: .8em;
		width: .8em;
		margin: 0 0 0 10px;
		line-height: .7;
		font-size: 120%;
	}
}
h1{
	font-size: 300%;
	text-align: center;
}
h2{
	font-size: 200%;
	text-align: center;
	line-height: 150%;
}
h2+p{
	font-size: 125%;
	font-weight: 200;
	text-rendering: optimizeLegibility;
	text-align: center;
	line-height: 150%;
	opacity: .65;
	margin: auto auto;
}
p{
	text-rendering: optimizeLegibility;
	line-height: 150%;
	opacity: .7;
}

.center{
	text-align: center;
}

section{
	width: 100%;
	float: left;
}
.container{
	width: 830px;
	margin: 40px auto auto;
	position: relative;
}

.logo-training-materials{
	display: inline-block;
	height: 26px;
	width: 237px;

	&:before{
		content: "";
		background: url(../images/training-materials-2x.png) no-repeat top left;
		background-size: contain;
		height: 32px;
		width: 237px;
		display: block;
	}
}

.hero{
	background: $color-dark;
	color: #fff;
	text-align: center;
	box-shadow: inset 0 -20px 30px rgba(0,0,0,.08);
	border-bottom: solid 1px #fff;

	h1{
		margin-top: 40px;
		font-weight: 200;
		line-height: 140%;
	}

	p{
		font-weight: 200;
		font-size: 110%;
		text-rendering: optimizeLegibility;
		opacity: .85;
		margin-bottom: 40px;
	}
}

.blurb{
	background: #f5f5f5;
	color: #000;
	padding: 0 0 40px;
	font-size: 80%;
	margin-top: 40px;

	h2{
		text-align: left;
		opacity: .6;
	}
	p{
		text-align: left;
		opacity: .7;
	}
}

.grid2col{
	float: left;
	width: 49%;
	text-align: left;

	p{
		padding-right: 10%;
	}
}


.professortocat{
	height: 100px;
	width: 100px;
	float: left;
	background: url(../images/professortocat.png) no-repeat;
	background-size: contain;

	& + .group{
		float: left;
		margin-left: 20px;
		width: 700px; /* Weird 10px less hack. Don't know why. */
	}
}

.tab-panel{
	background: #fff;
	position: block;
	margin: 30px auto 0 auto;
	height: 120px;
	width: 360px;
	position: relative;

	label{
		background: #f5f5f5;
		-webkit-transition: background 250ms ease-in-out;

		&:hover{
			background: #fff;
		}
	}

	.tab{
		float: left;
		width: 118px;
		border: solid 1px #dfdfdf;

		&.first{
			border-top-left-radius: 5px;
			border-bottom-left-radius: 5px;
			border-right: none;
		}
		&.last{
			border-top-right-radius: 5px;
			border-bottom-right-radius: 5px;
			border-left: none;
		}
		& > span{
			display: block;
			text-align: center;
			margin: 10px;
			opacity: .6;
			font-size: 80%;
		}
	}

	.panel-content{
		width: 200%;
		visibility: hidden;
		// opacity: 0;
		position: absolute;
		left: -50%;

		-webkit-transition: opacity 400ms;
		transition: opacity 400ms;

		.octicon-hero{
			display: inline-block;
			padding: 0 10px;
			color: #ddd;
		}
		p{
			font-size: 80%;
			text-align: center;
			margin: 20px 0;
			font-weight: 200;
		}
		ul{
			text-align: center;
		}
		li{
			display: inline-block;
		}
	}

	input.material-type{
		position: absolute;
		left: -999px;

		&:checked + label{
			background: $color-bright;

			& > span{
				color: #fff;
				opacity: 1;
			}
		}

		&:checked + label.tab > div.panel-content{
			visibility: visible;
			// opacity: 1;
		}
	}
}

footer {
  float: left;
	position: relative;
  font-size: 12px;
  line-height: 1.5;
  color: #777;
  clear: both;
  width: 100%;
  margin: 40px auto 40px auto;
  border-top: 1px solid #eee;

	.right {
		float: right;
		margin: 0;
	}

	.octicon-mark-github {
		position: absolute;
		// top: 38px;
		left: 50%;
		color: #ccc;
		height: 24px;
		width: 24px;
		margin-left: -12px;
		font-size: 24px;
		line-height: 1;
	}
}

.site-footer-links li {
  display: inline-block;
  margin-left: 10px;
}

.site-footer-links li:first-child {
  margin-left: 0;
}
