/*
 * 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: left;
  margin: 0;
  padding: 0;
}
.rmlmenu li {
  display: inline-block;
  position: relative;
  font-weight: bold;
  width: 140px;
  color: #650360;
  line-height: 1.0em;
  background: #FCD299;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  margin:  0;
  padding: 0;
  border-bottom: 2px solid white;
  border-right : 2px solid white;
  /* 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: 10px;
}
.rmlmenuh,
.rmlmenu li a {
  color: #650360;
  text-decoration: none;
  padding: 10px 10px 10px 10px;
  display: block;
  border-top : 2px solid white;
  border-left: 2px solid white;
  -webkit-transition: all 0.5s ease-in-out 0s;
  -moz-transition: all 0.5s ease-in-out 0s;
  -o-transition: all 0.5s ease-in-out 0s;
  transition: all 0.5s ease-in-out 0s;
  font-size: 1.0em; /* The size of the text of the top menuitems */
}
.rmlmenu li a:hover,
.rmlmenuh:hover, 
.rmlmenu li:hover > a {
  /* Style when one hovers over a top menuitem */
  font-weight: bold;
  background: #FAA634;
  color: #650360;
}
.rmlmenu ul {
  display: none;
  margin: 0;
  padding: 0;
  width: 140px;
  position: absolute;
  top: 35px; /* Top position of 1st level submenu (should match with height of {rmlmenu li a} */
  left: 0;
  z-index: 50;
  background: #fff;
}
.rmlmenu ul li {
  display:block;
  float:none;
  background: #FCD299;
  margin: 0;
  padding: 0;
}
.rmlmenu ul li a {
  /* All child menuitems that are not selected */
  display: block;
  background: #FCD299;
  color: #650360;
  font-size: 1.0em;
  border: 0; 
  border-top : 2px solid white;
  border-left: 2px solid white;
}
.rmlmenu ul li a:not(:only-child) {
  /* All child menuitems with submenu(s) that are not selected */
  background:#FCD299 url(./light-gray-arrow-right.png) no-repeat right center;
}
.rmlmenu ul li a:hover,
.rmlmenu ul li:hover > a
{
  background: #FAA634;
  color: #650360;
}
.rmlmenu ul li:hover > a:not(:only-child) {
  /* color: #fff; */
  background: #FCD299 url(./white-arrow-right.png) no-repeat right center;
}
.rmlmenu li:hover > ul {
  display:block;
}
.rmlmenu ul ul {
  left: 140px;
  top: 0;
}

/*
 * The following styles are used when the navigation menu is reduced to a popup menu.
 * Through javascript the navigation container is assigned class 'rmlPopupPanel' and the
 * main <ul> tag is assigned class 'rmlpopupmenu'.
 */
.rmlPopupPanel {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  /* The background color and possible border of the whole popup: */
  background: #FCD299;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid white;
}
.rmlPopupPanel h3 {
  margin: 0;
  padding: 10px;
  /* font-family: 'Ubuntu', sans-serif; */
  font-weight: bold;
  font-size: 1.0em;
  /* The background color, text color and possible bottom border of the top 'Menu' titel */
  background: #faa634;
  color: #650350; 
  border-bottom: 2px solid white;
}

.rmlMenuText {
}

.rmlpopupmenu {
  display: block;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid white;
  /* The width of the popup */
  width: 140px;
}
.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: 10px;
  -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;
  /* The text color, background color and bottom border of any popup menuitem that is not selected */
  color: #650350;
  /* font-family: 'Ubuntu', sans-serif; */
  font-weight: bold;
  font-size: 1.0em;
  background: #FCD299;
  border-bottom: 2px solid white;
}
.rmlpopupmenu li a:not(:only-child) {
  /* The color here must match with the background color before */
  background: #FCD299 url(./arrow-right.png) no-repeat right center;
}
.rmlpopupmenu li.rmlm-back a {
  /* The background color, text color and possible bottom border of a 'Back' popup menuitem */
  background: #FAA634;
  color: #fff; 
  border-bottom: 2px solid white;
}
.no-touch .rmlpopupmenu li:hover > a,
.rmlpopupmenu li.touchStart > a {
   /* The background color and text color of a popup menuitem when hovering over it */
  background: #FAA634;
}
.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-image: url(./arrow-right.png) no-repeat right center; */
  background: #FAA634;
}
.rmlpopupmenu ul li {
  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: left;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.rmlpopupmenu-button span {
  color: #650350;
  font-size: 1.0em;
  display: block;
  padding: 10px;
  width: 60px;
}
.no-touch .rmlpopupmenu-button span:hover {
  background: #FAA634;
}
.rmlpopupmenu-button span span {
  padding: 0;
  width: 40px;
  height: 6px;
  margin: 4px 0 0 0;
  float: none;
  background: #FCD299;
}

/*
 * The following styles handle a popup menu button that contains text
 */
.rmlpopupmenuButtonText {
  margin: 0;
  padding: 10px;
  line-height: 1.0em;
  font-family: "Ubuntu", sans-serif;
  color: #650350;
  background: #FCD299;
  vertical-align: top;
  border: none;
  text-align: center;
  font-weight: bold; 
  border: 2px solid white;
  cursor: pointer;
}
.rmlpopupmenuButtonText:hover,
.rmlpopupmenuButtonText.touchStart
{
  background: #faa634;
}


/*
 * 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: 600px) {
  .rmlmenu {
    display: block;
  }
  .rmlpopupmenuButton,
  .rmlpopupmenuButtonText {
    display: none;
  }
}

