/*
 * NPC conversation window in the grey stone style of the Tibia 7.6 client (like css/options.css):
 * the text of the NPC in a sunken box and the answers as raised buttons below it.
 */

#npc-dialog.npc-dialog {
  width: 340px;
  padding: 0;
  color: #c0c0c0;
  font: 11px Verdana, Tahoma, Arial, sans-serif;
  border: 1px solid;
  border-color: #8a8a8a #1c1c1c #1c1c1c #8a8a8a;
  box-shadow: inset 1px 1px 0 #6c6c6c, inset -1px -1px 0 #2c2c2c, 0 0 12px rgba(0, 0, 0, 0.8);
  background-color: #575757;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, rgba(0, 0, 0, 0.03) 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.035) 0 3px, rgba(255, 255, 255, 0.02) 3px 6px);
  z-index: 29000;
}

#npc-dialog .modal-header {
  background: #474747;
  color: #dcdcdc;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 22px 3px 4px;
  text-align: center;
  border-bottom: 1px solid #1c1c1c;
  box-shadow: 0 1px 0 #6c6c6c;
  position: relative;
}

#npc-dialog .npc-dialog-close {
  position: absolute;
  right: 3px;
  top: 2px;
  width: 15px;
  height: 14px;
  padding: 0;
  font: bold 10px Verdana, sans-serif;
  line-height: 10px;
  color: #dcdcdc;
  background: #5e5e5e;
  border: 1px solid;
  border-color: #8a8a8a #1c1c1c #1c1c1c #8a8a8a;
  cursor: pointer;
}

#npc-dialog .npc-dialog-body {
  padding: 8px;
}

/* Sunken text box */
#npc-dialog .npc-dialog-text {
  min-height: 48px;
  max-height: 120px;
  overflow-y: auto;
  padding: 5px 6px;
  line-height: 15px;
  color: #5fdcff;
  background: #3a3a3a;
  border: 1px solid;
  border-color: #1c1c1c #8a8a8a #8a8a8a #1c1c1c;
  white-space: pre-line;
  user-select: text;
}

#npc-dialog .npc-dialog-text.ended {
  color: #9ab8c4;
}

#npc-dialog .npc-keyword {
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline dotted;
}

#npc-dialog .npc-keyword:hover {
  color: #ffd75f;
}

#npc-dialog .npc-dialog-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

#npc-dialog .npc-dialog-options:empty {
  display: none;
}

/* Raised grey buttons */
#npc-dialog .npc-dialog-option {
  min-width: 60px;
  padding: 2px 8px;
  font: 11px Verdana, Tahoma, Arial, sans-serif;
  color: #dcdcdc;
  background: #5e5e5e;
  border: 1px solid;
  border-color: #8a8a8a #1c1c1c #1c1c1c #8a8a8a;
  box-shadow: inset 1px 1px 0 #707070, inset -1px -1px 0 #3a3a3a;
  cursor: pointer;
}

#npc-dialog .npc-dialog-option:hover {
  color: #ffffff;
}

#npc-dialog .npc-dialog-option:active {
  border-color: #1c1c1c #8a8a8a #8a8a8a #1c1c1c;
  box-shadow: none;
}
