@import "./constants.css";

#hamburger {
	display: none;
}

.topnav, .topnav #mainLinks {
	font-family: "Open Sans", Arial, Helvetica;
	margin: 0px 0px 20px 0px; /* was 10px.... */
	padding: 3px;
}

.topnav a:hover {
	background-color: var(--white);
	color: var(--didblue);
}

.topnav #mainLinks {
	display:inline-block;
/* 
	position: absolute;
	top: 0px;
	right: 0px;
 */
}

/* Style navigation menu links */
.topnav a {
	color: var(--white);
	background: var(--didblue);
	padding: 12px 14px;
	text-decoration: none;
	font-size: 17px;
	overflow: hidden;	
	border-radius: 0rem;
	border: 2px solid var(--didblue);
}

/* Style the active link (or home/logo) */
.active {
	background-color: var(--didblue);
	color: var(--white);
}

@media screen and (min-width: 600px) {
	.topnav {
		position: fixed ;  /* was absolute */
		width: 100%;
		height: 58px;
		background: linear-gradient(0deg, #eee, #fff);
		top: 0px;
		left: 0px;
		padding-top:10px;
		z-index: 101;
	}
	.topnav #mainLinks {
		position: fixed;
		top: 0px;
		right: 0px;
		padding-top:10px;
	}
	.topnav a {
		position:relative;
		top: 3px;
	}
}

@media screen and (max-width: 600px) {
	#hamburger {
		display:block;
	}
		
	.topnav, .topnav #mainLinks {
		margin: 0px 0px 20px 0px;
	}

	/* Hide the links inside the navigation menu (except for logo/home) */
	.topnav #mainLinks {
		display: none;
		height: 100%;
		left: 0px;
	}
	
	/* Style the navigation menu */
	.topnav {
		position: relative; 
		overflow: hidden;
		background-color: var(--didblue);
	}
	
	/* Style navigation menu links */
	.topnav a {
		display: block;
		color: 	var(--white);
		background: var(--didblue);		
	}
	
	/* style the hamburger menu	*/
	.topnav a.icon {
		position: absolute;
		display: block;
		right: 0px;
		top: 5px;
		color: var(--white);
	}
	.topnav a.icon:hover {
		color: var(--didblue);
	}	
}