:root {
    --link-color: #ecf0f1;
    --link-active-color: #f1c40f;
}
/* color: var(--link-color); */

.subnav-container {
    position:relative;
    background: #f5f5f5 url(https://www.geneva.edu/_files/images/geometry-light.png) repeat;
    padding-top: 100px;
    margin-top: -120px;
    padding: 150px 20px 30px 20px;
    z-index: 2;
}


.toggle,
[id^=drop] {
	display: none;
}

subnav { 
	margin:0;
	padding: 0;
}

#logo {
	display: block;
	padding: 0 30px;
	float: left;
	font-size:20px;
	line-height: 60px;
}

/* clear after the container. */

subnav:after {
	content:"";
	display:table;
	clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
subnav ul {
    display:flex;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	}
	
/* Positioning the subnavigation items inline */
subnav ul li {
	margin: 0px;
	display:inline-block;
    flex:1;
    text-align:center;
    transition: all .4s;
	}
subnav > ul > li:hover {
    background-color: #3d393529;
    color: #3d3935;
    border-radius: 5px;
}
/* Styling the links */

subnav > ul > li > a {
    font-size: 18px;
    color: inherit;
}
subnav > ul > li > a:hover {
    color: #3d3935;
}

subnav a {
	display:block;
	padding:14px 20px;	
	font-size:16px;
	text-decoration:none;
    transition: all .4s;
    color: inherit;
}
subnav li {
    color:#3d3935;
}
subnav li:hover {
    color: #3d3935;
}

subnav ul li ul li:hover { background: #efefef; }


subnav a:hover { 
    color:inherit;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
subnav ul ul {
	display: none;
	position: absolute; 
    -webkit-box-shadow: 1px 5px 6px 2px rgba(0,0,0,0.16);
    -moz-box-shadow: 1px 5px 6px 2px rgba(0,0,0,0.16);
    box-shadow: 1px 5px 6px 2px rgba(0,0,0,0.16);
    background-color:#ffffff;
    border-radius: 5px;
}
	
/* Display Dropdowns on Hover */
subnav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
subnav ul ul li {
	width:300px;
	float:none;
	display:list-item;
	position: relative;
    text-align: left;
}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
subnav ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "subnav ul ul li" */ 
	left:170px; 
}

	
/* Change ' +' in order to change the Dropdown symbol */
/*li > a:after { content:  ' +'; }*/

subnav li > a.downcaret:before, subnav li > label.downcaret:before {
   font-family: "Font Awesome 5 Pro";
   content: "\f078";
   display: inline-block;
   padding-right: 10px;
   margin-top:-3px;
   vertical-align: middle;
   font-weight:800;
   font-size:14px;
}
/*subnav li > a:only-child:before { content: ''; }*/


/* Media Queries
--------------------------------------------- */

@media all and (max-width : 768px) {
    .subnav-container {
    margin-top: -190px;
    padding: 150px 20px 0px 20px;
}
	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	subnav {
		margin: 0;
	}

	/* Hide the subnavigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.submenu {
		display: none;
	}

	/* Styling the toggle */
	subnav > label.toggle:active, subnav > label.toggle:focus {
    background: none; 
    }

	subnav > label.toggle:first-child {
    margin-bottom: 20px;
    }
    ul.submenu {
    margin-bottom: 30px;
    }
    
    subnav label.toggle:active, subnav label.toggle:focus {
    background: none; 
}
subnav > label.toggle:first-child {
    max-width: 200px;
}

	.toggle {
		display: block;
		padding:14px 10px;	
		font-size:18px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		/*color:#706c68;*/
	}

	/* Display Dropdown when clicked on Parent Label */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	subnav ul li {
		display: block;
		width: 100%;
		}

	subnav ul ul .toggle,
	subnav ul ul a {
		padding: 0 40px;
	}

	subnav ul ul ul a {
		padding: 0 80px;
	}

	subnav a:hover,
 	subnav ul ul ul a {
		/*background-color: #000000;*/
	}
  
	subnav ul li ul li .toggle,
	subnav ul ul a,
   subnav ul ul ul a{
		padding:14px 20px;	
		font-size:17px; 
	}
  
    subnav ul li ul li a:hover {
    color: #3d3935!important;
    }
	subnav ul li ul li .toggle,
	subnav ul ul a {
		/*background-color: #212121; */
	}

	/* Hide Dropdowns by Default */
	subnav ul ul {
		float: none;
		position:static;
		color: #ffffff;
        margin-bottom: 20px;
	}
		
	/* Hide menus on hover */
	subnav ul ul li:hover > ul,
	subnav ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	subnav ul ul li {
		display: block;
		width: 100%;
		border-bottom: 1px solid #e1e1e1;
        text-align: center;
	}

	subnav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "subnav ul ul li" */ 

	}
	subnav > ul > li {
    border-radius: 5px;
    margin-bottom: 5px;
    }
    
    subnav > ul > li{
        background-color: #3d393529;
    }

}

@media all and (max-width : 330px) {

	subnav ul li {
		display:block;
		width: 94%;
	}

}
