@charset "utf-8";
/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 5
   Review Assignment
   
   Author: Tamarah Hogan  
   Date:   10/30/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-direction:row;
    flex-wrap: wrap;
}
#left {
    flex:1 8 130px;
}
#right {
    flex:8 1 351px;
}
#tips {
    display: flex;
    flex-direction: row;
    flex-wrap:wrap;
}
article {
    flex-grow: 1;
    flex-shrink: 2;
    flex-basis: 250;
}
nav.horizontal ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}






/* ===============================
	Mobile Devices: 0 to 480px 
   ===============================
*/
	@media screen and (max-width:480){
       nav.vertical ul {
        flex-direction: column;
        flex-wrap: wrap;
        height: 240px;
       } 
       #left { 
        order: 99;
       }
       body>footer {
        order:100;
       }
       a#navicon {
        display:block;
       }
       nav.horizontal ul {
        display:none;
       }
       a#navicon:hover + ul, nav.horizonal ul:hover {
        display:block;
       }
    }




/* ============================================
	Tablet and Desktop Devices: 481px or more 
   ============================================
*/
@media screen and(min-width:481) {
    nav.horizontal ul{
        height: 160px;
    }
}
    



