@charset "utf-8";
/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 5
   Review Assignment
   
   Author:   Andrew Marks
   Date:     10/30/2025
      
   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;
}

aside {
    flex-basis: 130px;
    flex-grow: 1;
    flex-shrink: 8;
}

section#classID {
   display: flex;
   flex-flow: row wrap;
}

section#topics article {
   flex: 2 1 351px;
}

section#biological aside {
   flex: 1 2 250px;
}

nav.horizontal ul {
   display: flex;
   flex-flow: row wrap;
}


/* ===============================
	Mobile Devices: 0 to 480px 
   ===============================
*/
	
@media only screen and (max-width: 480px) {
   
   nav ul {
      display: flex;
      flex-flow: row wrap;
      flex-basis: 240px;
   }

   aside {
      order: 99;
   }

   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 (max-width: 481px) {

   nav.horizontal ul {
      flex-basis: 160px;
   }
}
