/* subjects */
.subject-container{
	width: 100vw;
	height: 100vh;
	margin: -50px 0 4% 0;
	position: relative;
}
.subject-container h1{
	padding: 0;
	margin: 0;
	font-size: 2.5em;
	font-weight: 400;
}
.subject-container > div:first-child{
	background: #fff;
	opacity: 0.8;
	border-radius: 5px;
	margin: 80px 30px 1% 1%;
	padding: 1% 3%;
	position: absolute;
	right: 0;
}

/* nav and containers at the bottom of each subject page */
.bottom{
	width: 100%;
	position: absolute;
	bottom: 0;
	background: #fff;
	color: #2c3e50;
	opacity: 0.9;
}
.bottom > div{
	display: none;
	width: 100%;
	max-width: 1500px;
	margin:0 auto;
}
.bottom nav{
	text-align: center;
}
.bottom nav div{
	display: inline-block;
	vertical-align: top;
	padding: 1%;
	cursor: pointer;
	border-left: 1px solid #2c3e50;
}
.bottom nav div:first-child{
	border-left: 0px;
}
.bottom nav div:hover{
	background: #2c3e50;
	color: #fff;
}
.selected{
	background: #2c3e50!important;
	color: #fff;
	position: relative;
}
.selected::after{
	right: 70%;
	top: 100%;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #2c3e50;
	content: " ";
	position: absolute;
}
.bottom > div > div{
	display: inline-block;
	vertical-align: middle;
	width: 50%;
	margin-left: 2%;
	padding: 2% 0;
	color: #2c3e50;
}
.bottom > div > img{
	display: inline-block;
	vertical-align: middle;
	width: 25%;
	padding: 2%;
}
.bottom h3{
	padding: 0;
	margin: 0;
	font-size: 1.5em;
}
.bottom p{
	margin: 2% 0;
	padding: 0;
	font-weight: 300;
}
.bottom ul{
	margin: 0;
	padding: 0;
}
.bottom li{
	list-style: none;
	margin: 0
}
.bottom a{
	text-decoration: none;
	color: #2c3e50;
	display: inline-block;
	vertical-align: middle;
	display: block;
	font-size: 0.9em;
}
.bottom a:hover{
	background: #2c3e50;
	color: #fff;
}
.bottom a > img{
	width: 25px;
	display: inline-block;
	vertical-align: middle;
	padding: 1%;
}

.math{
	background: url("../images/subjects/math/landing.jpg") no-repeat center center ;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}
.science{
	background: url("../images/subjects/science/landing.jpg") no-repeat center center ;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover; 
}
.language{
	background: url("../images/subjects/language/landing.jpg") no-repeat center center ; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}
.socials{
	background: url("../images/subjects/socials/landing.jpg") no-repeat center center ;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover; 
}
.technology{
	background: url("../images/subjects/technology/landing.jpg") no-repeat center center ;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover; 
}

/* Media Queries */
@media only screen and (max-width: 1200px){
	.bottom nav div{
		font-size: 0.9em;
	}
}

@media only screen and (max-width: 1050px){
	.bottom nav div{
		font-size: 0.8em;
	}
}

@media only screen and (max-width: 950px){
	.bottom nav div{
		font-size: 0.7em;
	}
}

@media only screen and (max-width: 776px){
	#sub-nav{
		display: none;
	}
	.subject-container{
		height: 55vh;
	}
	.bottom nav div{
		padding: 2% 1%;
	}
}

@media only screen and (max-width: 600px){
	.subject-container{
		width: 100vw;
		height: auto;
	}
	.subject-container > div:first-child{
		/*position: relative;*/
		margin: 0;
		top: 55px;
		right: 5px;
		z-index: 1000;
	}
	.math,
	.science,
	.language,
	.socials,
	.technology{
		background: #fff;
	}
	.bottom{
		position: relative;
	}
	.bottom nav{
		display: none;
	}
	.bottom div{
		display: block;
		position: relative;
	}
	.bottom div > div{
		display: inline-block;
		vertical-align: middle;
		width: 100%;
		margin-left: 0;
	}
	.bottom div > img{
		display: inline-block;
		vertical-align: middle;
		width: 100%;
		padding: 0;
	}
	.bottom h3, .bottom p{
		padding: 0 2%;
	}
}










