/*
---------------------------------------------------------------
  Note that styles you apply to the main menu items are inherited by the sub menus items too.
  If you'd like to avoid this, you could use child selectors (not supported by IE6) - for example:
  .sm-gray > li > a { ... } instead of .sm-gray a { ... }
---------------------------------------------------------------*/


/* Menu box
===================*/

	.sm-gray-vertical {
		border-right:2px solid #4C6CA9;
	}
	.sm-gray ul {
		padding:8px 0;
		background:#ffffff;
		-moz-border-radius:0 4px 4px 4px;
		-webkit-border-radius:0 4px 4px 4px;
		border-radius:0;
		-moz-box-shadow:none;
		-webkit-box-shadow:none;
		box-shadow:none;
		border: 1px solid #ccc;
	}
	.sm-gray-vertical ul,
	.sm-gray ul ul {
		-moz-border-radius:4px;
		-webkit-border-radius:4px;
		border-radius:0;
	}


/* Menu items
===================*/
	.sm-gray a {
		padding:5px 20px 9px 20px;
		color:#fff;
		font-size:16px;
		line-height:25px;
		font-family:Arial,sans-serif;
		text-decoration:none;
	}
	#main-menu.sm-gray a {
		transition: all 0.4s ease;
		-webkit-transition: all 0.4s ease;
		-moz-transition: all 0.4s ease;
	}

	.sm-gray a:hover, .sm-gray a:focus, .sm-gray a:active {
		background:#2E2A43;
		color:#F6FFED;
	}
	.sm-gray a.highlighted {
		border-bottom-color:#F6FFED !important;
		background:#F6FFED;
		color:#000;
		-moz-box-shadow:0 4px 3px rgba(0,0,0,0.25);
		-webkit-box-shadow:0 4px 3px rgba(0,0,0,0.25);
		box-shadow:0 4px 3px rgba(0,0,0,0.25);
	}
	.sm-gray-vertical a {
		-moz-border-radius:4px 0 0 4px;
		-webkit-border-radius:4px 0 0 4px;
		border-radius:4px 0 0 4px;
	}
	.sm-gray-vertical a:hover, .sm-gray-vertical a:focus, .sm-gray-vertical a:active,
	.sm-gray-vertical a.highlighted {
		border-bottom-color:#4C6CA9 !important;
		background:#4C6CA9;
		color:#F6FFED;
		-moz-box-shadow:none;
		-webkit-box-shadow:none;
		box-shadow:none;
	}
	.sm-gray ul a {
		border-bottom:0;
		padding:5px 10px;
		font-size:14px;
		line-height:normal;
		-moz-border-radius:0;
		-webkit-border-radius:0;
		border-radius:0;
		color: #777;
	}

	.sm-gray ul a:hover, .sm-gray ul a:focus, .sm-gray ul a:active,
	.sm-gray ul a.highlighted {
		background:#4C6CA9;
		color:#F6FFED;
		-moz-box-shadow:none;
		-webkit-box-shadow:none;
		box-shadow:none;
	}
	/* current items - add the class manually to some item or check the "markCurrentItem" script option */
	.sm-gray a.current, .sm-gray a.current:hover, .sm-gray a.current:focus, .sm-gray a.current:active {
		border-bottom-color:#4C6CA9;
	}
	.sm-gray-vertical a.current, .sm-gray-vertical a.current:hover, .sm-gray-vertical a.current:focus, .sm-gray-vertical a.current:active {
		border-right:2px solid #4C6CA9;
		border-bottom-color:#fff;
	}
	.sm-gray ul a.current, .sm-gray ul a.current:hover, .sm-gray ul a.current:focus, .sm-gray ul a.current:active {
		border-right:0;
		border-bottom:0;
		font-weight:bold;
	}
	.sm-gray a.has-submenu {
		padding-right:32px;
		width: 250px;
	}
	.sm-gray ul a.has-submenu {
		padding: 17px 20px 9px 20px;
	}

/* Sub menu indicators
===================*/
	.sm-gray a span.sub-arrow {
		position:absolute;
		right:17px;
		top:50%;
		margin-top:-3px;
		/* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
		width:0;
		height:0;
		overflow:hidden;
		border-top:6px solid #08E80E; /* tweak size of the arrow */
		border-left:4px dashed transparent;
		border-right:4px dashed transparent;
	}
	.sm-gray a:hover span.sub-arrow, .sm-gray a:focus span.sub-arrow, .sm-gray a:active span.sub-arrow {
		border-top-color:#F6FFED;
	}
	.sm-gray a.highlighted span.sub-arrow {
		border-top-color:#08E80E;
	}
	.sm-gray-vertical a span.sub-arrow,
 	.sm-gray ul a span.sub-arrow {
		right:15px;
		margin-top:-4px;
		border-left:6px solid #4C6CA9; /* tweak size of the arrow */
		border-top:4px dashed transparent;
		border-bottom:4px dashed transparent;
	}
	.sm-gray-vertical a:hover span.sub-arrow, .sm-gray-vertical a:focus span.sub-arrow, .sm-gray-vertical a:active span.sub-arrow,
	.sm-gray-vertical a.highlighted span.sub-arrow,
 	.sm-gray ul a:hover span.sub-arrow, .sm-gray ul a:focus span.sub-arrow, .sm-gray ul a:active span.sub-arrow,
 	.sm-gray ul a.highlighted span.sub-arrow {
		border-left-color:#F6FFED;
		border-top-color:transparent;
	}


