@charset "utf-8";
/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 5
   Review Assignment
   
   Author:   Io Anderson
   Date:     10/15/25
      
   Filename: tf_styles4.css

   This file contains the screen styles used with the Trusted
   Friends blog tips

*/


/* Import Basic Design Styles Used on All Screens */

@import url("tf_designs.css");



/* General Flex Styles */
body {
	display: flex;
	flex-flow: row wrap;
}
section#left {
	flex-basis: 130px;
	flex-grow: 1;
	flex-shrink: 8;
}
section#right {
	flex-basis: 350px;
	flex-grow: 8;
	flex-shrink: 1;
}
section.tips {
	display: flex;
	flex-flow: row wrap;
}
article {
	flex-grow: 2;
	flex-shrink: 1;
	flex-basis: 351px;
}
section.tips article aside {
	flex-grow: 1;
	flex-shrink: 2;
	flex-basis: 250px;
}
nav.horizontal > ul {
	display: flex;
	flex-flow: column wrap;
}
/* ===============================
	Mobile Devices: 0 to 480px 
   ===============================
*/
@media only screen and (max-width: 480px) {
	nav.vertical ul {
		display: flex;
		flex-flow: column wrap;
		height: 240px;
	}
	section#left{
		order: 99;
	}
	body > footer {
		order: 100;
	}
	a#navicon {
		display: block;
	}
	nav.horizontal ul {
		display: none;
	}
	a#navicon:hover+ul, nav.horizontal ul:hover {
		display: block;
	}
}




/* ============================================
	Tablet and Desktop Devices: 481px or more 
   ============================================
*/
@media only screen and (min-width: 481px) {
	nav.horizontal ul {
		flex-flow: column wrap;
		height: 160px;
	}
}


