
/*
---------------------------------------------------------------
  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:
  .adr-main-menu > li > a { ... } instead of .adr-main-menu a { ... }
---------------------------------------------------------------*/


/* Menu box
===================*/

/* Menu items
===================*/

	.adr-main-menu { display: inline-block; } /* Required for center aligned buttons */
	.adr-main-menu li a { text-align: center; } /* Required for left aligned buttons */
	/* #myslidemenu { text-align: left; } Required for right aligned buttons */

	.adr-main-menu a  {
		/* padding: 8px 10px; */
		padding: 10px 20px;
		line-height:15px;
		text-decoration:none;
	}
	.adr-main-menu-vertical a {
		padding:9px 40px 8px 23px;
	}
	/* current items - add the class manually to some item or check the "markCurrentItem" script option */
	.adr-main-menu a.current, .adr-main-menu a.current:hover, .adr-main-menu a.current:focus, .adr-main-menu a.current:active,
	.adr-main-menu ul a.current, .adr-main-menu ul a.current:hover, .adr-main-menu ul a.current:focus, .adr-main-menu ul a.current:active {
	}

/* Sub menu indicators
===================*/

	.adr-main-menu a span.sub-arrow {
		position:absolute;
		/* top:16px; */
		bottom:0px;
		right: 5px;
		/* 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-width:5px; /* tweak size of the arrow */
		border-style:solid dashed dashed dashed;
	}
 	.adr-main-menu ul a span.sub-arrow {
		bottom:auto;
		top:50%;
		margin-top:-5px;
		right:15px;
		left:auto;
		margin-left:0;
		border-style:dashed dashed dashed solid;
	}


/* Items separators
===================*/


/* Scrolling arrows containers for tall sub menus - test sub menu: "Sub test" -> "more..." -> "more..." in the default download package
===================*/

	.adr-main-menu span.scroll-up, .adr-main-menu span.scroll-down {
		position:absolute;
		display:none;
		visibility:hidden;
		overflow:hidden;
		height:20px;
		/* width and position will be automatically set by the script */
	}
	.adr-main-menu span.scroll-up-arrow, .adr-main-menu span.scroll-down-arrow 
	{
		position:absolute;
		top:-2px;
		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-width:8px; /* tweak size of the arrow */
		border-style:dashed dashed solid dashed;
	}
	.adr-main-menu span.scroll-down-arrow 
	{
		top:6px;
		border-style:solid dashed dashed dashed;
	}



/*
---------------------------------------------------------------
  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) {
	.adr-main-menu:not(.adr-main-menu-vertical) > li > a {
		padding-left:18px;
		padding-right:18px;
	}
}
@media screen and (max-width: 750px) {
	.adr-main-menu:not(.adr-main-menu-vertical) > li > a {
		padding-left:10px;
		padding-right:10px;
	}
}
*/

@media screen and (max-width: 768px) {

	/* The following will make the sub menus collapsible for small screen devices (it's not recommended editing these) */
	ul.adr-main-menu{width:auto !important;}
	ul.adr-main-menu 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.adr-main-menu>li{float:none;}
	ul.adr-main-menu>li>a,ul.adr-main-menu ul.sm-nowrap>li>a{white-space:normal;}
	ul.adr-main-menu iframe{display:none;}

	/* Uncomment this rule to disable completely the sub menus for small screen devices */
	/*.adr-main-menu ul, .adr-main-menu span.sub-arrow, .adr-main-menu iframe {
		display:none !important;
	}*/


/* Menu box
===================*/

	.adr-main-menu ul {
		border:0;
		padding:0;
		-moz-border-radius:0;
		-webkit-border-radius:0;
		border-radius:0;
		-moz-box-shadow:none;
		-webkit-box-shadow:none;
		box-shadow:none;
	}
	.adr-main-menu ul ul {
		/* darken the background of the 2+ level sub menus and remove border rounding */
		background:rgba(100,100,100,0.1);
		-moz-border-radius:0;
		-webkit-border-radius:0;
		border-radius:0;
	}


/* Menu items
===================*/

	.adr-main-menu li a, .adr-main-menu li ul li a, div.hormenu .adr-main-menu li ul li a
	{
		margin-left:0px;
		margin-right:0px;
		line-height:15px !important;
		min-height:30px !important;
		max-height: 30px !important;
	}
	
	.adr-main-menu a {
		padding:10px 5px 10px 28px !important; /* add some additional left padding to make room for the sub indicator */
	}
	
	/* .adr-main-menu li ul li
	{
		margin-left:15px !important;
	}
	*/
	.adr-main-menu ul a {
		/* background:transparent !important; */
		text-shadow:none !important;
	}
	.adr-main-menu a.current {
	}
	/* add some text indentation for the 2+ level sub menu items */
	.adr-main-menu ul a {
		border-left:8px solid transparent;
	}
	.adr-main-menu ul ul a {
		border-left:16px solid transparent;
	}
	.adr-main-menu ul ul ul a {
		border-left:24px solid transparent;
	}
	.adr-main-menu ul ul ul ul a {
		border-left:32px solid transparent;
	}
	.adr-main-menu ul ul ul ul ul a {
		border-left:40px solid transparent;
	}
	/* round the corners of the first and last items */
	.adr-main-menu > li:first-child > a {
		-moz-border-radius:8px 8px 0 0;
		-webkit-border-radius:8px 8px 0 0;
		border-radius:8px 8px 0 0;
	}
	/* presume we have 4 levels max */
	.adr-main-menu > li:last-child > a,
	.adr-main-menu > li:last-child > ul > li:last-child > a,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > a,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a,
	.adr-main-menu > li:last-child > ul,
	.adr-main-menu > li:last-child > ul > li:last-child > ul,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul {
		-moz-border-radius:0 0 8px 8px;
		-webkit-border-radius:0 0 8px 8px;
		border-radius:0 0 8px 8px;
	}
	/* highlighted items, don't need rounding since their sub is open */
	.adr-main-menu > li:last-child > a.highlighted,
	.adr-main-menu > li:last-child > ul > li:last-child > a.highlighted,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted,
	.adr-main-menu > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted {
		-moz-border-radius:0;
		-webkit-border-radius:0;
		border-radius:0;
	}
	
	li.menubutton.showmenu.menutoggle > a {
		-moz-border-radius:8px 8px 8px 8px;
		-webkit-border-radius:8px 8px 8px 8px;
		border-radius:8px 8px 8px 8px;
	}


/* Sub menu indicators
===================*/

	.adr-main-menu a span.sub-arrow,
	.adr-main-menu ul a span.sub-arrow {
		/* top:50%; */
		top:50%;
		margin-top:-9px;
		right:auto;
		left:6px;
		margin-left:0;
		width:17px;
		height:17px;
		font:bold 16px/16px monospace !important;
		text-align:center;
		border:0;
		text-shadow:none;
		background:rgba(0,0,0,0.1);
		-moz-border-radius:100px;
		-webkit-border-radius:100px;
		border-radius:100px;
	}
	/* Hide sub indicator "+" when item is expanded - we enable the item link when it's expanded */
	.adr-main-menu a.highlighted span.sub-arrow {
		display:none !important;
	}
