/* ------ Quest database (questdb.php) ------- */

#qdb { text-align: left; }
#qdb .dim { color: #8d7458; font-weight: normal; font-size: 11px; }

#qdb .qdb-bar { margin: 6px 0 6px 0; }
#qdb .qdb-q {
  width: 250px;
  padding: 5px 7px;
  border: 1px solid #8d7458;
  background: #f5ecdd;
  color: #2f2115;
  font-family: Sylfaen, Trebuchet MS, Verdana;
  font-size: 13px;
}
#qdb select {
  padding: 4px;
  border: 1px solid #8d7458;
  background: #f5ecdd;
  color: #2f2115;
  font-family: Sylfaen, Trebuchet MS, Verdana;
  font-size: 12px;
}
#qdb .qdb-count { margin: 4px 0 6px 0; color: #6d5a44; font-style: italic; }

#qdb table.qdb-list { width: 100%; border-collapse: collapse; }
#qdb table.qdb-list th { padding: 3px 6px; color: #6d5a44; font-weight: normal; text-align: left; border-bottom: 1px solid #c0a98c; }
#qdb table.qdb-list tr[data-q] { cursor: pointer; }
#qdb table.qdb-list tr[data-q]:hover td { background: #efe3cf; }
#qdb table.qdb-list td { padding: 5px 6px; border-bottom: 1px solid #dacdb6; vertical-align: middle; }
#qdb table.qdb-list .lv { width: 26px; text-align: center; color: #6d5a44; font-weight: bold; }
#qdb table.qdb-list td.nm { color: #2f2115; font-weight: bold; }
#qdb table.qdb-list td.st { color: #442b17; }
#qdb table.qdb-list td.bd { text-align: right; white-space: nowrap; }

#qdb i[class^="b-"] {
  display: inline-block; margin-left: 3px; padding: 0 4px;
  font-style: normal; font-size: 10px; line-height: 15px; color: #fff;
}
#qdb i.b-one  { background: #6d5a44; }
#qdb i.b-rep  { background: #3f6b2b; }
#qdb i.b-cls  { background: #6b3f8c; }
#qdb i.b-race { background: #2f6a8c; }

/* popup */
#qdb .qdb-modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .55);
}
#qdb .qdb-modal.open { display: block; }
#qdb .qdb-dialog {
  position: relative;
  width: 660px;
  max-width: 94%;
  max-height: 88%;
  margin: 4vh auto 0 auto;
  overflow-y: auto;
  padding: 14px 20px 16px 20px;
  border: 2px solid #3a2411;
  background: #efe3cf;
  color: #2f2115;
  text-align: left;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .6);
}
#qdb .qdb-close, #qdb .qdb-close:link, #qdb .qdb-close:visited {
  position: absolute; right: 10px; top: 4px;
  color: #5b3d21; font-size: 26px; font-weight: bold; text-decoration: none;
}
#qdb .qdb-close:hover { color: #000; }

#qdb .qdb-body h3 { margin: 0 30px 2px 0; font-size: 19px; color: #2f1d0c; }
#qdb .qdb-body .sub { margin-bottom: 8px; color: #6d5a44; }
#qdb .qdb-body .qdesc { margin: 0 0 8px 0; font-style: italic; color: #442b17; line-height: 17px; }
#qdb .qdb-body .qrw { margin: 0 0 6px 0; padding: 6px 8px; background: rgba(63, 107, 43, .12); border: 1px solid #b9c9a6; }
#qdb .qdb-body h4 {
  margin: 12px 0 4px 0; padding-bottom: 3px;
  border-bottom: 1px solid #c0a98c; color: #442b17; font-size: 13px;
}

#qdb ol.qsteps { margin: 6px 0 0 0; padding: 0 0 0 26px; }
#qdb ol.qsteps li { margin: 0 0 7px 0; padding: 5px 8px; border: 1px solid #dacdb6; background: rgba(255, 255, 255, .35); line-height: 18px; }
#qdb ol.qsteps li::marker { color: #6d5a44; font-weight: bold; }
#qdb ol.qsteps .tag {
  display: inline-block; min-width: 38px; margin-right: 6px; padding: 0 4px;
  color: #fff; font-size: 10px; line-height: 15px; text-align: center; vertical-align: 1px;
}
#qdb li.s-start .tag { background: #2f6a8c; }
#qdb li.s-talk  .tag { background: #5b3d21; }
#qdb li.s-hunt  .tag { background: #8c2b2b; }
#qdb li.s-fin   .tag { background: #3f6b2b; }
#qdb li.s-fin { border-color: #b9c9a6; background: rgba(63, 107, 43, .10); }
#qdb ol.qsteps .sl { margin: 3px 0 0 0; color: #442b17; }

