.button-container {
  background-color: #222222 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.buy-row, .action-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.buy-card-btn { 
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#buy-low-card {
  background-image: url('/static/images/CollectionGame/duelcard/low-card-btn.webp');
}
#buy-low-pack {
  background-image: url('/static/images/CollectionGame/duelcard/low-cardpack-btn.webp');
}
#buy-high-card {
  background-image: url('/static/images/CollectionGame/duelcard/high-card-btn.webp');
}
#buy-high-pack {
  background-image: url('/static/images/CollectionGame/duelcard/high-cardpack-btn.webp');
}

#upgrade-card {
  background-image: url('/static/images/CollectionGame/ui/upgrade.webp');
}
#apply-upgrade {
  background-image: url('/static/images/CollectionGame/ui/confirm.webp');
}
#cancel-upgrade {
  background-image: url('/static/images/CollectionGame/ui/cancel.webp');
}

#expand-card-slot {
  background-image: url('/static/images/CollectionGame/ui/expand-cardslot.webp');
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slot-expand-cost {
  color: #000;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.cost-icon {
  width: 20px;
  height: 20px;
}

.card-slot-wrapper {
  background-color: #1e1e1e;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 4px 10px;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  height: 32px;
}

.cards-per-row-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #1e1e1e;
  border-radius: 6px;
  padding: 4px 8px;
  height: 32px;
  font-size: 13px;
  color: #ddd;
}

.cards-per-row-wrapper select {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  height: 24px;
  font-size: 13px;
}

.duelcard-ui-btn { 
  width: 120px;
  height: 50px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card {
  background-color: #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.card img.job-illustration {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card .abilities-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.card .ability-image {
  width: 24px;
  height: 24px;
}

.card p {
  font-size: 0.85rem;
  color: white;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .button-container {
    display: flex;
    align-content: center;
    padding: 0;
    gap: 6px;
    margin-top: 10px;
  }

  .buy-row, .action-row {
    gap: 6px;
    flex-direction: row;
    align-items: stretch;
  }

  .buy-card-btn {
    width: 80px;
    height: 80px;
  }

  .duelcard-ui-btn {
    width: 75px;
    height: 30px;
  }

  #expand-card-slot {
    font-size: 12px;
  }

  .slot-expand-cost {
    font-size: 11px;
    margin-top: 8px;
  }

  .cost-icon {
    width: 16px;
    height: 16px;
  }

  .card-slot-wrapper,
  .cards-per-row-wrapper {
    font-size: 9px;
    height: 26px;
    padding: 2px 6px;
    gap: 4px;
  }

  .cards-per-row-wrapper select {
    font-size: 11px;
    height: 20px;
  }

  .card {
    border-radius: 6px;
    font-size: 0.8rem;
    min-width: 0;
    padding: 2px;
  }

  .card img.job-illustration {
    max-width: 100%;
    height: auto;
  }

  .card .abilities-container {
    gap: 2px;
    margin-top: 2px;
  }

  .card .ability-image {
    width: 8px;
    height: 8px;
  }

  .card p {
    font-size: 7px;
    margin-top: 2px;
  }  
  
  .exp-bar {
    position: absolute;
    bottom: 10px;
    left: 10%;
    width: 80%;
    height: 5px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
  }

  .exp-bar-inner {
    height: 100%;
    background-color: orange;
    transition: width 0.3s;
  }

  .exp-bar-inner.full {
    background-color: cyan;
  }

  .exp-bar-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
  }

  .card-grid {
    margin-bottom: 240px;
  }
}