/* Menu Bar Styles */
.menu-bar {
  position: fixed;
  top: 0px;
  display: flex;
  /*background-color: #2a2a2a;*/
  background: linear-gradient(180deg, #666666, #353535);
  padding-top: 2px;
  padding-bottom: 0px;

  padding-right: 10px;
  padding-left: 10px;

  font-family: Arial, sans-serif;
  color: #ddd;
  user-select: none;
  z-index: 10000;
  width: 100%;
  z-index: 13000;
  align-items: flex-start;
  font-size: 14px;
  column-gap: 20px;
  row-gap: 10px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* Top-Level Menu Items */
.menu-item {
  position: relative;
  /*padding: 8px 12px;*/
  cursor: pointer;
  z-index: 13000;
  border-radius: 4px 4px 0 0;
  background: none;
  color: var(--desktop_menu_bar-color);
}

.menu-item>div {
  color: var(--desktop_menu_bar-color);
}

.menu-item select {
  position: relative;
  /*padding: 8px 12px;*/
  padding-right: 12px;
  padding-left: 12px;
  padding-top: 0px;
  cursor: pointer;
  margin-right: 15px;
  z-index: 13000;
  font-size: 14px;
}

/*
.menu-item:hover {
  transform: scale(1.05);

}
*/


.menu-bar a {
  color: #ddd;
  text-decoration: none;
}

.menu-bar a:hover {
  color: #ddd;
}

/* Submenu Container */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 10px;
  left: 0;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 0 4px 4px 4px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 13000;
}

/* Submenu Items */
.submenu-item {
  position: relative !important;
  padding: 8px 15px;
  cursor: pointer;
  width: 220px;
  color: var(--desktop_menu_bar-color);
}

.submenu-item:hover {
  background-color: #444;
  /* color: #fff; */
}

/* Separator */
.separator {
  height: 1px;
  background-color: #555;
  margin: 5px 0;
}

.volume {
  background: none;
}

/* create a rounded border around selectLightMode */
.selectLightMode {
  font-size: 18px;
  /* rounded corners */
  border-radius: 4px;
  background-color: #2a2a2a;
  padding-left: 4px;
  padding-right: 4px;
}

.selectLightMode i {
  color: #ddd;
  /* padding: 8px 12px; */
  cursor: pointer;
  z-index: 13000;
  border-radius: 4px;
  padding-left: 4px;
  padding-right: 4px;
}

.selectLightMode i:hover {
  color: #fff;
  /* zoom in */
  transform: scale(1.2);
}

.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.icon.trigger {
  cursor: pointer;
  /* padding: 8px 12px; */
  /* background: #f0f0f0; */
  /* border: 1px solid #ccc; */
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  min-width: 200px;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 10px 15px;
  cursor: pointer;
}

/* light grey highlight */
.dropdown-menu li:hover {
  background: #444;
  color: #fff;
}

#menu-bar-coin-balance {
  padding-left: 2px;
}

/* Mobile menu full overlay */
.menu-bar.responsive-ready.mobile-active {
  position: fixed;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 14000;
}

.menu-bar.responsive-ready.mobile-active .menu-item {
  font-size: 24px;
  padding: 14px 0;
  width: 100%;
  border-bottom: 1px solid #333;
}

.menu-bar.responsive-ready.mobile-active .submenu {
  position: static;
  display: block !important;
  border: none;
  box-shadow: none;
  padding-left: 20px;
}

.menu-bar.responsive-ready.mobile-active .submenu-item {
  font-size: 18px;
  padding: 10px 0;
}

@media (pointer: coarse) and (hover: none) {

 .desktop-only {
    display: none;
  }

}


