﻿@charset "utf-8";

/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 5
   Coding Challenge 1

   Author:  Aaron Spence 
   Date:     10/18/2025     
   Filename: code5-1_media.css

*/

/* =========================
   Mobile Styles: 0 to 500px 
   =========================
*/
@media only screen and (max-width: 500px) {

	article img {
		display: none;
	}

	ul.submenu {
		text-align: centered;
	}
}

/* =============================
   Tablet Styles: 501px to 709px 
   =============================
*/
@media only screen and (min-width: 501px) {
	nav {
		float: left;
		width: 130px;
		height: 400px;
		margin-top: 30px 25px 0 0;
	}
		
	
}


	
/* ============================================
   Tablet and desktop Styles: 710px and greater 
   ============================================
*/
@media only screen and (max-width: 500px) {
	nav {
		float: none; 
		width: 100%;
		height: auto;
		margin: 0;
	}
	ul.mainmenu {
		display: flex;
		flex-flow: row nowrap;
		justify-content: center;
		flex: 0 1 120px;
	}
	li.mainmenu {
		flex: 0 1 120px;
	}
	
}