/* Spinner */
.lds-roller {
  display: inline-block;
  position: absolute;
  width: 64px;
  height: 64px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 32px 32px;
}

.lds-roller div:after {
  content: ' ';
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9c9;
  margin: -3px 0 0 -3px;
}

.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
  top: 50px;
  left: 50px;
}

.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
  top: 54px;
  left: 45px;
}

.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
  top: 57px;
  left: 39px;
}

.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
  top: 58px;
  left: 32px;
}

.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
  top: 57px;
  left: 25px;
}

.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
  top: 54px;
  left: 19px;
}

.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
  top: 50px;
  left: 14px;
}

.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
  top: 45px;
  left: 10px;
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

html, body {
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  min-width: 500px;
  min-height: 100%;
  background: #111;
  color: #9c9;
  font: 12px/14px Arial;
}

.inventory-form {
  text-align: center;
  padding: 20px 0;
}

.inventory-form table {
  margin: 0 auto;
}

.inventory-form table td {
  vertical-align: middle;
  line-height: 35px;
  margin-bottom: 20px;
}

.inventory-form table td:nth-child(1) {
  text-align: right;
  padding: 0 10px 0 0;
}

.inventory-form table td:nth-child(2) {
  text-align: left;
}

.inventory-form button {
  border: 1px solid #9c9;
  color: #9c9;
  background: #222;
  border-radius: 3px;
  margin: 0;
  padding: 5px 10px;
  cursor: pointer;
}

input, select {
  border: 1px solid #9c9;
  color: #9c9;
  background: #222;
  border-radius: 3px;
  margin: 0;
  padding: 5px 10px;
}

#app-selector {
  padding-right: 20px;
}

#steamId-selector {
  width: 120px;
}

.inventory--items_count {
  text-align: center;
  font-size: 20px;
  padding: 20px 0;
  color: #eee;
}

.inventory-items {
  display: flex;
  flex-wrap: wrap;
}

.skin {
  border: 1px solid;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  flex: 1 1 auto;
  text-align: center;
  position: relative;
  background: radial-gradient(#222, #000);
  cursor: pointer;
}

.skin .skin-pic img {
  max-width: 200px;
  max-height: 150px;
  margin: 0 0 10px;
}

.skin.skin-grey {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  color: #666 !important;
}

.skin-stickerPics {
  position: absolute;
  top: 5px;
  right: 0;
  display: flex;
  flex-direction: column;
}

.skin-sticker__pic img {
  width: 50px;
  min-height: 30px;
  display: block;
}

.skin-tag {
  color: #c00;
  display: inline-block;
  border: 1px solid #c00;
  border-radius: 3px;
  padding: 3px 5px;
  background: #222;
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translate(-50%, 0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.hidden {
  display: none;
}

.item-modal--wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  text-align: center;
}

.item-modal--background {
  position: fixed;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
}

.item-modal {
  border: 1px solid #9c9;
  width: 666px;
  min-height: 350px;
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  background: radial-gradient(#333, #000);
  position: relative;
  z-index: 15;
}

.item-modal-close {
  position: absolute;
  top: 0;
  right: 5px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  padding: 15px;
  z-index: 200;
}

.item-modal--content {
  overflow-y: auto;
  height: 550px;
  overflow-x: hidden;
  position: relative;
}

.item-modal-pic {
  min-width: 666px;
  min-height: 387px;
}

.item-modal-tag {
  color: #c00;
  display: inline-block;
  border: 1px solid #c00;
  border-radius: 3px;
  padding: 10px;
  background: #222;
  position: absolute;
  top: 410px;
  left: 50%;
  transform: translate(-50%, 0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
  font-size: 18px;
}

.item-modal-price {
  color: #ddd;
  font-weight: bold;
  font-size: 30px;
  position: absolute;
  top: 15px;
  left: 10px;
}

.item-modal-name {
  font-weight: bold;
  font-size: 20px;
  color: #eee;
  padding-top: 20px;
}

.item-modal-stickerPics {
  position: absolute;
  top: 40px;
  right: 10px;
  display: flex;
  flex-direction: column;
}

.item-modal-stickerPics img {
  width: 90px;
  min-height: 60px;
  display: block;
}

.item-modal-pic {
  position: relative;
}

.item-modal-pic img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: 100%;
  display: block;
}

.item-modal-pic__float {
  background: linear-gradient(to right, blue, blue 7%, green 7%, green 15%, yellow 15%, yellow 38%, orange 38%, orange 45%, red 45%);
  width: 100%;
  height: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  cursor: pointer;
}

.item-modal-pic__float .tooltip {
  display: none;
  position: absolute;
  left: 50%;
  margin-left: -40px;
  width: 80px;
  top: -40px;
  background: #111;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 14px;
}

.item-modal-pic__float:hover .tooltip {
  display: block;
}

.item-modal-pic__float .tooltip::after {
  content: " ";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #9c9 transparent transparent transparent;
}

.item-modal-info {
  position: absolute;
  top: 410px;
  left: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  font-weight: bold;
  color: #ccc;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
}
.item-modal-info .tooltip {
  display: none;
  color: #9c9;
  position: absolute;
  left: 40px;
  width: 200px;
  top: -30px;
  background: #111;
  padding: 9px 10px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 14px;
  line-height: 16px;
}

.item-modal-info:hover .tooltip {
  display: block;
}

.item-modal-info .tooltip::after {
  content: " ";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent #9c9 transparent transparent;
}

.item-modal-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 12px solid #fff;
  bottom: 2px;
}

.item-modal-sticker__pic {
  position: relative;
  padding: 0 0 20px;
}

.item-modal-sticker__pic .tooltip {
  display: none;
  position: absolute;
  right: 100px;
  width: 140px;
  top: 35%;
  background: #111;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 14px;
  transform: translate(0, -50%);
}

.item-modal-sticker__pic:hover .tooltip {
  display: block;
}

.item-modal-sticker__pic .tooltip::after {
  content: " ";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent #9c9;
}
