.home-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.home-btn:hover {
    background-color: #2980b9;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #1e1e1e;
    color: #f0f0f0;
}

header {
    background: #282828;
    padding: 1rem;
    border-bottom: 2px solid #444;
}

h1 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

#filters,
#sorting {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#color-filters label {
    margin-right: 1rem;
}

#sort-select {
    padding: 0.25rem;
    background: #333;
    color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 4px;
}

main {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.card {
    background: #2b2b2b;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.02);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #fff;
}

.bar-group {
    display: flex;
    height: 16px;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.bar {
    height: 100%;
}

.bar-group-stack {
    display: flex;
    height: 20px;
    width: 100%;
    overflow: hidden;
    border-radius: 3px;
}

.word-list {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    #filters,
    #sorting {
        flex-direction: column;
    }
}
