﻿/*
 * The following styles are for the large-screen horizontal navigation menu.
 * Through javascript the 'main' <ul> tag will then be assigned class 'rmlmenu'.
 */

.rmlmenu {
  float: right;
  margin: 0;
  padding: 0;
}

.rmlmenu li {
  display: inline-block;
  position: relative;
  line-height: 1.5em;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  margin-bottom: 0;
  margin-left: 2px; /* The left margin of any (except the first) top menuitem */
}
.rmlmenu li:first-child {
  margin-left:0;
}
.rmlmenu li.rmlmenu-margin-xl {
  margin-left: 150px;
}
.rmlmenu li a {
  text-decoration: none;
  padding: 16px 10px 16px 10px;
  display: block;
  -webkit-transition: all 0.2s ease-in-out 0s;
  -moz-transition: all 0.2s ease-in-out 0s;
  -o-transition: all 0.2s ease-in-out 0s;
  transition: all 0.2s ease-in-out 0s;
  color: #162e5a; /* The text color of any menuitem that is not selected */
  font-size: 1.0em; /* The size of the text of the top menuitems */
}
.rmlmenu li a:hover,
.rmlmenu li:hover > a,
.rmlmenu li.hover > a {
  /* Style when one hovers over a top menuitem */
  font-weight: normal;
  color: #fff;
  background: #497981;
}
.rmlmenu ul {
  display: none;
  margin: 0;
  padding: 0;
  width: 170px; /* Width of a submenu popup */
  position: absolute;
  top: 56px; /* Top position of 1st level submenu (should match with height of {rmlmenu li a} */
  left: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #c0c0c0;
}
.rmlmenu ul li {
  display:block;
  float:none;
  background:none;
  margin: 0;
  padding: 0;
}
.rmlmenu ul li a {
  /* All child menuitems that are not selected */
  display: block;
  background: #f3f6f7;
  color: #162e5a;
  font-size: 0.95em;
  border-top: 1px solid #c0c0c0;
  border-left: 1px solid #c0c0c0;
  border-right: 1px solid #c0c0c0;
}
.rmlmenu ul li a:not(:only-child) {
  /* All child menuitems with submenu(s) that are not selected */
  background: #f3f6f7 url("src/light-gray-arrow-right.png") no-repeat 10px center;
}
.rmlmenu ul li a:hover,
.rmlmenu ul li:hover > a,
.rmlmenu ul li.hover > a
{
  color: #fff;
  background: #497981;
}
.rmlmenu ul li:hover > a:not(:only-child),
.rmlmenu ul li.hover > a:not(:only-child) {
  color: #fff;
  background: #497981 url("src/white-arrow-right.png") no-repeat 10px center;
}
.rmlmenu li:hover > ul,
.rmlmenu li.hover > ul {
  display:block;
}
.rmlmenu ul ul {
  left: 169px; /* Left position of 2nd-level popup in relation to 1st-level */
  top: 0;
}
.rmlPopupPanel {
  -webkit-overflow-scrolling: touch;
}
.rmlPopupPanel h3 {
  height: 54px;
  margin: 0;
  font-size: 19px;
  padding: 13px 15px 0px 15px;
  /* The background color, text color and possible bottom border of the top 'Menu' titel */
  background: #FFCC00;
  color: #fff;
  border-bottom: 1px solid #FFCC00;
}
.rmlPopupPanel *{
    direction: rtl;
}
.rmlMenuText {
}

.rmlpopupmenu {
  display: block;
  margin: 0;
  padding: 0;
  /* The width of the popup */
  width: 100%;
}
.rmlpopupmenu li {
  margin: 0;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
}
.rmlpopupmenu li ul {
  margin: 0;
  padding: 0;
}
.rmlpopupmenu li a {
  display: block;
  text-decoration: none;
  padding: 13px 25px 13px 10px;
  /* The text color, background color and bottom border of any popup menuitem that is not selected */
  color: #333;
  font-weight: 300;
  background-color:#F5F5F5;
  border-bottom: 1px solid #E1E1E1;
}
.rmlpopupmenu li ul li a{
  background-color: #E9E9E9!important;
  padding-right: 40px;
}
.rmlpopupmenu li ul li ul li a{
  background-color: #FFFFFF!important;
  padding-right: 60px;
}
.rmlpopupmenu li a:not(:only-child) {
  /* The color here must match with the background color before */
  background: url("/img/plusminus.png") no-repeat 20px 17px #F5F5F5;
}
.rmlpopupmenu li a.has_children {
  background-position: 20px -180px!important;
}
.no-touch .rmlpopupmenu li:hover > a,
.rmlpopupmenu li.touchStart > a {
   /* The background color and text color of a popup menuitem when hovering over it */
  color: #fff;
  background: #707070;
}
/*.no-touch .rmlpopupmenu li:hover > a:not(:only-child),
.rmlpopupmenu li.touchStart > a:not(:only-child) {
   The color here must match with the background color before 
  background: #707070 url("src/white-arrow-right.png") no-repeat 10px center;
}*/
.rmlpopupmenu ul{
  display: none;
}
/*
When a submenu is opened, we will hide all li siblings.
For that we give a class to the parent menu called "dl-subview".
We also hide the submenu link. 
The opened submenu will get the class "dl-subviewopen".
All this is done for any sub-level being entered.
*/
.rmlpopupmenu.dl-subview li,
.rmlpopupmenu.dl-subview li.dl-subviewopen > a,
.rmlpopupmenu.dl-subview li.dl-subview > a {
	display: none;
}

