
item-slot {
  width: 64px;
  height: 64px;
  margin: 5px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.2);
  color: black;
}

item-slot[data-id]:not([data-id="undefined"]) {
  background-image: url('../img/items.png');
  background-repeat: no-repeat;
  background-size: 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}

item-slot.goal { background-image: none !important; }

offer item-slot[data-id="0"],
inventory item-slot[data-id="0"] {
  background-position: 0px -64px !important;
}

item-slot.goal {
  background-color: rgba(255,255,255,0.5);
}

item-slot hover-text {
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7);
  min-height: 80px;
  position: absolute;
  display: none;
  width: 200px;
  left: 100%;
  top: 0;
  z-index: 100;
  pointer-events: none;
  padding: 10px;
}

item-slot name {
  font-weight: bold;
}

item-slot:active {
  background-color: rgba(247, 105, 190, 0.25);
}

item-slot[data-id]:hover hover-text {
  display: flex;
}

item-slot[data-id="undefined"] hover-text,
item-slot:active hover-text {
  display: none !important;
}

slots {
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

inventory {
  text-align: center;
  position: absolute;
  bottom: 0px;
  width: 100%;
  flex-direction: column;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 15px 15px;
  color: rgba(255, 255, 255, 0.5);
}

inventory item-slot hover-text {
  bottom: 100%;
  top: auto;
  left: 0;
}

item-slot info {
  text-align: left;
}
