/*
  Media Queries stylesheet
  Determines width of the page / device and resizes as needed.
  Tutorial from: http://webdesignerwall.com/tutorials/adaptive-mobile-design-with-css3-media-queries 
*/

/* NOTE - Styles for the main (usually static) width are set in the master.css stylesheet */

/* -------------------------------------------------------------- */
/* For viewports narrower than 980px (fluid layout)
/* -------------------------------------------------------------- */

@media screen and (max-width: 980px) {

	#wrapper {
		width: 95%;
	}
	#content {
		width: 100%;
	}

}

/* -------------------------------------------------------------- */
/* For viewports narrower than 650px (one-column layout)
/* -------------------------------------------------------------- */

@media screen and (max-width: 650px) {

	#header {
		height: auto;
	}

	#searchform {
		position: absolute;
		top: 5px;
		right: 0;
	}

	#main-nav {
		position: static;
	}

	#site-logo {
		margin: 15px 100px 5px 0;
		position: static;
	}

	#site-description {
		margin: 0 0 15px;
		position: static;
	}

	#content {
		width: auto;
		float: none;
		margin: 20px 0;
	}

	#sidebar {
		width: 100%;
		float: none;
		margin: 0;
	}

}

/* -------------------------------------------------------------- */
/* For viewports narrower than 480px 
/* (iphone screen in landscape orientation)
/* -------------------------------------------------------------- */

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

	html {
		-webkit-text-size-adjust: none;
	}

	#main-nav a {
		font-size: 90%;
		padding: 10px 8px;
	}

}