@charset "utf-8";

/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 5
   Tutorial Case
   
   Author:   
   Date:     
   
   Filename: tf_flex.css
   
   This file contains the flex styles used in the Trusted Friends
   Pre-K Classes page.

*/


/* ================
   Base Flex Styles
   ================
*/

body {
	display: -webkit-flex;
	display: flex;
	
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
}

header, footer {
	width: 100%;
}

aside {
	-webkit-flex: 1 1 120px;
	flex: 1 1 120px;
}

section#main {
	-webkit-flex: 3 1 361px;
	flex: 3 1 361px;
}

section#topics {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
}

section#topics article {
	-webkit-flex: 1 1 200px;
	flex: 1 1 200px;
}

/* =========================
   Mobile Styles: 0 to 480px 
   =========================
*/

@media only screen and (max-width: 480px) {
	
	nav#hole_list {
		order: 99;
	}
	
	nav.horizontal ul {
		display: none;
	}
	
	a#navicon:hover+ul, nav.horizontal ul:hover {
		display: block;
	}
	
	aside {
		-webkit-order: 99;
		order: 99;
		display: none;
	}
	
	footer {
		-webkit-order: 100;
		order: 100;
	}
}

/* ============================================
   Tablet and Desktop Styles: 481px and greater 
   ============================================
*/

@media all screen and (min-width: 481px) {
	
	a#navicon {
		display:none;
	}
	
	nav.horizontal ul {
		display: -webkit-flex;
		display: flex;
		-webkit-flex-flow: row nowrap;
		flex-flow: row nowrap;
		-webkit-flex-wrap: row;
		-webkit-flex: 1 1 auto;
		flex-wrap: row;
		flex: 1 1 auto;
	}
	
	nav.horizontal li {
		-webkit-flex: 1 1 auto;
		flex: 1 1 auto;
	}
}


