/* Item DB Styles */

body {
  background: url("/layout/imgs/itemdb/bg.png");
}

a { color:#4A9AB5; }
a:focus, a:hover { color:#46B9D6; }
a:active { color:#8E6E3D; }

.jnbutton {
  background-color:#4D90B7;
}

.jnbutton:hover, .jnbutton:focus {
  background-color:#46B9D6;
}

.jnheader:before {
  background-color:#4A9AB5;
}

.jnheader:after {
  background-position: -100px 50%;
}

.breadcrumbs>* a, .jnheader {
  color:#4D90B7;
}

.sub-nav dt.active a, .sub-nav dd.active a, .sub-nav li.active a {
  background:#4D90B7;
}

/* Dept Nav Styling */

#layout-dept-wrapper, #layout-depts {
  background-color:#DAF7FF;
}

#layout-depts a:hover, #layout-depts a.current {
  background-color:#4D90B7;
  color:#fff;
}

/* Header Styling */

#layout-logo-row {
  background-image:url('/layout/imgs/itemdb/header_bg.png');
}

#layout-logo-plate {
  background-image:url('/layout/imgs/itemdb/plate_icon.png');
}

#layout-logo {
  background-image:url('/layout/imgs/itemdb/logo.png');
}

#layout-logo.white {
  background-image:url('/layout/imgs/itemdb/logo_white.png');
}

@media only screen and (max-width: 768px) { /* Mobile Header Title */
  .top-bar {
    background-image: url("/layout/imgs/itemdb/logo_mobile.png");
  }
}

/* Navigation Coloring */

.top-bar, .top-bar-section li a:not(.button), .contain-to-grid, .top-bar-section .dropdown {
  background-color:#304f6c;
}

.top-bar-section ul li.active>a {
  background-color:rgba(141, 82, 38, 1);
}

.top-bar-section li a:not(.button):hover {
  background-color:#4D90B7;
}

.top-bar-section ul li:hover>a, .top-bar.expanded .title-area {
  background-color:#213E5A;
}

.top-bar.expanded .toggle-topbar a span { /* Menu hamburger .expanded color */
  -webkit-box-shadow: 0 10px 0 1px #fff,0 16px 0 1px #fff,0 22px 0 1px #fff;
  box-shadow: 0 10px 0 1px #fff,0 16px 0 1px #fff,0 22px 0 1px #fff;
}

.top-bar.expanded .toggle-topbar a { /* Menu hamburger text .expanded color */
  color:#fff;
}

/* Pagination coloring */

ul.pagination li.current a, ul.pagination li.current a:hover, ul.pagination li.current a:focus {
  background-color:#4D90B7;
}

/* Footer Styling */

#layout-footer-links {
  background-color:#2D5A87;
}

@media only screen and (min-width: 70em) {
  #layout-footer-links {
    background-image:url('/layout/imgs/itemdb/footer_bg.png');
  }
}

#layout-footer-links li:hover, #layout-footer-legal li:hover {
  background-color:#213E5A;
}

#layout-footer-legal {
  background-color:#213E5A;
}

#footer-mascot {
  background:url('/layout/imgs/itemdb/mascot_footer.png') no-repeat top left;
  bottom:-12px;
}

/* Content Specific Styling */

.idb-icon {
  display:block;
  -webkit-border-radius:150px;
  -moz-border-radius:150px;
  border-radius:150px;
  margin:5px auto;
  background-color:#f6f6f6;
  -webkit-transition: background-color 300ms ease-out;
  -moz-transition: background-color 300ms ease-out;
  transition: background-color 300ms ease-out;
}

.idb-icon:hover {
  background-color:#4A9AB5;
}

.idb-icon.small {
  width:50px;
  height:50px;
}

.idb-icon.medium {
  width:80px;
  height:80px;
}

.idb-icon.large {
  width:100px;
  height:100px;
}

.idb-icon.xlarge {
  width:150px;
  height:150px;
}

/* Search */

#itemdb-sidebar-search {
  background: #F0F5F6;
  margin: 0 -0.9375em 2em -0.9375em;
  padding: 0.5em 0.9375em 0 0.9375em;
  border-bottom-left-radius: 20px;
}

#itemdb-sidebar-search > form {
  font-size: 0.8em;
}

#itemdb-sidebar-search .row {
  background-color: transparent;
}

.item-result-image {
  border: 2px solid #F6F6F6;
  padding: 4px;
  background-color:#fff;
  max-width: 92px;
}

.item-result-image.nc {
  border-color:#D9C2F3;
}

.item-result-image.small {
  width: 50px;
  height: 50px;
}

/* Item Profiles */

h3.item-profile-header {
  padding: 1% 3%;
  border-top: solid 3px #E6E6E6;
  border-radius: 20px 0 0 20px;
  margin-left: -0.7em;
}

.item-profile-sub-nav {
  padding-left: 3%;
  border-bottom: solid 3px #E6E6E6;
  border-radius: 20px 0 0 20px;
  margin: 0.25em 0px 1.125em 0em;
}

/* Find More Icons */

.find-icon {
  background-image:url('/assets/imgs/sm_find-this-item.png');
  background-repeat:no-repeat;
  background-position:0 0;
}
.find-shopwiz { background-position:0 0; }
.find-tp { background-position:0 -50px; }
.find-auctions { background-position:0 -100px; }
.find-shop { background-position:0 -150px; }
.find-sdb { background-position:0 -200px; }
.find-closet { background-position:0 -250px; }
.find-search { background-position:0 -300px; }

