/*
# ------------------------------------------------------------------------
# Extensions for Joomla 3.x
# ------------------------------------------------------------------------
# Copyright (C) 2015 Opensource Technologies.com. All Rights Reserved.
# @license - PHP files are GNU/GPL V2.
# Author: Opensource Technologies
# Websites:  http://www.opensourcetechnologies.com 
# Date created: 20/07/2015
# ------------------------------------------------------------------------
*/

/*** ESSENTIAL STYLES ***/
#ostmenu .sf-menu, #ostmenu .sf-menu * {
	margin: 0;
	padding: 0;
	list-style: none;
}
#ostmenu .sf-menu li {
	position: relative;
}
#ostmenu .sf-menu ul {
	position: absolute;
	display: none;
	top: 100%;
	left: 0;
	z-index: 99;
}
#ostmenu .sf-menu > li {
	float: left;
}
#ostmenu .sf-menu li:hover > ul,
#ostmenu .sf-menu li.sfHover > ul {
	display: block;
}

#ostmenu .sf-menu a {
	display: block;
	position: relative;
}
#ostmenu .sf-menu ul ul {
	top: 0;
	left: 100%;
}


/*** DEMO SKIN ***/
#ostmenu{
       float:left;
       width:100%;
       border-radius: 3px;
       background: #2f2f2f;
       margin-bottom: 1em;
}

#ostmenu ul li:first-child {
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
}

#ostmenu ul li:last-child{
    border-radius: 0 0 3px 3px;
}

#ostmenu ul ul li:first-child {
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
}

#ostmenu ul ul li:last-child{
    border-radius: 0 0 0px 0px;
}

#ostmenu .sf-menu {
	float: left;
	margin-bottom: 0em;
}
#ostmenu .sf-menu ul {
	box-shadow: 2px 2px 6px rgba(0,0,0,.2);
        border:0px;
        border-radius:0px;
	min-width: 12em; /* allow long menu items to determine submenu width */
	*width: 12em; /* no auto sub width for IE7, see white-space comment below */
}
#ostmenu .sf-menu ul::before{display:none;}
#ostmenu .sf-menu ul::after{display:none;}
#ostmenu .sf-menu a {
	border-right: 1px solid #222222;
	border-top: 0px solid #222222; /* fallback colour must use full shorthand */
	border-top: 0px solid rgba(34,34,34,.5);
	padding: .75em 1em;
	text-decoration: none;
	zoom: 1; /* IE7 */
}
#ostmenu .sf-menu ul a {
	border-right: 1px solid #222222;
	border-top: 1px solid #222222; /* fallback colour must use full shorthand */
	border-top: 1px solid rgba(34,34,34,.5);
	padding: .75em 1em;
	text-decoration: none;
	zoom: 1; /* IE7 */
}
#ostmenu .sf-menu a {
	color: #fff;
}
#ostmenu .sf-menu a:hover, #ostmenu .sf-menu a:focus {
    background: none;
}
#ostmenu .sf-menu li {
	background: #2f2f2f;
	white-space: nowrap; /* no need for Supersubs plugin */
	*white-space: normal; /* ...unless you support IE7 (let it wrap) */
	-webkit-transition: background .2s;
	transition: background .2s;
}
#ostmenu .sf-menu ul li {
	background: #4f4f4f;
}
#ostmenu .sf-menu ul ul li {
	background: #5f5f5f;
}
#ostmenu .sf-menu li:hover,
#ostmenu .sf-menu li.sfHover {
	background: #3f3f3f;
	/* only transition out, not in */
	-webkit-transition: none;
	transition: none;
}

