.creatures {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    
}

footer{
    margin-top: 15px;
}

.creature-card {
    display: flex;
    width: 500px;
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    align-items: stretch;
    border: 1px solid var(--accent-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-left: 15px;
    margin-right: 15px;
}

.creature-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 189, 0.3);
    border-color: var(--accent-color);
}

.creature-image {
    width: 180px;
    height: 100%;
    object-fit: cover;
    border-right: 3px solid var(--hover-color);
    display: block;
    transition: transform var(--transition-speed) ease;
}

.creature-card:hover .creature-image {
    transform: scale(1.05);
}

.creature-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.creature-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 255, 189, 0.2);
}

.creature-class {
    font-size: 16px;
    font-style: italic;
    color: var(--solana-purple-text);
    margin: 5px 0;
}

.creature-description {
    font-size: 14px;
    font-family: 'VT323', monospace;
    color: #aaa;
    margin-top: 5px;
    line-height: 1.4;
}

#filterForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background-color: var(--secondary-bg);
    padding: 15px;
    margin-bottom: 25px;
    border: 2px solid var(--accent-dark);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 20px;
    text-align: center;
    
}

#filterForm select {
    -webkit-appearance: none;  /* Chrome, Safari, Edge */
    -moz-appearance: none;     /* Firefox */
    appearance: none;   
    background-image: none;
    text-align: center;
    text-align-last: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--hover-color);
    color: var(--text-color);
    border: 2px solid var(--accent-dark);
    padding-left: 15px;
    padding-right: 15px;
    font-size: 0.95rem;
    font-family: 'Pixel', monospace;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    min-width: 150px;
}

#filterForm select:hover {
    background-color: var(--secondary-bg);
    border-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 0 8px rgba(0, 255, 189, 0.2);
}

#filterForm select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(0, 255, 189, 0.3);
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .creature-card {
        width: 100%;
        max-width: 400px;
        flex-direction: column;
    }
    
    .creature-image {
        width: 100%;
        height: 100%;
        border-right: none;
        border-bottom: 3px solid var(--hover-color);
    }
    
    #filterForm {
        flex-direction: column;
        align-items: center;
    }
    
    #filterForm select {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .creatures {
        gap: 15px;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .creature-card {
        width: 100%;
    }
    
    .creature-name {
        font-size: 18px;
    }
    
    .creature-class {
        font-size: 14px;
    }
    
    .creature-description {
        font-size: 13px;
    }
}