#nav-head { 
	position: fixed;
	background-color:rgba(0, 0, 0, 0.85);
	z-index: 10;
	
	top: 0;
	display:none;
	grid-template-columns: repeat(3, 64px); 
	grid-template-rows: auto;
	gap: 4px;
	justify-items: start; 
	align-items: end;
	justify-content: space-between;
}

/* BEGIN - Navigation */
#nav-container {
	pointer-events: none;
	justify-self:left;
}

#nav-container .bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	visibility: hidden;
	opacity: 0;
	transition: .3s;
	background: var(--background-color);
	z-index:98;
}

#nav-container:focus-within .bg {
	visibility: visible;
	opacity: .6;
}

#nav-container * {
	visibility: visible;
}

/*** BEGIN - Hamburger */
#hamburger {
	position:relative;
	z-index: 100;/* above .bg */
	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

.icon-bar {
	display: block;
	width: 80%;
	margin: 0 10%;
	height: 3px;
	background: var(--link-color);
	transition: .3s;
}

.icon-bar + .icon-bar { margin-top: 5px; }

#nav-container:focus-within .icon-bar:nth-of-type(1) { transform: translate3d(0,8px,0) rotate(45deg); }
#nav-container:focus-within .icon-bar:nth-of-type(2) { opacity: 0; }
#nav-container:focus-within .icon-bar:nth-of-type(3) { transform: translate3d(0,-8px,0) rotate(-45deg); }
/*** END - Hamburger */

#nav-content {
	margin-top: 56px;
	padding: 20px 12px 20px 12px;
	width: 90%;
	max-width: 300px;
	position: absolute;
	top: 0;
	left: 0;
	min-height: calc(100vh - 40px - 59px);
	background: var(--sub-background-color);
	pointer-events: auto;
	-webkit-tap-highlight-color: var(--background-color);
	contain: paint;
	z-index:99;
	display:none;
}

#nav-container:focus-within #nav-content {
	display:block;/* diplay:none prevents clicking accedentally and will make transitions impossible */
}

#nav-options {
	display:grid;	
	grid-template-columns: 1fr; 
	grid-template-rows: auto;
	justify-items: start; 
	align-items: center;
	gap: 8px;
}

/* Buttons */
#nav-head button { font-size:var(--font-size-menu-button); }
#nav-head button.nav-head-forecast { width: 61px; }
#nav-head button.nav-head-forecast i::before { 
	background-image: url('https://cdn.aurorascout.com/assets/css/fox-logo-inactive.svg');
	display: inline-block;
	width: 61px;
	height: 48px;
	background-size: 61px 48px;
	content: "";
}

#nav-options button   {
	width:100%;
	cursor:pointer;
	pointer-events: auto;
	color:var(--link-color);
	text-decoration:none;
}

#nav-options button {
	display:grid;
	grid-template-columns: calc(2 * var(--font-size-menu-button)) auto;
	align-items: center;
	justify-items:left;
}

#nav-options button i {
	grid-column: 1 / 2;
	justify-self:center;
	pointer-events: none;
}   

#nav-options button span { 
	grid-column: 2 / 3;
	line-height:calc(2 * var(--font-size-menu-item));
	font-size: var(--font-size-menu-item);
	margin-left: 16px;
}

/* active button states */
body.display-weather 	button.nav-head-weather i,  
body.display-location 	button.nav-head-location i, 
body.display-info 		button.nav-head-info i,
body.display-settings 	button.nav-head-settings i { 
	color: var(--logo-lightblue-color) !important;
}

body.display-forecast 	button.nav-head-forecast i::before { 
	background-image: url('https://cdn.aurorascout.com/assets/css/fox-logo.svg') !important;
}

/* END - Navigation */