@media (max-width: 767px) and (pointer: coarse) and (hover: none) {

  /* Set base font size for consistency (optional, only if not already set) */
  html {
    font-size: 16px;
    /* Adjust to 14px for smaller scaling if needed */
  }

  .menu-bar {
    display: none;
    /* Unchanged, good for hiding by default */
  }

 


  .menu-bar.responsive-ready.mobile-active {
    display: flex;
    /* Unchanged */
    flex-direction: column-reverse;
    /* Unchanged */
    align-items: flex-start;
    /* Unchanged */
    justify-content: flex-end;
    /* Unchanged */
    position: fixed;
    /* Unchanged */
    top: 0;
    /* Unchanged */
    left: 0;
    /* Unchanged */
    width: 80%;
    /* Unchanged, good for mobile */
    height: 100%;
    /* Unchanged, full-height is good */
    z-index: 14000;
    /* Unchanged */
    padding: 0.75rem;
    /* ~12px, reduced from 20px */
    overflow-y: auto;
    /* Unchanged */
  }

  .menu-bar.responsive-ready.mobile-active .menu-item {
    /* Unchanged */
    width: 100%;
    /* Unchanged */
    padding: 0.75rem 0;
    /* ~12px, reduced from 16px */
    font-size: 1rem;
    /* ~16px, readable */
    border-bottom: 0.0625rem solid #333;
    /* ~1px, converted to rem */
  }

  .menu-item {
    display: flex;
    /* Unchanged */
    flex-direction: column;
    /* Unchanged */
  }

  /* Mobile-specific Menu Toggle Button */
  .mobile-menu-toggle {
    display: none;
    /* Unchanged */
    position: fixed;
    /* Unchanged */
    bottom: 0.625rem;
    /* ~10px, unchanged but in rem */
    left: 0.625rem;
    /* ~10px, unchanged but in rem */
    z-index: 55555;
    /* Unchanged */
    background: #444;
    /* Unchanged */
    color: #000;
    /* Unchanged */
    padding: 0.5rem;
    /* ~8px, reduced from 10px 14px */
    border-radius: 0.5rem;
    /* ~8px, unchanged but in rem */
    font-size: 3.5rem;
    /* ~24px, reduced from 128px */
    cursor: pointer;
    /* Unchanged */
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.4);
    /* ~2px 8px, converted to rem */
    align-items: center;
    /* Unchanged */
    width: 3rem;
    /* ~48px, touch-friendly */
    height: 3rem;
    /* ~48px, touch-friendly */
  }

  .menu-bar.responsive-ready.mobile-active .submenu {
    display: none;
    /* Unchanged */
    position: static;
    /* Unchanged */
    border: none;
    /* Unchanged */
    box-shadow: none;
    /* Unchanged */
    padding-left: 0.75rem;
    /* ~12px, reduced from 16px */
    width: 100%;
    /* Unchanged */
  }

  .menu-bar.responsive-ready.mobile-active .submenu.open {
    display: block;
    /* Unchanged */
  }

  .menu-bar.responsive-ready.mobile-active .submenu-item {
    font-size: 1rem;
    /* ~16px, readable */
    padding: 0.625rem 0;
    /* ~10px, unchanged but in rem */
    border-bottom: 0.0625rem solid #222;
    /* ~1px, converted to rem */
    width: 100%;
    /* Unchanged */
  }

  /* Optional: give submenu items some separation */
  .submenu-item:not(:last-child) {
    margin-bottom: 0.5rem;
    /* ~8px, unchanged but in rem */
  }

  .dropdown-menu {
    position: relative;
    /* Unchanged */
    top: 0;
    /* Unchanged */
    left: 0;
    /* Unchanged */
  }

  .dropdown-menu li {
    font-size: 1rem;
    /* ~16px, readable */
  }

}

/* Desktop: always visible */
@media (min-width: 1001px) {
  .menu-bar {
    display: flex !important;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

}


/* Discord or low-height media query */
@media (max-height: 480px) {

  .menu-bar {
    padding-left: 90px;
    background: rgba(60, 60, 60, 0.9);

  }

}

/* Container styling */
.volume {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Slider container appears below the icon */
.volumeSliderContainer {
  display: none;
  position: absolute;
  left: 0px;
  top: 24px;
  height: 80px;
  width: 190px;
  /* below the icon */
  background-color: var(--desktop_menu_bar-color);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

/* Slider width */
#toggleVolumeSlider {
  width: 170px;
  margin: 0 auto;
  top: 20px;
}

.volume-enabled-checkbox {
  position: absolute;
  top: 50px;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
}

#toggleVolumeSlider.ui-slider {
  height: 6px;
  /* thinner track */
}

/* Progress (white) */
.volumeSliderContainer .ui-slider-horizontal .ui-slider-range {
  background: #fff;
  border-radius: 2px;
}

/* Tooltip BELOW the slider */
.volumeSliderContainer .slider-value {
  display: none;
  position: absolute;
  top: 22px;
  /* place below track */
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

/*
.volumeSliderContainer .ui-slider-handle:hover,
.volumeSliderContainer .ui-slider-handle:focus {
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
}
*/

/* Handle (white knob with shadow) */
.volumeSliderContainer .ui-slider-handle {
  outline: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 50%;
}