/* Reset default padding and margin */
*{
	margin: 0;
	padding: 0;
}

/* Just adding a font to all content */
body {
  height: 980px; /* just to demonstrate the "position: fixed;" of the navbar*/
  /* background: url(https://images.pexels.com/photos/169573/pexels-photo-169573.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260); */
  background-position: bottom left;
  background-size: cover;
  background-repeat: no-repeat;
  font: 16px/1.2;
}

/* CONTAINER */
.container {
	width: 80%; /* takes up 80% of header(parent element) */
	margin: auto; /* adjusts itself horizontally and vertically */
	overflow: hidden;/* If the content overflows its container, it will be hidden behind its border */
}

/* HEADER */
#main-header {
	background: #333;
	text-align: center;
	position: fixed; /* sticks to the top of the page, regardless of where you scroll */
	margin-bottom: 50px;
	width: 100%;
	z-index: 999; /* puts itself on top of all other elements on the page */
	padding: 20px 0;
}

/* LOGO - the h1 */
#logo {
	width: 80%;
	color: #fff;
	align-self: center;
	padding: 2em 0;
}

#logo span {
	color: #a98542;
}

#logo a{
	text-decoration: none;
	color: #fff;
}

#logo a:hover {
	color: #a98542;
}


/* hiding the checkbox */
.nav-toggle {
	display: none;
}

/* STYLING/POSITIONING THE HAMBURGER MENU */
.nav-toggle-label {
	position: absolute;
	top: 0;
	right: 0;
	margin-right: 2em;
	height: 100%;
	display: flex;
	align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	display: block;
	background: #fff;
	height: 3px;
	width: 30px;
	border-radius: 2px;
	position: relative;
	transition: all .5s ease-in-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
	content: '';
	position: absolute;
}

.nav-toggle-label span::before {
	bottom: 10px;
}
.nav-toggle-label span::after {
	top: 10px;
}

#nav-toggle:checked ~ .nav-toggle-label span {
	background: rgba(0, 0, 0, .75); /* setting it to the same background as header so it "disappears" */
}

/* transforming the before and after span into an X */
#nav-toggle:checked ~ .nav-toggle-label span::before {
	transform: rotate(45deg);
	bottom: 0;
	background: #fff;
}

#nav-toggle:checked ~ .nav-toggle-label span::after {
	transform: rotate(-45deg);
	top: 0;
	background: #fff;
}

#menu {
	position: absolute;
	background: rgba(0, 0, 0, .9);
	text-align: center;
	top: 100%; /* puts itself directly under the preceeding relative positioned element */
	left: 0;
	width: 100%;
	transform: scale(1, 0);
	transform-origin: top; /* menu appears from the top instead if center, try and comment this out and see for yourself */
	transition: transform .4s ease-in-out;
}

#menu ul {
	list-style: none;
}

#menu li {
	padding: 20px 10px;
}

#menu a {
	text-decoration: none;
	color: #fff;
	font-size: 18px;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity .15s ease-in-out;
	font-weight: normal;
    font-family: 'Akzidenz-Grotesk Pro';
}

#menu ul li:last-child{
	background-color: rgba(153, 128, 60, .5);
}

#menu a:hover {
	color: #a98542;
}

#nav-toggle:checked + #menu {
	transform: scale(1, 1);
}
#nav-toggle:checked ~ #menu a {
	opacity: 1;
	transition: opacity .25s ease-in-out .35s;
}

/* media query with mobile first approach */
/* remove the comment around the media query to see the desktop version of the menu */
/* 

@media screen and (min-width: 800px){
	.nav-toggle-label {
		display: none;
	}

	#main-header {
		border-bottom: 2px solid #a98542;
	}

	#main-header .container {
		display: flex;
	}

	#main-header #logo {
		flex:1;
	}
	
	#menu a {
		opacity: 1;
	}

	#menu {
		all: unset;
		flex: 2;
	}

	#menu ul {
		display: flex;
		align-items: center;
		height: 100%;
	}

	#menu li {
		margin: auto;
	}
} */
