
#menu-icon {
  cursor: pointer;
  font-size: 1.5rem;  /* a bit Big hamburger else use 2 or 2.5 */
  padding: 10px;
  display: inline-block;
  transition: transform 0.2s;
}

#menu-icon:active {
  transform: scale(0.9);
}


 
/* Dimmed background overlay */
.alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); /* Modern blur effect */
  z-index: 999;
}

/* Mobile Alert Menu */
/* Mobile Alert Menu with Scroll Capability */
.alert-menu {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  width: 85%;
  max-width: 320px;
  
  /* SCROLLING OPTIMIZATIONS */
  max-height: 80vh;          /* Caps the menu height at 80% of the mobile viewport */
  overflow-y: auto;          /* Turns on vertical scrolling only when content overflows */
  -webkit-overflow-scrolling: touch; /* Ensures smooth, momentum scrolling on iOS Safari */
  
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

/* Optional: Make the scrollbar look clean on mobile (Chrome/Safari) */
.alert-menu::-webkit-scrollbar {
  width: 6px;
}
.alert-menu::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* Menu Header Text */
.menu-header {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #333;
  margin-bottom: 8px;
}

/* Big, Touch-Friendly Buttons */
.alert-menu .menu-btn {
  width: 100%;
  min-height:50px;
  height: 60px; /* like cancel button: Optimal size for easy thumb-tapping (min 44px) */
  padding: 0 15px;
  border: none;
  border-radius: 12px;
  background-color: #007bff;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; /* Clear legibility on all mobile displays */
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Removes the ugly blue flash on mobile webkit */
}

/* Active states provide instant visual feedback on touch */
.alert-menu .menu-btn:active {
  background-color: #0056b3;
  transform: scale(0.98); 
}

/* Cancel / Close Button styling */
.alert-menu .close-btn {
  background-color: #f1f3f5;
  color: #495057;
  margin-top: 4px;
}
.alert-menu .close-btn:active {
  background-color: #e2e6ea;
}

