*{
	box-sizing: border-box
}

.clearfix:before,
.clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }

hr {
	border: 0;
	border-top: 1px solid #ddd;
}

h2 {
	font-size: 32px;
	color: #555;
	font-weight: 600;
	margin-bottom: 10px;
	margin-top: 10px;
}

h3{
	text-transform: uppercase;
	font-size: 13px;
	/*font-size: 1em;*/
	font-weight: 400;
}

h4{
	margin: 0;
	font-size: 16px;
}

h5{
	margin: 0;
	font-size: 13px;
	color: #aaa;
}

html{
	height: 100%;
}

body{
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	margin: 0;
	height: 100%;
	/*background: #f7f7f7;*/
	background-image: linear-gradient(to right,#f7f7f7 0,#f7f7f7 33%,#fff 33%,#fff);
	color: #444;
}


/*****************************
* Sidebar
*****************************/

aside{
	background-color: #f7f7f7;
	width: 33%;
	min-height: 100%;
	float: left;
	padding: 20px;
}

#progress,
#debugging,
#settings{
	border-top: 1px solid #ddd;
	margin-top: 18px;
}

.skill-block{
	height: 14px;
	width: 14px;
	display: inline-block;
	margin-right: 10px;
	position: relative;
	top: 2px;
}

.mastery3{
	background-color: #1c758a;
}

.mastery2{
	background-color: #29abca;
}

.mastery1{
	background-color: #9cdceb;
}

.mastery0{
	background-color: #ddd;
}

.masterynegative{
	background-color: #ab4040;
}

.progress-cells{
	color: white;
	padding: 0;
	text-align: left;
}

aside .progress-cells{
	margin-top: 20px;
	margin-right: 40px;
}

.progress-cell{
	height: 9px;
	width: 9px;
	border: 1px solid #fff;
	border-width: 0 1px 1px 0;
	display: block;
	float: left;
}

#page{
	max-width: 1200px;
	/*padding-top: 20px;*/
	margin: auto;
	height: 100%;
}


/*****************************
* Vocabulary Choosing
*****************************/

#main{
	/*width: 600px;*/
	/*margin: 20px auto;*/
	background-color: #fff;
	padding: 45px 10px 20px 105px;
	/*padding-left: 105px;*/
	float: right;
	width: 67%;
	min-height: 100%;
}

.vocabulary-set:first-of-type{
	background-color: #1C758A;
	border-radius: 4px;
}

.vocabulary-set:first-of-type:hover{
	background-color: #186375;
}

.vocabulary-set:first-of-type h4{
	text-transform: uppercase;
	color: #fdfdfd;
}

.vocabulary-set:first-of-type h5{
	color: #fdfdfd;
}

.vocabulary-set:first-of-type .vocab-btn{
	background-color: rgb(26, 107, 126);
	background-image: linear-gradient(to bottom,#1c758a,#165c6c);
	border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
	color: #fff;
	transition-duration: 0.15s;
	transition-property: box-shadow;
	transition-timing-function: ease-in-out;
}

.vocabulary-set:first-of-type .vocab-btn:hover{
	background-color: rgb(22, 92, 108);
	background-image: linear-gradient(rgb(28, 117, 138), rgb(22, 92, 108));
	background-repeat: repeat-x;
	border-bottom-color: rgb(15, 63, 74);
	box-shadow: rgba(0, 0, 0, 0.34902) 0px 1px 1px 0px, rgba(255, 255, 255, 0.2) 0px 0px 50px 5px inset;
}

.vocabulary-set{
	width: 100%;
	border-bottom: 1px solid #eee;
	height: 124px;
	padding: 25px 20px;
	position: relative;
	cursor: pointer;
}

.vocabulary-set:hover{
	background-color: #eee;
}

.vocab-img{
	height: 60px;
	width: 60px;
	border: 2px solid #ddd;
	border-radius: 4px;
	float: left;
	margin-right: 35px;
}

.vocabulary-set:first-of-type .vocab-img{
	border-color: #29ABCA;
}

.vocab-description{
	/*padding-left: 95px;*/
	padding-right: 150px;
	max-height: 100%;
	overflow: hidden;
}

.vocab-btn{
	position: absolute;
	top: 25px;
	right: 25px;
	border-radius: 15px;
	height: 32px;
	width: 130px;
	border: 1px solid #4fbad4;
	color: #4fbad4;
	background-color: #fff;
	cursor: pointer;
	font-size: 13px;
}


/*****************************
* Spelling Module
*****************************/

#backdrop{
	position: absolute;
	min-height: 100%;
	width: 100%;
	background: rgba(49, 68, 83, .85);
	top: 0;
	right: 0;
	display: none;
}

#overlay{
	/*font-size: 20px;*/
	/*text-align: center;*/
	background-color: #fdfdfd;
	/*min-height: 600px;*/
	width: 85%;
	max-width: 1200px;
	margin: 50px auto;
	padding-bottom: 39px;
	position: relative;
}

#close-overlay{
	height: 40px;
	width: 40px;
	position: absolute;
	top: -20px;
	right: -20px;
	background: #444 url('close.png') no-repeat center;
	color: #fff;
	font-size: 30px;
	font-weight: 600;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	outline: none;
	transition: all 200ms ease;
}

#close-overlay:hover{
	-webkit-transform: rotate(20deg);
	-ms-transform: rotate(20deg);
	transform: rotate(20deg);
}

#spelling-header{
	/*text-align: left;*/
	background: linear-gradient(180deg,#0b0f13,#3a5163);
	height: 114px;
	padding: 20px;
}

#spelling-header h2{
	font-size: 24px;
	color: #fff;
	margin: 0 0 22px;
}

#spelling-header h3{
	font-size: 11px;
	color: #eee;
	text-transform: none;
}

