/*
Style for regular browsers.
*/

@import url(https://fonts.googleapis.com/css2?family=Nunito:wght@400;700);

body,
.ctr {
  width: 960px;
  margin: 0 auto;
}

body {
  padding: 21px 0 1em 0;
  background-image: url('/static/img/background-50.png');
  background-repeat: no-repeat;
  background-position: top left;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #000;
    color: white;
  }
}

body,
tbody {
  font-family: Nunito, Helvetica, Verdana, sans-serif;
  font-weight: 300;
  font-size: 91%;
}

h1, h2, h3, h4, b, strong {
  font-weight: 700;
}

a {
  text-decoration: none;
}

a:link {
  color: #00b;
}
a:visited {
  color: #60b;
}
@media (prefers-color-scheme: dark) {
  a:link {
    color: #9ef;
  }
  a:visited {
    color: #cbf;
  }
}

a:hover {
  text-decoration: underline;
}

a.tooltip {
  text-decoration: none;
}

.ctr {
  height: 21px;
}

.page {
  padding: 1.2em 0;
}

.ctr,
.page {
  background: rgba(255, 255, 255, 0.8);
}
@media (prefers-color-scheme: dark) {
  .ctr,
  .page {
    background: rgba(0, 0, 0, 0.5);
  }
}

.topnav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px dotted #80bf80;
}
@media (prefers-color-scheme: dark) {
  .topnav {
    border-bottom: 1px dotted #204f20;
  }
}
/* Reset default unordered list display style to remove bulleting/spacing */
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0 1em;
}
/* Stack LI elements horizontally instead of the default vertical orientation */
.navbar li {
  float: left;
  margin-right: 5px;
}
.navbar li.right {
  float: right;
  margin-left: 5px;
  margin-right: 0;
}
/* Turns the links into larger clickable boxes */
.navbar li a {
  display: block;
  padding: .3em;
}
.navbar li a:hover {
  background: #8dcca7;
  text-decoration: none;
}
@media (prefers-color-scheme: dark) {
  .navbar li a:hover {
    background: #042;
  }
}
.navbar li#clock a:hover {
  background: none;
  text-decoration: none;
}
.navbar li ul {
  display: none;
  position: absolute;
  padding: 0;
}
.navbar li:hover ul {
  display: block;
  z-index: 999;
}
.navbar li li {
  float: none;
  border-bottom: 1px solid #ccc; /* border-top causes IE bug */
  background: #fff;
}
.navbar li li a {
  border: 0;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}
@media (prefers-color-scheme: dark) {
  .navbar li li {
  border-bottom-color: #222;
  background: #000;
  }
  .navbar li li a {
    border: 0;
    border-color: #333;
  }
}

.topsearch {
	float: right;
	margin: 0 0 1em 1em;
}

.topsearch input {
	vertical-align: middle;
}

.button {
  -webkit-box-shadow: rgba(0, 0, 0, 0.0976562) 0px 1px 0px 0px;
  background-color: #eee;
  border: 1px solid #999;
  color: #222;
  font-size: 11px;
  font-weight: bold;
  height: 23px;
  padding: 1px 12px;
}
.button:hover {
  background-color: #ddd;
}
.button:active {
  padding: 2px 11px 0px 13px;
}


.content {
  min-height: 300px;
}

.header, .content, .footer {
  margin: 0 1em;
}

.content div {
  margin: 0.5em 0;
}

.info {
  border: 1px solid #69c;
  background-color: #cdf;
}
.warn {
  border: 1px solid #cc6;
  background-color: #ffc;
}
.error {
  border: 1px solid #c66;
  background-color: #fcc;
}
.info, .warn, .error, .inventory .inv-category {
  padding: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  -khtml-border-radius: 8px;
}
@media (prefers-color-scheme: dark) {
  .info {
    border-color: #049;
    background-color: #012;
    color: #bdf;
  }
  .warn {
    border-color: #990;
    background-color: #220;
    color: #ffb;
  }
  .error {
    border-color: #900;
    background-color: #200;
    color: #fbb;
  }
}

div.paginator,
div.results-count {
  margin: 0.75em 0;
}

div.paginator a {
  padding: 0.5em;  /* for clickability */
  border: 1px solid #000;
}
@media (prefers-color-scheme: dark) {
  div.paginator a {
    border-color: #ddd;
  }
}

