/* Item DB Styles */

:root {
  --btn-color: #4D90B7;
  --btn-hover-color: #46B9D6;
}

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

a, .side-nav li a { color:#4A9AB5; }
.content-wrapper a:not(.button) { text-decoration-color: rgba(26, 128, 183, 0.3); }
.content-wrapper a:not(.button):focus, .content-wrapper a:not(.button):hover { text-decoration-color: rgba(26, 128, 183, 0.5); }
a:focus, a:hover, .side-nav li a:focus, .side-nav li a:hover { color: var(--btn-hover-color); }
a:active, .side-nav li a:active { color:#8E6E3D; }

.button {
  background-color: var(--btn-color);
}

.button:hover, .button:focus {
  background-color: var(--btn-hover-color);
}

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

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

.breadcrumbs>* a, .jnheader {
  color: var(--btn-color);
}

.sub-nav dt.active a, .sub-nav dd.active a, .sub-nav li.active a {
  background: var(--btn-color);
}

/* Dept Nav Styling */

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

#layout-depts a:hover, #layout-depts a.current {
  background-color: var(--btn-color);
  color:#fff;
}

/* Header Styling */

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

#layout-logo-row-wrapper {
  background: rgba(15, 63, 113, 0.53);
}

#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, .top-bar.expanded .title-area {
    background-image: url("/layout/imgs/itemdb/logo_mobile.png");
  }
}

/* Navigation Coloring */

#layout-nav-menu-wrapper {
  background: #23425F;
}

.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: var(--btn-color);
}

.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 */
  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: var(--btn-color);
}

/* 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, .page-icon {
  display:block;
  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, .page-icon:hover {
  background-color:#4A9AB5;
}

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

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

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

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

/* Search */

.dept-search-bar, .goodie-tool-bar {
  background: #F0F5F6;
}

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

#itemdb-sidebar-search > form h3.jnheader {
  margin-bottom: 1em;
  margin-top: 1.2em;
}

/* Item Profiles */

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

.item-contents-grid .item-result-image {
  max-width:70px;
}

/* Find More Icons */

.find-icon {
  background-image:url('/assets/imgs/xlg_find-this-item.png');
  background-repeat:no-repeat;
  background-position:0 0;
  background-size: 50px 350px;
}
.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);
}

.find-this-item > h3 {
  font-size: 1.3em;
}

.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  var(--btn-color);
  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.older-price {
  font-size: 0.75em;
}

.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.8em;
}

.price-data-figure {
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  border-radius: 200px;
  width: 5.5rem;
  height: 5.5rem;
  padding: 1rem 0;
  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.small {
  font-size: 1.5em;
  padding: 1.5rem 0;
}

.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: 0.1em 0.6em;
  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,0.1);
}
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;
}

a.price-history-link.inflation-notice {
  background-color: #970b0e;
  color: #fff;
}
a.price-history-link.inflation-notice:hover, a.price-history-link.inflation-notice:focus {
  background-color: #d6373a;
}
a.price-history-link.inflation-notice:active {
  background-color: #fff;
  color: #970b0e;
}

/* NC Information */

.nc-archives-wheel-row {
  display: flex;
  column-gap: 1rem;
  align-items: center;
  margin-bottom: 1.25em;
}

.nc-archives-wheel-icon {
  width: 90px;
  text-align: center;
}

.nc-archives-wheel-icon > img {
  width: 80px;
  height: 80px;
  /* border-radius: 200px;
  border: 2px solid #EAEAEA; */
}

.nc-archives-wheel-text {
  width: calc(100% - 100px - 1rem);
}

.nc-archives-wheel-text > p {
  margin-bottom: 0;
}

/* Neohome Previews */

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

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

/* Habitarium Previews */

.habitarium-preview {
  border-radius:10px;
  border: 5px solid #03929C;
}

/* TP History */

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

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

.row.tp-highlighted-item {
  background-color:#ffd700;
  border-radius:10px;
  padding: 4px 0;
}

.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, .price-check-code, .tool-source-code, .wishlist-code {
  font-size:0.75em;
  height:15em;
}