.progress-bar{
	background-color: #ddd;
}

.progress-bar>div{
	float: left;
	height: 10px;
	width: 20%;
	border: none;
	transition: width 400ms linear;
}

#instructions{
	/*float: left;*/
	margin: 40px 20px;
}

/*#message p{
	margin: 0;
	font-size: 13px;
}*/

#answer-area{
	margin: 20px -8px 20px 20px;
	float: right;
	width: 310px;
	/*width: 27%;*/
}

#spelling-container{
	font-size: 20px;
	height: auto;
	/* width = width of #textfield + 4 for border */
	width: 196px;
	height: 29.4px;
	margin: 12px auto;
	background: white;
	position: relative;
	border: 2px inset #eee;
}

#hint-text{
	text-align: left;
	height: 25px;
	padding-top: 2px;
	color: #ccc;
	font-family: 'Inconsolata', monospace;
	float: left;
}

#textfield{
	background-color: transparent;
	font-size: inherit;
	font-family: 'Inconsolata', monospace;
	/* width = 12 x number of characters allowed */
	width: 192px;
	position: absolute;
	left: 0px;
	margin: 0px;
	padding: 2px 0;
	border: none;
	outline: none;
}

.info-box{
	background: #eee;
	border: 1px solid #ccc;
	border-bottom: 1px solid #aaa;
	color: #333;
	margin-bottom: 10px;
	padding: 10px 10px;
	position: relative;
	z-index: 10;
	box-shadow: 0 1px 2px #ccc;
	position: relative;
	z-index: 2;
}

.info-box:before{
	content: " ";
	display: block;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #ccc;
	width: 0;
	height: 16px;
	position: absolute;
	right: -1px;
	top: -24px;
}

.info-box h4{
	color: rgb(119, 119, 119);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;

}

.info-box .progress-cells{
	margin: 10px;
}

.info-box .progress-cell{
	height: 13px;
	width: 13px;
}

input[type="button"]{
	font-family: 'Open Sans', sans-serif;
}

.info-box input[type="button"]{
	font-size: 12px;
	color: #fff;
	border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
	border-radius: 3px;
	height: 23px;
	width: 100%;
	padding: 2px 10px 4px;
	margin: 5px 0;
	transition: box-shadow ease-in-out .15s;
	cursor: pointer;
}

.info-box input[type="button"]:hover{
	box-shadow: 0 1px 1px rgba(0,0,0,0.35),inset 0 0 50px 5px rgba(255,255,255,0.2);
}

#positive-reinforcement{
	position: relative;
	height: 0;
	display: none;
}

#positive-reinforcement img {
	width: 28px;
	position: absolute;
	top: 2px;
	left: -5px;
	cursor: pointer;
}

#submit{
	background-color: rgb(128, 172, 7);
	background-image: linear-gradient(rgb(138, 186, 8), rgb(113, 152, 7));
	border: 1px solid #7fab07;
}

#submit:hover{
	background-color: #719807;
	border-bottom-color: #547105;
}

#hint{
	background-color: rgb(213, 87, 4);
	background-image: linear-gradient(rgb(227, 93, 4), rgb(192, 79, 3));
	border: 1px solid #d45704;
}

#hint:hover{
	background-color: rgb(192, 79, 3);
	border-bottom-color: rgb(152, 62, 3);
}

#replay{
	background-color: rgb(7, 128, 213);
	background-image: linear-gradient(rgb(8, 138, 225), rgb(7, 108, 193));
	border: 1px solid #077fab;
}

#replay:hover{
	background-color: #077198;
	border-bottom-color: #055471;
}

#spelling-footer{
	margin: 0;
	padding: 10px 15px;
	height: 39px;
	border-top: 1px solid #ddd;
	position: absolute;
	bottom: 0;
	width: 100%;
	z-index: 100;
}

#spelling-footer span{
	font-size: 13px;
	text-decoration: none;
	color: #7d00ad;
	cursor: pointer;
}

#spelling-footer span:hover{
	color: #707070;
}

#reset{
	float: left;
}

#flag{
	float: right;
}

audio#notification-sounds{
	display: none;
}

audio#tts{
	display: none
}


/*****************************
* Responsive Settings
*****************************/

@media screen and (max-width: 900px){
	#main{
		padding: 10px;
	}
}

@media screen and (max-width: 640px){
	html{
		height: 100%;
	}

	body{
		margin: 0;
	}

	#page{
		width: 100%;
		height: 100%;
		margin: 0;
		border-radius: 0;
	}

	aside{
		width: 45%;
	}

	#main{
		width: 55%;
	}

	.vocabulary-set{
		text-align: center;
		padding: 15px 20px;
		height: 100px;
	}

	.vocab-description{
		padding-right: 0;
	}

	.vocabulary-set h5{
		display: none;
	}

	.vocab-img{
		display: none;
	}

	.vocab-btn{
		display: inline-block;
		margin-top: 10px;
		position: static;
	}

	#answer-area{
		width: auto;
		float: none;
		margin: 20px;
	}

	.info-box:before{
		display: none;
	}
}

@media screen and (max-width: 480px){
	body{
		background: #fff;
	}
	
	#overlay{
		width: 100%;
		margin: 0 auto;
	}

	#close-overlay {
		top: 0;
		right: 0;
	}

	#spelling-footer{
		/*position: fixed;*/
		background-color: #fdfdfd;
	}

	aside{
		width: 100%;
		min-height: 0;
	}

	#main{
		width: 100%;
		min-height: 0;
	}

	aside .progress-cells{
		margin-right: 0;
	}

	#settings{
		display: none;
	}

	.info-box input[type="button"]{
		height: 35px;
	}

	#positive-reinforcement img {
		top: 8px;
		left: 4px;
	}
}