a.selected {
  font-weight: 700;
  background: #eee;
}

.nav-items {
  background: #eee;
  margin-bottom: 2em;
}
@media (prefers-color-scheme: dark) {
  a.selected {
    background: #333;
  }
  .nav-items {
    background: #000;
  }
}

table.odd_item_highlight tr:nth-child(odd) {
  background-color: #eee;
}
tr.auction-item:hover {
  background-color: #ffd;
}
table.odd_item_highlight tr.auction-item:hover:nth-child(odd) {
  background-color: #eeb;
}
@media (prefers-color-scheme: dark) {
  table.odd_item_highlight tr:nth-child(odd) {
    background-color: #222;
  }
  tr.auction-item:hover {
    background-color: #330;
  }
  table.odd_item_highlight tr.auction-item:hover:nth-child(odd) {
    background-color: #442;
  }
}

table {
  clear: both;
  border: 1px dotted #80bf80;
  border-collapse: collapse;
}
th { border-bottom: 1px solid #80bf80; }
td, th { padding: 0.5em 0.5em; }
@media (prefers-color-scheme: dark) {
  table, td, th {
    border-color: #050;
  }
}

input, textarea {
  border-style: solid;
  border-width: 1px;
  border-radius: 2px;
  background-color: transparent;
}
@media (prefers-color-scheme: dark) {
  input, textarea {
    color: #fff;
  }
}

.staff-indicator:before {
  content: 'Staff';
  border: 2px solid #adf;
  background: #fff;
  color: #666;
  font-weight: 300;
  padding: 2px 3px;
  margin-right: 0.2em;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -khtml-border-radius: 4px;
}

.auction-item .outrageous { background: #f66; }
.auction-item .exorbitant, .vendor-exorbitant { background: #f99; }
.auction-item .expensive { background: #fcc; }
.auction-item .neutral { }
.auction-item .cheap { background: #9f9; }
.auction-item .bargain { background: #6f6; }
.auction-item .foolish { background: #3f3; font-weight: 700 }

.auction-item .live { color: #ff9232; }
.auction-item .expired { color: #ff241c; }
.auction-item .ended { color: #009634; }

.auction-item.staff { font-weight: 700; }

@media (prefers-color-scheme: dark) {
  .auction-item .outrageous { background-color: #900; }
  .auction-item .exorbitant, .vendor-exorbitant { background-color: #600; }
  .auction-item .expensive { background-color: #300; }
  .auction-item .cheap { background-color: #030; }
  .auction-item .bargain { background-color: #060; }
  .auction-item .foolish { background-color: #090; }

  .auction-item .live { color: #f93; }
  .auction-item .expired { color: #f22; }
  .auction-item .ended { color: #6f9; }
}

/* TODO: flow these into 2 columns. */
.inventory .inv-category {
  width: 390px;
  border: 2px solid #80bf80;
  margin: 1em 0;
  padding: 0;
}

.wide-inventory .inv-category {
  width: 100%;
}

.inventory .inv-category h3 {
  background: #80bf80;
  color: #fff;
  margin: 0;
  padding: 0.3em 1em;
}
.inventory .inv-category div {
  padding: 0 1em;
}
@media (prefers-color-scheme: dark) {
  .inventory .inv-category {
    border-color: #204f20;
  }
  .inventory .inv-category h3 {
    background: #204f20;
  }
}

.locations .inv-itemname {
  font-weight: 700;
}

.unfound {
  font-style: italic;
}

a.streetlink {
  font-weight: bold;
}
.streetform form {
  display: inline;
}
.streetform .streetactions {
  display: none; position: absolute;
}
.streetform:hover .streetactions {
  display: inline;
  background: #fff;
  border: 1px dotted #80bf80;
  padding: 2px;
}

@media (prefers-color-scheme: dark) {
  #pstats {
    color: black;
  }
}

.fineprint, .debug {
  font-size: 83%;
}

.footer {
  border-top: 1px dotted #80bf80;
  margin-top: 4em;
  padding-top: 2em;
  font-size: 66%;
}
@media (prefers-color-scheme: dark) {
  .footer {
    border-top-color: #204f20;
  }
}
.debug-content {
  white-space: pre;
  font-family: monospace;
}