/* Scrolling arrows containers for tall sub menus - test sub menu: "Sub test" -> "more..." in the default download package
===================*/

	.sm-gray span.scroll-up, .sm-gray span.scroll-down {
		position:absolute;
		display:none;
		visibility:hidden;
		overflow:hidden;
		background:#F6FFED;
		height:20px;
		/* width and position will be automatically set by the script */
	}
	.sm-gray span.scroll-up-arrow, .sm-gray span.scroll-down-arrow {
		position:absolute;
		top:6px;
		left:50%;
		margin-left:-8px;
		/* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
		width:0;
		height:0;
		overflow:hidden;
		border-bottom:8px solid #4C6CA9; /* tweak size of the arrow */
		border-left:6px dashed transparent;
		border-right:6px dashed transparent;
	}
	.sm-gray span.scroll-down-arrow {
		border-top:8px solid #4C6CA9; /* tweak size of the arrow */
		border-bottom:0;
	}


/*
---------------------------------------------------------------
  Responsiveness
  These will make the sub menus collapsible when the screen width is too small.
---------------------------------------------------------------*/


/* decrease horizontal main menu items left/right padding to avoid wrapping */
@media screen and (max-width: 850px) {
	.sm-gray:not(.sm-gray-vertical) > li > a {
		padding-left:12px;
		padding-right:12px;
	}
	.sm-gray:not(.sm-gray-vertical) > li > a.has-submenu {
		padding-right:24px;
	}
	.sm-gray:not(.sm-gray-vertical) a span.sub-arrow {
		right:9px;
	}
}
@media screen and (max-width: 720px) {
	.sm-gray:not(.sm-gray-vertical) > li > a {
		padding-left:6px;
		padding-right:6px;
	}
	.sm-gray:not(.sm-gray-vertical) > li > a.has-submenu {
		padding-right:18px;
	}
	.sm-gray:not(.sm-gray-vertical) a span.sub-arrow {
		right:3px;
	}
}

@media screen and (max-width: 640px) {

	/* The following will make the sub menus collapsible for small screen devices (it's not recommended editing these) */
	ul.sm-gray{width:auto !important;}
	ul.sm-gray ul{display:none;position:static !important;top:auto !important;left:auto !important;margin-left:0 !important;margin-top:0 !important;width:auto !important;min-width:0 !important;max-width:none !important;}
	ul.sm-gray>li{float:none;}
	ul.sm-gray>li>a,ul.sm-gray ul.sm-nowrap>li>a{white-space:normal;}
	ul.sm-gray iframe{display:none;}

	/* Uncomment this rule to disable completely the sub menus for small screen devices */
	/*.sm-gray ul, .sm-gray span.sub-arrow, .sm-gray iframe {
		display:none !important;
	}*/


/* Menu box
===================*/

	.sm-gray {
		border-top:2px solid #4C6CA9;
		border-bottom:2px solid #4C6CA9;
		border-right:0;
	}
	.sm-gray ul {
		border:0;
		padding:0;
		/* darken the background of the sub menus */
		background:rgba(141,184,99,0.2);
		-moz-border-radius:0 !important;
		-webkit-border-radius:0 !important;
		border-radius:0 !important;
		-moz-box-shadow:none;
		-webkit-box-shadow:none;
		box-shadow:none;
	}


/* Menu items
===================*/

	.sm-gray a {
		border:0 !important;
		padding:13px 23px !important;
		background:transparent !important;
		color:#000 !important;
		-moz-border-radius:0 !important;
		-webkit-border-radius:0 !important;
		border-radius:0 !important;
		-moz-box-shadow:none !important;
		-webkit-box-shadow:none !important;
		box-shadow:none !important;
	}
	.sm-gray a.current {
		font-weight:bold;
	}
	/* add some text indentation for the 2+ level sub menu items */
	.sm-gray ul a {
		border-left:8px solid transparent !important;
	}
	.sm-gray ul ul a {
		border-left:16px solid transparent !important;
	}
	.sm-gray ul ul ul a {
		border-left:24px solid transparent !important;
	}
	.sm-gray ul ul ul ul a {
		border-left:32px solid transparent !important;
	}
	.sm-gray ul ul ul ul ul a {
		border-left:40px solid transparent !important;
	}


/* Sub menu indicators
===================*/

	.sm-gray a span.sub-arrow {
		right:auto !important;
		margin-top:-7px !important;
		margin-left:-16px !important;
		border-left:9px solid #4C6CA9 !important; /* tweak size of the arrow */
		border-top:6px dashed transparent !important;
		border-bottom:6px dashed transparent !important;
	}
	/* Hide sub indicator when item is expanded - we enable the item link when it's expanded */
	.sm-gray a.highlighted span.sub-arrow {
		display:none !important;
	}




/* Items separators
===================*/

	.sm-gray li {
		border-top:1px solid rgba(141,184,99,0.2);
	}
	.sm-gray li:first-child {
		border-top:0;
	}

}

.mega-menu {
	width: 300px !important;
	max-width: 300px !important;
}

.openMenu {
	display: block !important; 
	z-index: 2; 
	min-width: 10em; 
	max-width: 20em; 
	top: auto !important; 
	left: 0px; 
	margin-top: 0px; 
	margin-left: 0px; 
	width: auto;
}