@media screen and (max-width: 980px) {	
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:970px;	
	}
	
	#homecontent {
		border-bottom:0px;
	}
	
	#homelower {
		background:none;
	}
	
}

@media screen and (max-width: 800px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:790px;	
	}
	
	#nav1, #homecontent, #pageimages {
		width:95%;
	}
	
	#nav1 a {
		width:25%;
		margin:0px;
		text-align:center;
	}
		
	#logo, #logohome {
		margin-top:10px;
		margin-bottom:10px;
		margin-left:auto;
		margin-right:auto;
		text-align:center;
	}
	
	#logo img, #logohome img {
		max-width:210px;
	}
	
	#login {
		right:10px;
	}

	#homeimages div:nth-child(1) {
		width:31.15%;
	}
	
	#homeimages div:nth-child(2) {
		width:37.11%;
	}
	
	#homeimages div:nth-child(3) {
		width:31.73%;
	}

	#homeimages div img {
		width:100%;
	}
	
	#homecontent {
		font-size:18px;
	}
	
	#pageimages img, #content {
		display:block;
		width:95%;
		margin-right:auto;
		margin-left:auto;
	}
	
	.video-js {
		width:50%;
	}
}

@media screen and (max-width: 768px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:763px;	
	}
}

@media screen and (max-width: 736px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:730px;	
	}
}

@media screen and (max-width: 640px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:635px;	
	}
		
	#homecontent {
		font-size:15px;
	}
	
	#homelower {
		min-height:auto;
	}
	
	#nav1 a {
		font-size:12px;
		line-height:28px;
	}

	#nav1, .sdm a {
		font-size:12px;
		line-height:18px;
	}		

	#content {
		display: flex;
		flex-flow: column nowrap;
	}
	
	#sidebar {
		float:none;
		display:block;
		margin:0px;
		min-height:auto;
		width:auto;
		order:2;
	}

	.video-js {
		width:80%;
	}
}

@media screen and (max-width: 480px) {
	h1 {
	}

	h2 {
	}

	h3 {
	}

	body, h4 {
	}

	h5 {
	}

	h6 {
		font-size:11px; line-height:16px;
	}

	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:475px;	
	}
	
	#login {
		font-size:9px;
		top:2px;
	}
	
	#homecontent {
		line-height:17px;
		margin-top:10px;
	}
}

@media screen and (max-width: 414px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:409px;	
	}
	
	#logo img, #logohome img {
		max-width:160px;
	}

	#nav1 a {
		font-size:10px;
	}

	.resourcetitle {
		width:auto;
	}
}

@media screen and (max-width: 380px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:373px;	
	}
}

@media screen and (max-width: 375px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:370px;	
	}
}

@media screen and (max-width: 360px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:355px;	
	}
}

@media screen and (max-width: 320px) {
	#container, #main, #footer, #homemain, #homeimages, #pageimages {
		width:315px;	
	}

	#nav1 a {
		font-size:8px;
	}
}