#qdb a.qn, #qdb a.qi { color: #5b3d21; font-weight: bold; text-decoration: none; }
#qdb a.qn:hover, #qdb a.qi:hover { color: #000; text-decoration: underline; }
#qdb b.qn { color: #2f2115; }
#qdb svg.pin { fill: #8c2b2b; margin-right: 2px; vertical-align: -1px; }
#qdb a.qi img, #qdb a.qi .noicon { width: 18px; height: 18px; margin-right: 3px; vertical-align: middle; border: 1px solid #3a2411; }
#qdb .noicon { display: inline-block; background: #3a2411; }

#qdb details.qd { margin-top: 4px; }
#qdb details.qd summary { cursor: pointer; color: #6d5a44; font-size: 11px; }
#qdb details.qd summary:hover { color: #2f1d0c; }
#qdb .qd-page {
  margin: 5px 0 3px 0; padding: 6px 8px;
  background: #17110a; color: #d8c9ae; border: 1px solid #8a7659;
  font-size: 12px; line-height: 17px;
}
#qdb .qd-choice { margin: 0 0 2px 10px; color: #7a5a1c; font-size: 11px; font-weight: bold; }
#qdb .qnote { margin-top: 10px; color: #6d5a44; font-size: 11px; font-style: italic; }

/* reward window at the end of the quest */
#qdb .qrwin { margin: 14px 0 4px 0; border: 2px solid #3a2411; background: #f7efe0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
#qdb .qrw-head {
  padding: 5px 10px; background: #2f1d0c; color: #ffd98a;
  font-weight: bold; font-size: 13px; letter-spacing: .5px;
}
#qdb .qrw-note, #qdb .qrw-none { margin: 8px 10px 0 10px; color: #6d5a44; font-size: 11px; font-style: italic; }
#qdb .qrw-group { padding: 8px 10px 6px 10px; }
#qdb .qrw-group + .qrw-group { border-top: 1px dashed #c0a98c; }
#qdb .qrw-title { margin-bottom: 4px; color: #3f6b2b; font-weight: bold; }
#qdb table.qrw-tab { width: 100%; border-collapse: collapse; }
#qdb table.qrw-tab td { padding: 3px 4px; border-bottom: 1px solid #e3d6c0; vertical-align: middle; }
#qdb table.qrw-tab tr:last-child td { border-bottom: 0; }
#qdb table.qrw-tab td.ri { width: 36px; }
#qdb table.qrw-tab td.ri img, #qdb table.qrw-tab td.ri .noicon { width: 32px; height: 32px; border: 1px solid #3a2411; vertical-align: middle; }
#qdb table.qrw-tab td.rn { font-weight: bold; }
#qdb table.qrw-tab td.ra { text-align: right; white-space: nowrap; color: #2f2115; font-size: 13px; }
#qdb table.qrw-tab td.ra img, #qdb table.qrw-tab td.ra .noicon { width: 16px; height: 16px; margin: 0 2px 0 3px; vertical-align: -3px; border: 1px solid #3a2411; }
#qdb .rx {
  display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center;
  background: #2f5a2b; color: #fff; font-weight: bold; font-size: 11px; border: 1px solid #3a2411;
}
#qdb .rx.rsp { background: #2f4f8c; }