.find-this-item {
  padding: 0.5em;
  margin: 0px 0px 1em -1.2em;
  border-radius: 0px 20px 20px 0px;
  background-color: rgb(251, 251, 251);
  border-right: medium solid rgb(240, 245, 246);
}

.alert-box {
  background-color: #f5f5f5;
  background-image: url('/layout/imgs/itemdb/mascot_150.png');
  background-position: -53px -38px;
  background-repeat: no-repeat;
  border: none;
  border-left: 5px solid #4D90B7;
  color: #222;
  font-weight: normal;
  padding-left: 65px;
  line-height:1.6;
}

.alert-box.inflated {
  background-color: #FFB3B5;
  background-image: url('/assets/imgs/inflation_alert.png');
  background-position: 0 0;
  border-left-color:#970b0e;
  padding-left: 115px;
}

/* Rarity Labels */
.rarity-label-uncommon,
.rarity-label-rare,
.rarity-label-veryrare,
.rarity-label-ultrarare,
.rarity-label-superrare {
  color:green;
}

.rarity-label-special {
  color:#aa4455;
}

.rarity-label-megarare {
  color:orange;
}

.rarity-label-rarity,
.rarity-label-artifact {
  color:red;
}

.rarity-label-retired {
  color:#666666;
}

.rarity-label-ncmall {
  color:#AB27BE;
}

/* Pricing Styles */

.pricing-row-container {
  margin-bottom:1em;
}

.pricing-row-container .price-row:nth-child(odd) {
  background-color:#EFEFEF;
}

.price-row {
  padding: 0.6em;
}

.price-row .row {
  background:transparent;
}

.price-row .small-9.columns {
  margin-top:0.5em;
}

.price-increase {
  color:green;
  font-weight:bold;
}

.price-decrease {
  color:red;
  font-weight:bold;
}

.price-zero, .price-unknown {
  font-style:italic;
}

.price-date, .price-author {
  font-size:0.7em;
}

.price-data-figure {
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  border-radius: 200px;
  width: 2.75em;
  height: 2.75em;
  padding: 0.5em;
  margin: 0 auto 0.5em;
  background-color: #f6f6f6;
  -webkit-transition: background-color 200ms ease-out, color 200ms ease-out;
  -moz-transition: background-color 200ms ease-out, color 200ms ease-out;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

.price-data-figure:hover {
  background-color: #4A9AB5;
  color: #fff;
}

a.price-history-link {
  color: #444;
  background-color: #EAEAEA;
  border-radius: 50px;
  font-weight: bold;
  padding: 1% 5%;
}
a.price-history-link:hover, a.price-history-link:focus {
  background-color: #7E7E7E;
  color: #fff;
}
a.price-history-link:active {
  background-color: #fff;
  color: #222;
}

/* Neohome Previews */

.nh-preview {
  border-radius:200px;
  border: 5px solid #9C5103;
  -webkit-transition: border-radius 250ms linear;
  -moz-transition: border-radius 250ms linear;
  -o-transition: border-radius 250ms linear;
  transition: border-radius 250ms linear;
}

.nh-preview:hover {
  border-radius: 10px;
}

/* TP History */

.tp-lot-container {
  font-size:0.8em;
}

.tp-lot-container .row {
  margin-bottom:0.5em;
  background:transparent;
}

.row.tp-highlighted-item {
  border: 3px solid #ffd700;
  background-color:#ffd700;
  border-radius:10px;
}

.tp-lot-container li {
  padding-bottom:0;
  margin-bottom:1em;
}

.tp-lot-container li:nth-child(even) {
  background-color:#ddd;
}

.tp-lot-container img {
  max-width: 50px;
  max-height: 50px;
}

/* Tools */

.checklist-code {
  font-size:0.75em;
  height:15em;
}

#loading-blocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
}

@-moz-keyframes three-quarters-loader {
  0% {
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-webkit-keyframes three-quarters-loader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes three-quarters-loader {
  0% {
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/* :not(:required) hides this rule from IE9 and below */
.spinner:not(:required) {
  -moz-animation: three-quarters-loader 1250ms infinite linear;
  -webkit-animation: three-quarters-loader 1250ms infinite linear;
  animation: three-quarters-loader 1250ms infinite linear;
  border: 8px solid #fff;
  border-right-color: transparent;
  border-radius: 16px;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  overflow: hidden;
  text-indent: -9999px;
  width: 32px;
  height: 32px;
  top:50%;
  left:49%;
}

/* Wishlists */
input.wishlist-order-input {
  font-size:0.65em;
}

a.wishlist-obtained {
  position: relative;
  display: block;
  max-width:92px;
  margin:auto;
}

a.wishlist-obtained:before {
  width: 100%;
  height: 100%;
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('/assets/imgs/wishlists/obtained2.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-color: rgba(255, 255, 255, 0.6);
}

.cap-price-text {
  color: #fff;
  background: #2D5A87;
  border-radius: 50px;
  font-weight: bold;
  padding: 1% 5%;
}

/* Price Updates */

.suggest-price-update-pane {
  display:block;
}

.suggest-price-update-pane.hidden {
  display:none;
}