
:root {
  --brand: #8e64fe;
  --menu-text: #fff;
}
body {
  font-family: "Outfit", sans-serif;
}
a.branding {
  display: block;
  flex-shrink: 1;
  flex-basis: 300px;
}
a.branding img {
  height: auto;
  width: 100%;
  margin-bottom: 8px;
}
#audio-toggle.hidden {
  display: none;
}

#button-group {
  font-family: "Outfit", sans-serif;
  position: fixed;
  top: 1em;
  left: 1em;
  z-index: 9999;
}
#audio-toggle {
  position: fixed;
  top: 1em;
  right: 1em;
  z-index: 9999;
  /* Remove default styles */
  background: transparent; /* No background color */
  border: none; /* No border */
  padding: 0; /* No padding around the image */
  outline: none; /* No focus outline */
  cursor: pointer; /* Show pointer cursor */
}
#gyro-toggle {
  display: none;
}
#gyro-toggle {
  font-family: "Outfit", sans-serif;
  background-color: var(--brand);
  color: var(--menu-text);
  border: none;
  border-radius: 5px;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
}
#audio-desc-link {
  font-family: "Outfit", sans-serif;
  background-color: var(--brand);
  color: var(--menu-text);
  border: none;
  border-radius: 5px;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
}
.a-dialog-container {
  background: rgba(0, 0, 0, 0.9);
  /* color: white !important; */
}
.a-dialog-allow-button {
  background-color: rgba(0, 0, 0, 0.9);
  color: white !important;
}
.a-dialog-deny-button {
  background-color: rgba(0, 0, 0, 0.9);
  color: white !important;
}
.a-dialog-ok-button {
  background-color: rgba(0, 0, 0, 0.9);
  color: white !important;
}
#app-menu {
  position: fixed;
  top: 1em;
  left: 1em;
  right: 1em;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1em;
  font-family: "Outfit", sans-serif;
}

#menu-list button[hidden] {
  display: none;
}

#menu-button {
  font-family: "Outfit", sans-serif;
  font-size: large;
  background: var(--brand);
  color: var(--menu-text);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  flex-shrink: 0;
  background-size: 80% auto;
  background-position: center;
  background-repeat: no-repeat;
  width: 2.1em;
  height: 2.1em;
}
#menu-button[aria-expanded="false"] {
  background-image: url('img/menu-open.svg');
}
#menu-button[aria-expanded="true"] {
  background-image: url('img/menu-close.svg');
}

#menu-list[hidden] {
  display: none;
}

#menu-list {
  position: absolute;
  margin-top: 8px;
  right: 0;
  top: 100%;
  min-width: 220px;
  padding: 8px;
  background: var(--brand);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

#menu-list button,
#menu-list a {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--menu-text);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1em; /* space between icon and text */
  width: 100%;
  box-sizing: border-box;
}

#menu-list i {
  font-size: 1.2em; /* make icon size match text size */
}

#menu-list button:hover,
#menu-list a:hover,
#menu-list button:focus,
#menu-list a:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.menu-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 6px 0;
}

/* If you left the old buttons in the DOM, hide them just in case */
#audio-toggle,
#button-group {
  display: none !important;
}
.menu-group-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.a-dialog-allow-button,
.a-dialog-deny-button {
  color: var(--menu-text) !important;
}