.contextmenu {
  position: fixed;
  width: 80px;
  padding: 2px;
  z-index: 99999;
}

/* Override modal's display:none when contextmenu is shown via JS */
.contextmenu.modal {
  /* display is set by JS, z-index should be highest */
  z-index: 99999;
}

.contextmenu>.menu-header {
  background-image: url("/png/bg2.png");
  cursor: auto;
  text-align: center;
  padding: 2px;
}

.contextmenu button {
  width: 100%;
  padding: 2px;
  border: 0px;
  border-radius: 0px;
  margin: 0px;
}

/* The menu of a player's message in the chat, as Minibia's (r182): a dark panel, the name as its title, Ignore in red */
#chat-entry-menu {
  width: max-content;
  min-width: 150px;
  padding: 4px 0;
  background: #1f1f1f;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

#chat-entry-menu > .menu-header {
  background: none;
  color: #c8c8c8;
  font-weight: bold;
  text-align: left;
  padding: 3px 14px 5px;
  border-bottom: 1px solid #333;
  margin-bottom: 3px;
}

#chat-entry-menu button {
  display: block;
  white-space: nowrap;
  text-align: left;
  padding: 4px 14px;
  background: none;
  color: #e6e6e6;
  font-weight: bold;
}

#chat-entry-menu button:hover {
  background: #2f2f2f;
}

#chat-entry-menu button.menu-danger {
  color: #e8836f;
}

#chat-entry-menu .menu-separator {
  border: 0;
  border-top: 1px solid #3a3a3a;
  margin: 4px 10px;
}

/* The menu of the game screen: one option a line, as wide as its longest one ("Message to <name>") */
#screen-menu {
  width: max-content;
  min-width: 80px;
}

#screen-menu button {
  display: block;
  white-space: nowrap;
  text-align: left;
}