/*** arrows (for all except IE7) **/
#ostmenu .sf-arrows .sf-with-ul {
	padding-right: 2.5em;
	*padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */
}
/* styling for both css and generated arrows */
#ostmenu .sf-arrows .sf-with-ul:after {
	content: '';
	position: absolute;
	top: 50%;
	right: 1em;
	margin-top: -3px;
	height: 0;
	width: 0;
	/* order of following 3 rules important for fallbacks to work */
	border: 5px solid transparent;
	border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
	border-top-color: rgba(255,255,255,.5);
}
#ostmenu .sf-arrows > li > .sf-with-ul:focus:after,
#ostmenu .sf-arrows > li:hover > .sf-with-ul:after,
#ostmenu .sf-arrows > .sfHover > .sf-with-ul:after {
	border-top-color: white; /* IE8 fallback colour */
}
/* styling for right-facing arrows */
#ostmenu .sf-arrows ul .sf-with-ul:after {
	margin-top: -5px;
	margin-right: -3px;
	border-color: transparent;
	border-left-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
	border-left-color: rgba(255,255,255,.5);
}
#ostmenu .sf-arrows ul li > .sf-with-ul:focus:after,
#ostmenu .sf-arrows ul li:hover > .sf-with-ul:after,
#ostmenu .sf-arrows ul .sfHover > .sf-with-ul:after {
	border-left-color: white;
}
#ostmenu #menu-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  z-index: 1;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#ostmenu #menu-button {
    display: none;
	background:#1f1f1f;
}


/* START BY PIXEL DIALOG */

#ostmenu .sf-menu li.current, #ostmenu .sf-menu li.active { background-color: #3A6B41; }

/* END BY PIXEL DIALOG */



/*** responsive css ***/


@media all and (max-width: 768px){
	#ostmenu .sf-menu {
	   width:100%;
	   display:none;
	 }
	#ostmenu .sf-menu li {
		width:100%;
	}
	#ostmenu .sf-menu ul {
		position: relative;
		width: 100%;
		box-shadow:none;
	}

	#ostmenu .sf-menu ul ul {
		left: 0%;
	}
	
	
	
	/* START BY PIXEL DIALOG */
	#ostmenu .sf-menu ul li a {
		padding-left: 25px;
	}
	#ostmenu .sf-menu ul ul li a {
		padding-left: 50px;
	}
	/* END BY PIXEL DIALOG */
	
	
	
	
	
        #ostmenu .sf-menu a {
	        border-right: 0px solid #222222;
	        border-top: 1px solid #222222; /* fallback colour must use full shorthand */
	        border-top: 1px solid rgba(34,34,34,.5);
        }

	/* styling for right-facing arrows */
	.sf-arrows ul .sf-with-ul:after {
		margin-top: -5px;
		margin-right: -0px;
		border-color: transparent;
		border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
		border-top-color: rgba(255,255,255,.5);
	}
	
	.sf-arrows ul li > .sf-with-ul:focus:after,
	.sf-arrows ul li:hover > .sf-with-ul:after,
	.sf-arrows ul .sfHover > .sf-with-ul:after {
		border-left-color: transparent;
		border-top-color: white;
	}

	#ostmenu #menu-button {
		display: block;
		padding: 17px;
		color: #fff;
		cursor: pointer;
		font-size: 12px;
		text-transform: uppercase;
		font-weight: 700;
		/*background: #259846;*/
	  }
	  #ostmenu #menu-button:after {
		position: absolute;
		top: 22px;
		right: 17px;
		display: block;
		height: 4px;
		width: 20px;
		border-top: 2px solid #fff;
		border-bottom: 2px solid #fff;
		content: '';
	  }
	  #ostmenu #menu-button:before {
		position: absolute;
		top: 16px;
		right: 17px;
		display: block;
		height: 2px;
		width: 20px;
		background: #fff;
		content: '';
	  }
	  #ostmenu #menu-button.menu-opened:after {
		top: 23px;
		border: 0;
		height: 2px;
		width: 15px;
		background: #ffffff;
		-webkit-transform: rotate(45deg);
		-moz-transform: rotate(45deg);
		-ms-transform: rotate(45deg);
		-o-transform: rotate(45deg);
		transform: rotate(45deg);
	  }
	  #ostmenu #menu-button.menu-opened:before {
		top: 23px;
		background: #ffffff;
		width: 15px;
		-webkit-transform: rotate(-45deg);
		-moz-transform: rotate(-45deg);
		-ms-transform: rotate(-45deg);
		-o-transform: rotate(-45deg);
		transform: rotate(-45deg);
	  }
 }

