body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.menu-container {
  position: relative;
  height: 100%;
  overflow: hidden; /* Ensure menu does not overflow the container */
  z-index:99999999999999999
}

.menu {
  position: fixed;
  top: 0;
  left: -100%; /* Initially position the menu outside the viewport */
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: left 0.3s ease; /* Use left property for transition */
  overflow-y:scroll;
}

.menu.show-menu {
  left: 0; /* Slide the menu into view when it has the 'show-menu' class */
}

.menu-inner {
  width: 300px; /* Set width of main menu */
  position:relative; left:0px;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chatsubmenu{
  display: none;
  position: absolute;
  top: -100%;
  left: 100%; /* Position chatsubmenu to the right of the main menu */
  width: 100%;
  background-color: #333;
  transition: left 0.3s ease; /* Use left property for transition */ overflow-y: auto; min-height:100%;border-left: solid 2px #c85832;
}

.menu .mainmenu > li {display: block; position: relative; margin: 0; border-bottom: 1px solid #242424; text-decoration: none; font-size: 18px; font-weight: 300; color: #c0c0c0;}
.menu .mainmenu > li a {background: #333; padding: 18px 20px 18px 12px;}

.menu .mainmenu > li a:hover, .menu .mainmenu li:hover > .chatsubmenu,
.menu .mainmenu > li:focus-within > .chatsubmenu {display: block; background: #333 !important;}

.menu .mainmenu > li a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.menu .mainmenu .chatsubmenu > li {display: inline-block; width:100%; margin: 0; text-decoration: none; font-size: 13px; font-weight: normal; background: none;}
.menu .mainmenu .chatsubmenu > li a {background: transparent; padding: 8px 20px 8px 15px; margin:0}
.menu .mainmenu .chatsubmenu > li a:hover {background: #272727 !important;}

#menu-btn {
  display: block; /* Show the open menu button */
  position: absolute;
  top: -15px;
  left: 0;
  background: transparent;
  border: none;
  color: #000;
  font-size: 18px;
  cursor: pointer;
}

#close-btn {
  display: none; /* Initially hide the close button */
  position: absolute;
  top: 30px;
  left: 13%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index:99
}

@media (max-width: 768px) {
  .menu {
    width: 100%; /* Set width to 100% on mobile */
    height: 100%;
    justify-content: flex-start; /* Align menu items to the top */
  }
  
  .mainmenu {position:relative; top:50px}

  .menu-container {
    align-items: flex-start; /* Align items to the top */
  }
	.menulogo img {width:200px; margin:0 auto}

  .chatsubmenu {
    position: static; /* Reset submenu position */
    width: auto; /* Reset submenu width */
    background-color: transparent; /* Reset submenu background color */
    display: none; /* Hide submenu by default */
    transition: none; /* Remove transition for submenu */
  }

  .chatsubmenu.show-submenu {
    display: block; /* Show submenu when it has 'show-submenu' class */
    top: 0; /* Position submenu at the top */
    left: 0; /* Position submenu below the parent menu item on mobile */
  }

  #menu-btn {
    display: block; /* Show the open menu button on mobile */
    position: absolute;
    top: -15px;
    left: 0px;
    background: transparent;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
  }

  #close-btn {
    display: block; /* Show the close button on mobile */
    position: absolute;
    top: 30px;
    left:4.5%;
    background: transparent;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
	z-index:99;
	display:none;
  }

  .show-menu {
    left: 0; /* Ensure menu slides in from the left on mobile */
  }
}





.submenu-icon {
  float: right;
  margin-right: -10px;
}

.has-submenu:hover .submenu-icon {
  display: inline-block; /* Show the submenu icon on hover */
}

.submenu-icon::after {
  content: ">";
}

.has-submenu:hover .submenu-icon::after {
  content: "-"; /* Change the content to minus sign on hover */
}


.menulogo, .menulogo:hover {background:transparent !important; border-bottom:none !important}
.liwidth {width:100% !important}
.bgtransp {background:transparent !important;}

.orgwhitelinks:link, .orgwhitelinks:visited {color:#c85832 !important; text-decoration:none}
.orgwhitelinks:hover, .orgwhitelinks:active {color:#fff !important; text-decoration:none}

@media screen and (min-width: 768px) {	
	.menulogo, .ace-responsive-menu {position:relative; left:0px}
}

@media screen and (min-width: 1024px) {
.menulogo img {width:180px}
.menu-inner {width: 200px; /* Set width of main menu */ position:relative; left:-50px;}
.chatsubmenu {width:400px;}
.menu .mainmenu .chatsubmenu > li {width: 195px; display:inline-block; vertical-align:top}
}

@media screen and (min-width: 1280px) {
.chatsubmenu {width:550px;}
.menu .mainmenu .chatsubmenu > li {width: 270px;}
}

@media screen and (min-width: 1366px) {
.chatsubmenu {width:590px;}
.menu .mainmenu .chatsubmenu > li {width: 288px;}
}