/* map popup over the quest window */
#qdb .qdb-map {
  display: none; position: fixed; z-index: 200; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .55);
}
#qdb .qdb-map.open { display: block; }
#qdb .qm-dialog {
  position: relative; width: 700px; max-width: 94%; margin: 6vh auto 0 auto;
  border: 2px solid #3a2411; background: #efe3cf; box-shadow: 0 6px 30px rgba(0, 0, 0, .7);
}
#qdb .qm-head { padding: 6px 36px 6px 10px; background: #2f1d0c; color: #ffd98a; font-weight: bold; font-size: 14px; }
#qdb .qm-head .dim { color: #c9b48f; }
#qdb .qm-close, #qdb .qm-close:link, #qdb .qm-close:visited {
  position: absolute; right: 10px; top: 0; color: #ffd98a; font-size: 24px; font-weight: bold; text-decoration: none;
}
#qdb .qm-close:hover { color: #fff; }
#qdb .qm-view {
  position: relative; height: 480px; max-height: 70vh; overflow: hidden;
  background: #d8cdb8; cursor: grab; -webkit-user-select: none; user-select: none;
}
#qdb .qm-view.drag { cursor: grabbing; }
#qdb .qm-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#qdb .qm-img { display: block; max-width: none; }
#qdb .qm-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
#qdb .qm-svg rect { fill: rgba(200, 30, 30, .35); stroke: #8c1010; stroke-width: 2; vector-effect: non-scaling-stroke; }
#qdb .qm-pin .dot  { fill: #ffe14a; stroke: #3a1d00; stroke-width: 2; vector-effect: non-scaling-stroke; }
#qdb .qm-pin .ring { fill: none; stroke: #ffe14a; stroke-width: 3; vector-effect: non-scaling-stroke;
                     transform-box: fill-box; transform-origin: center; animation: qmPin 1.4s ease-out infinite; }
#qdb .qm-pin text  { fill: #fff6d0; stroke: #1d0f04; stroke-width: 3px; paint-order: stroke; font: bold 13px Verdana, sans-serif; text-anchor: middle; }
@keyframes qmPin { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
#qdb .qm-zoom { position: absolute; right: 6px; top: 6px; }
#qdb .qm-zoom a, #qdb .qm-zoom a:link, #qdb .qm-zoom a:visited {
  display: block; width: 24px; margin-bottom: 3px; line-height: 22px; text-align: center;
  border: 1px solid #3a2411; background: rgba(47, 29, 12, .85); color: #f0e4d2; font-weight: bold; font-size: 15px; text-decoration: none;
}
#qdb .qm-msg { position: absolute; left: 0; right: 0; top: 45%; text-align: center; color: #442b17; font-weight: bold; }
#qdb .qm-foot { padding: 5px 10px; font-size: 11px; overflow: hidden; }
#qdb .qm-full { float: right; color: #5b3d21; font-weight: bold; text-decoration: none; }
#qdb .qm-full:hover { text-decoration: underline; }

/* reward lines: amount sits right after the item name */
#qdb .qrw-sub { margin: 2px 0 4px 0; color: #442b17; }
#qdb ul.qrw-one, #qdb ul.qrw-opts { margin: 2px 0 2px 0; padding: 0; list-style: none; }
#qdb ul.qrw-one li, #qdb ul.qrw-opts li { padding: 3px 0; border-bottom: 1px solid #e3d6c0; line-height: 34px; }
#qdb ul.qrw-one li:last-child, #qdb ul.qrw-opts li:last-child { border-bottom: 0; }
#qdb ul.qrw-opts li { padding-left: 16px; position: relative; }
#qdb ul.qrw-opts li:before { content: '\25C6'; position: absolute; left: 0; color: #9a6b12; font-size: 10px; }
#qdb .rline { white-space: nowrap; }
#qdb .rline img, #qdb .rline .noicon, #qdb .rline .rx { width: 32px; height: 32px; margin-right: 6px; vertical-align: middle; border: 1px solid #3a2411; }
#qdb .rline .rx { display: inline-block; line-height: 32px; }
#qdb .rline a.qi { font-size: 13px; }
#qdb .rline .ramt { color: #2f1d0c; font-size: 13px; margin-left: 2px; }
#qdb .rline .ramt img, #qdb .rline .ramt .noicon { width: 16px; height: 16px; margin: 0 2px 0 3px; vertical-align: -3px; }
#qdb ul.alts { margin: 3px 0 0 0; padding-left: 18px; }
#qdb ul.alts li { margin: 2px 0; }
#qdb ol.qsteps ul.alts li { margin: 1px 0; padding: 0; border: 0; background: none; line-height: 22px; list-style: disc; }

/* filter row: search + level + type + town on one line */
#qdb .qdb-q { width: 190px; }
#qdb .qdb-town { max-width: 170px; }