.rmlpopupmenu.dl-subview li.dl-subview,
.rmlpopupmenu.dl-subview li.dl-subview ul,
.rmlpopupmenu.dl-subview li.dl-subviewopen,
.rmlpopupmenu.dl-subview li.dl-subviewopen > ul,
.rmlpopupmenu.dl-subview li.dl-subviewopen > ul > li {
	display: block;
}

/*
 * The following styles handle a default popup menu button that is constructed using 3 'block' spans
 * to show a 'hamburger' style menu button
 */
.rmlpopupmenu-button {
  display: none;
  float: right;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.rmlpopupmenu-button span {
  color: #ffffff;
  font-size: 2.9em;
  display: block;
  padding: 10px 10px 14px 10px;
  width: 60px;
}
.no-touch .rmlpopupmenu-button span:hover {
}
.rmlpopupmenu-button span span {
  padding: 0;
  width: 40px;
  height: 6px;
  margin: 4px 0 0 0;
  float: none;
  background: #333333;
}

/*
 * The following styles handle a popup menu button that contains text
 */
.rmlpopupmenuButtonText {
  margin: 10px 0 0 0;
  padding: 0.6em 0.8em 0.7em 0.8em;
  line-height: 1.0em;
  color: #fff;
  background: #333;
  vertical-align: top;
  border: none;
  text-align: center;
  font-weight: normal;
  cursor: pointer;
}
.rmlpopupmenuButtonText:hover,
.rmlpopupmenuButtonText.touchStart
{
  color: #fff;
  background: #497981;
}



.mobile_menu_bg{
  position: fixed;
  right: -300px;
  top: 0;
  width: 300px;
  background: #F5F5F5;
  z-index: -1;
  height: 120%;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}
.mobile_menu_bg_active{
  right: 0;
}
.site_bg{
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  background: #000;
  opacity: 0.75;
  filter: alpha(opacity=75);
  z-index: -2;
  height: 120%;
  display: none;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}
.site_bg_active{
  display: block;
}
.rmlMenuText span {
    background: rgba(0, 0, 0, 0) url("/img/close2.png") no-repeat scroll center center;
    border-radius: 5px;
    float: left;
    height: 30px;
    margin-top: 0;
    width: 30px;
    cursor: pointer;
}
.mobile_menu.mobile_menu_show, .mobile_menu_bg.mobile_menu_bg_active {
    right: -300px;
}
.site_bg.site_bg_active{
  display: none;
}
.mobile_menu{
  position: absolute;
  top: 0;
  z-index: 9999999;
  right: -300px;
  width: 300px;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}
.toggle_menu {
    cursor: pointer;
    display: none;
    float: right;
    height: 30px;
    margin-right: 13px;
    margin-top: 3px;
    outline: medium none;
    overflow: hidden;
    position: relative;
    text-indent: -900em;
    width: 30px;
}
.toggle_menu::after {
    background: none repeat scroll 0 0 #2F2F2B;
    box-shadow: 0 5px 0 #2F2F2B, 0 10px 0 #2F2F2B;
    content: "";
    height: 2px;
    left: 24%;
    position: absolute;
    top: 8px;
    width: 50%;
}
/*
 * Popup menu is enabled on small screens
 */
@media only screen {
  .rmlmenu {
    display: none;
  }
  .rmlpopupmenuButton,
  .rmlpopupmenuButtonText {
    display: block;
  }
}
/*
 * Full menu is enabled on screens of 1024 pixels and higher
 */
@media only screen and (min-width: 64em) {
  .rmlmenu {
    display: block;
  }
  .rmlpopupmenuButton,
  .rmlpopupmenuButtonText {
    display: none;
  }
}


@media only screen and (max-width : 992px){
  #menu{
    display: none;
  }
  .mobile_menu.mobile_menu_show, .mobile_menu_bg.mobile_menu_bg_active {
      right: 0px;
  }
  .site_bg.site_bg_active{
    display: block;
  }
  .toggle_menu{
    display: block;
  }
}
