/*--------------------------------------------------------------
# Base and Variables
--------------------------------------------------------------*/
:root {
  --amm-bg-color: #000;
  --amm-font-color: #fff;
  --amm-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --amm-transition-speed: 0.4s;
  --amm-easing: cubic-bezier(0.65, 0.05, 0.36, 1);
}

/*--------------------------------------------------------------
# Trigger & Container
--------------------------------------------------------------*/
.amm-trigger-container {
  position: fixed;
  top: 10px;
  right: 15px;
  z-index: 1001;
}

#amm-trigger {
  font-size: 24px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

.amm-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--amm-bg-color);
  color: var(--amm-font-color);
  font-family: var(--amm-font-family);
  transform: translateX(-100%);
  transition: transform var(--amm-transition-speed) var(--amm-easing);
  z-index: 1000;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.amm-container.is-open {
  transform: translateX(0);
}

.amm-header {
  padding: 10px 15px;
  text-align: right;
}

#amm-close {
  font-size: 30px;
  background: none;
  border: none;
  color: var(--amm-font-color);
  cursor: pointer;
}

/*--------------------------------------------------------------
# Menu Structure & Items
--------------------------------------------------------------*/
.amm-menu, .amm-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50px; /* Adjust based on header height */
  left: 0;
  transform: translateX(0);
  transition: transform var(--amm-transition-speed) var(--amm-easing);
}

.amm-menu ul.sub-menu {
  transform: translateX(100%); /* Submenus are off-screen */
  background-color: var(--amm-bg-color);
  top: 0;
}

/* Sliding animation classes */
.amm-menu.is-sliding-out {
  transform: translateX(-100%);
}

.amm-menu ul.sub-menu.is-active {
  transform: translateX(0);
  z-index: 10;
}


/* Menu Items */
.amm-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amm-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--amm-font-color);
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

.amm-menu .menu-item-has-children > a::after {
  content: '>';
  position: absolute;
  right: 20px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
}

/* Back button */
.amm-back-button {
  display: block;
  padding: 15px 20px;
  background: none;
  border: none;
  color: var(--amm-font-color);
  font-size: 18px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.amm-back-button::before {
  content: '<';
  margin-right: 10px;
  font-weight: bold;
}

/* Icon styling */
.amm-menu-title {
  margin-left: 10px;
}