/* Wishlists */

input.w-o, 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%;
}

#nc-compare-your-items {
  border-right:1px solid #eee;
  margin-bottom:1em;
}

@media only screen and (max-width: 768px) { /* Mobile Header Title */
  #nc-compare-your-items {
    border-right:none;
    border-bottom:1px solid #eee;
  }
}

#wishlists-sort-drop.f-dropdown {
  max-width:270px;
}

.import-instructions {
  font-size: 90%;
}

/* Price Updates */

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

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

/* Mobile Fixes */

@media only screen and (max-width: 768px) { /* Mobile Design Fixes */
  .find-this-item {
    padding: 0;
    margin: 0 0 1em 0;
    background-color: transparent;
    border-right: none;
  }

  .find-this-item h3 { /* Style like the headers */
    padding: 1% 3%;
    border-top: solid 3px #E6E6E6;
    border-radius: 20px 0 0 20px;
    margin-left: -0.2em;
  }
}

.wishlists-contact-icon {
  vertical-align:middle;
  height:20px;
  width:20px;
  position: relative;
  top: -2px;
  left: 4px;
}

/* Petpet Matcher */

#pp-matcher-pet-wrapper {
  border-right:1px solid #eee;
}

#pp-matcher-pet-image {
  width:300px;
  height:300px;
}

#pp-matcher-search {
  padding: 0.8em 0.8em 0 0.8em;
  border-radius: 15px;
  margin: 0em 0em 1em 0em;
}

#pp-matcher-search .row {
  background-color:transparent;
}

.pp-matcher-form {
  font-size:0.8em;
  margin-bottom:0.2em;
}

#pp-matcher-pet-combo-form .chosen-container,
#pp-matcher-pet-combo-form input[type="submit"] {
  margin-bottom: 0;
}

#pp-matcher-pet-combo-form-error {
  margin-top: 0.25em;
  margin-bottom: 0.75em;
}

.pp-matcher-result:hover:before {
  width:10px;
  height:10px;
  background:red;
}

@media only screen and (max-width: 768px) { /* Mobile Header Title */
  #pp-matcher-pet-wrapper {
    border-right:none;
    border-bottom:1px solid #eee;
    margin-bottom:1em;
  }

  #pp-matcher-search {
    display: block;
    bottom: 0;
    left: 0;
    top: auto;
    height: 116px;
    margin-bottom: 0;
    border-radius: 0;
  }
}

/* TP Tagging */

.tp-tagging-trophy {
  width:50px;
  height:50px;
}

.tp-tagging-leaderboard-highlight {
  background:#fff086 !important;
}

.tp-tagging-sidebar {
  background: #eee;
  padding: 0.5em 1em;
  border-radius: 20px;
  text-align: center;
  margin-bottom:1em;
}

#tp-tagging-sidebar-pts-list {
  display: flex;
  align-items: top;
  font-size: 80%;
}

#tp-tagging-sidebar-pts-list > p {
  width: 50%;
}

.tp-tagging-lot-item {
  font-size:0.8em;
  margin-bottom: 0.5em !important;
}

.tp-tagging-item-name {
  display:block;
  margin-bottom:0.5em;
}

.tp-tagging-lot-item label {
  margin-top: 0.55em;
}

.tp-tagging-lot-item .item-result-image {
  max-width:60px;
}

/* Prize Shop Guide */

.prize-shop-greyed-out {
  filter: grayscale(1) contrast(110%);
  opacity: 0.7;
}

.prize-shop-module-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  column-gap: 1em;
}

.prize-shop-module-row .prize-shop-icon-sm {
  width: 90px;
  height: 90px;
}

.prize-shop-icon-big {
  width: 120px;
  height: 120px;
}

.prize-shop-module-row > .prize-shop-module-data {
  flex-grow: 1;
}

.prize-shop-module-wrapper > .prize-shop-module-row:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.prize-shop-module-wrapper > .prize-shop-module-row:not(:first-child) {
  margin-top: 1.25em;
}

/* Static Wearable Previews */

.static-wearable-preview {
  background-color: rgba(0,0,0,0.1);
}
