.navbar-main1 {
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border: 0;
    position: relative;
    z-index: 999;
    bottom: -22px;
    -webkit-transition: padding .2s ease-in-out;
    transition: padding .2s ease-in-out;
}


.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
/* Initially: nav is normal flow, 90% width, transparent */
nav.main-nav {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: transparent;
    position: relative;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Initially hide logo */
#logo {
    display: none;
    padding: 0 130px;
    float: left;
    font-size: 22px;
    font-weight: 700;
    line-height: 60px;
    color: #fff;
    transition: all 0.3s ease;
}

/* Clear floats */
nav.main-nav:after {
    content: "";
    display: table;
    clear: both;
}

/* On scroll: fix to top, full width, solid background, show logo */
nav.main-nav.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 40px 0px 0px;
}

/* Show logo only when scrolled */
nav.main-nav.scrolled #logo {
    display: block;
    color: #000; /* Make it visible on white background */
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav.main-nav ul {
	float: left;
	padding:0; 
	margin:0 0 0 0px;
	list-style: none;
	position: relative;
	z-index: 999;
	
	}
	
/* Positioning the navigation items inline */
nav.main-nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: none;
	}

/* Styling the links */
nav.main-nav a {
	display:block;
	padding:14px 20px;	
	color:#000;
	font-size:18px;
	text-decoration:none;
}


nav .main-nav ul li ul li:hover { background: #000000; }

/* Background color change on Hover */
nav.main-nav a:hover { 
	background-color: none; 
	color:#f38500;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav.main-nav ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	top: 57px; 

}

nav.main-nav ul ul li a {
background:#000000;
    border-bottom: 1px solid #f38500;
	color:#fff;
	font-size:20px;
}
nav.main-nav ul ul li a:hover{
background:#f38500;	
color:#fff;
}
	
/* Display Dropdowns on Hover */
nav.main-nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav.main-nav ul ul li {
	width:210px;
	float:none;
	display:list-item;
	position: relative;
}

/* 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.
*/
nav.main-nav ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:209px; 
	width:350px;
}

	
/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  ' +'; float:right; }
li > a:only-child:after { content: ''; }


/* Media Queries
--------------------------------------------- */

@media all and (max-width : 768px) {

	#logo {
		display: none;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	nav.main-nav {
		margin: 0;
	}
	
	

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		background-color: #000000;
		padding:14px 20px;	
		color:#FFF;
		font-size:17px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		background-color: #000000;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav.main-nav ul li {
		display: block;
		width: 100%;
		}

	nav.main-nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav.main-nav ul ul ul a {
		padding: 0 80px;
	}

	nav.main-nav a:hover,
 	nav.main-nav ul ul ul a {
		background-color: #000000;
	}
  
	nav.main-nav ul li ul li .toggle,
	nav.main-nav ul ul a,
  nav.main-nav ul ul ul a{
		padding:14px 20px;	
		color:#FFF;
		font-size:17px; 
	}
  
  
	nav.main-nav ul li ul li .toggle,
	nav.main-nav ul ul a {
		background-color: #212121; 
	}

	/* Hide Dropdowns by Default */
	nav.main-nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* has to be the same number as the "line-height" of "nav a" */
	}
		
	/* Hide menus on hover */
	nav.main-nav ul ul li:hover > ul,
	nav.main-nav ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	nav.main-nav ul ul li {
		display: block;
		width: 100%;
	}

	nav.main-nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */ 

	}

}

@media all and (max-width : 330px) {

	nav.main-nav ul li {
		display:block;
		width: 94%;
	}
	
	
	#logo {
		display: none;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

}