/*Checkbox input*/
#hamburger-input {
	display: none;
}

/*Hamburger Button Styling*/
/*The enire menu serves as 
the Label to the checkbox (menu) 
and is reduced to a button*/
#hamburger-menu {
	position: fixed;
	top: 10px;
	right: 15px;
	width: 25px;
	height: 25px;
	display: none;
	border: none;
	padding: 0px;
	margin: 0px;
	background: linear-gradient(
		to bottom,
		rgb(255, 255, 255),
		rgb(255, 253, 253) 20%,
		rgba(255, 255, 255, 0) 20%,
		rgba(255, 255, 255, 0) 40%,
		rgb(255, 254, 254) 40%,
		rgb(255, 255, 255) 60%,
		rgba(255, 255, 255, 0) 60%,
		rgba(255, 255, 255, 0) 80%,
		rgb(255, 255, 255) 80%,
		rgb(255, 255, 255) 100%
	);
}

/*Common Settings: Hamburger Button & Sidebar Styling*/
#hamburger-menu 
#sidenav-menu {
	visibility: hidden;
	position: fixed;
	top: 0;
	left: -300px;
	width: 290px;
	height: 100%;
	background-color: rgba(99, 0, 49, 0.897); /*20% transparency*/
	transition: 0.3s;
	padding: 20px 10px;
	box-sizing: border-box;
}

/*Translucent black overlay*/
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s, visibility 0.35s, height 0.35s;
	overflow: hidden;
	background: black;
	z-index: -1;
}

 /*MENU Heading*/
#sidenav-menu h4 {
	font-family: Noto sans;
	color: #f7f7ff;
	font-size: 1.4rem;
	font-weight: 700;
	padding-top: 0%; /*Clearing for site logo*/
}

/*No bulleted lists in menu*/
#hamburger-menu li {
	list-style-type: none;
	margin-left: -10px;
}

/*Menu will be visible only when the checkbox is ticked*/
#hamburger-input:checked + #hamburger-menu #sidenav-menu {
	visibility: visible;
	left: 0;
}
/*Overlay will be visible only when the checkbox is ticked*/
#hamburger-input:checked ~ .overlay {
	visibility: visible;
	opacity: 0.4;
}

/* Turns menu lists under nav to flex containers */
#sidenav-menu ul {
  display: flex;
  flex-direction: column; /*vertical*/
  justify-content: left;
}
/* Formatting of menu item texts */
#sidenav-menu ul li a {
  display: block;
  padding: 10px 15px !important;
  text-decoration: none;
  font-family: "PT Sans Narrow", sans-serif;
  font-size: 1rem !important;
  color: white;
  transition: background-color 0.3s;
}
/* On hover, change color of ALL descendant menu items */
#sidenav-menu ul li a:hover {
  background-color: rgb(102, 1, 52);
  color: white;
}
/* For sub-menu list positioning
about the parent list element*/
#sidenav-menu ul li {
  position: relative; 
}
/* Submenu styles */
#sidenav-menu ul li ul {
  display: none; /* hidden by default */
  flex-direction: column; /* horizontal */  
  position: absolute;
  top: 80%;  /*top aligns into parent to let cursor move into submenu */
  left: 10%; /*left aligns after parent*/
  background-color: rgb(75, 1, 38);  
  min-width: 160px;
  z-index: 1001;
}
/* Special Padding for sub-menu items */
#sidenav-menu ul li ul li a {
  padding: 10px 15px;
}
/* Show submenu on hover over main-menu items */
#sidenav-menu ul li:hover > ul {
  display: flex;
}
/* For sub2-menu list positioning
about the parent list element*/
#sidenav-menu ul li ul li {
  position: relative; 
}
/* Sub2menu styles */
#sidenav-menu ul li ul li ul {
  display: none; /* hidden by default */
  flex-direction: column; /* vertical items */
  position: absolute;
  top: 80%;  /*top aligns into parent to let cursor move into sub2menu */
  left: 10%; /*left at parent's right*/
  background-color: rgb(58, 1, 29);
  min-width: 140px;
  z-index: 1000;
}
/* Show sub2menu on hover over sub-menu items */
#sidenav-menu ul li ul li:hover > ul {
  display: flex;
}

/*RESPONSIVE DESIGN*/
/*The entire label (menu will become visible 
as inline block only on small screens*/
@media (max-width: 900px) {
	#hamburger-menu {
		display: inline;
		z-index: 9;
	}
	.overlay {
		z-index: 8;
	}
}