/* Base styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #1a202c;
    color: #cbd5e0;
}

.container {
    max-width: 1000px;
}

/* Typography */
.title-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Card styles */
.card {
    background-color: #2d3748;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Button styles */
.copy-button {
    width: 120px;
}

.action-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 150px;
}

.analyze {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin: 0.5rem auto;
    align-self: center;
}

/* Rarity text colors */
.text-common { color: #aaaaaa; }
.text-uncommon { color: #55ff55; }
.text-rare { color: #5555ff; }
.text-epic { color: #aa00aa; }
.text-legendary { color: #ffaa00; }
.text-mythic { color: #ff55ff; }

/* Layout containers */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.price-container {
    width: 100%;
    text-align: center;
}

.copy-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

.filter-container, .rarity-filter-container {
    width: 20%;
    display: flex;
    flex-direction: column;
    font: 20px;
}

.right-container {
    width: 55%;
    display: flex;
    flex-direction: column;
}

/* Filter styles */
.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filter-label {
    flex: 0 0 120px;
    text-align: right;
    padding-right: 15px;
    white-space: nowrap;
}

.filter-select {
    flex: 0 1 200px;
    background-color: #2d3748;
    color: #cbd5e0;
    border: 1px solid #4a5568;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Search container */
.search-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    width: 100%;
}

#searchInput {
    flex-grow: 1;
    margin-right: 10px;
}

#searchButton {
    width: auto;
}

/* Rarity filter */
#rarityFilter {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: flex-end;
}

.filter-button {
    position: relative;
    padding: 5px 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: black;
    white-space: nowrap;
    overflow: hidden;
    flex-grow: 1;
    text-align: center;
}

/* Rarity button colors */
.filter-button.button-common { background-color: #cccccc; }
.filter-button.button-uncommon { background-color: #a3d5a3; }
.filter-button.button-rare { background-color: #73a9c2; }
.filter-button.button-epic { background-color: #9561e2; }
.filter-button.button-legendary { background-color: #e2a61e; }
.filter-button.button-mythic { background-color: #e26f7c; }

/* Active/Inactive states */
.filter-button.active {
    opacity: 1;
}

.filter-button.inactive {
    opacity: 0.5;
}

.filter-button.inactive::after {
    content: "✘";
    color: red;
    font-size: 1.5em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.inactive::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Price styles */
.price-label {
    flex: 1;
    text-align: right;
    padding-right: 1rem;
}

.price-value {
    flex: 1;
    text-align: left;
}

.price-avg {
    font-size: 1em;
    color: #888;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .filter-button {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* CompactMode */

#compactModeButton.active {
    background-color: #4caf50;
  }
  
  .compact-mode .pet-details {
    display: none;
  }
  
  .compact-mode .pet-item {
    cursor: pointer;
  }
  
  .compact-mode .pet-item.expanded .pet-details {
    display: block;
  }

/* Pet Number */  

.pet-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.number-container {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number {
    font-size: 2rem;
    font-weight: bold;
    color: #cbd5e0;
    margin-left: 20px;
}

.pet-item > div:first-child {
    padding-left: 40px;
}

/* Outline */ 

.red-outline {
    outline: 3px solid red;
}