* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Dosis', sans-serif;
}

body {
    background-color: #181818;
    color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #111;
}

.logo img {
    width: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#search-bar, #type-filter, #attribute-filter {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #222;
    color: #fff;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card h2 img.attribute-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
}
        
.attribute-icon {
    width: 24px;
    height: 24px;
}

.attribute-change {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
}
.attribute-change img.attribute-sub-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* */

#themeToggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
}

body.light-mode {
    background-color: #f5f5f5;
    color: #000;
}

body.light-mode header {
    background-color: #e0e0e0;
}

body.light-mode nav ul li a {
    color: #000;
}

/* Inputs & Selects */
body.light-mode #search-bar,
body.light-mode #type-filter,
body.light-mode #attribute-filter {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
}

/* Cards */
body.light-mode .card {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* Optional: Card hover effect */
body.light-mode .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Main headings */
body.light-mode h1 {
    color: #000;
}

/* Form container area */
body.light-mode .filters {
    background-color: transparent;
}

/* Card grid background (optional) */
body.light-mode .cards-grid {
    background-color: transparent;
}

/* Icons, buttons, and other dark-specific items */
body.light-mode .fa-solid {
    color: #000;
}

/* Light Mode: HSP container */
body.light-mode .hsp-container {
    color: #000;
}

/* Light Mode: number colors (these can stay as-is unless you want variants) */
body.light-mode .number-1 { color: red; }
body.light-mode .number-2 { color: goldenrod; }
body.light-mode .number-3 { color: teal; }

/* Light Mode: card hover effect */
body.light-mode .card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.15); /* lighter shadow */
}

/* Light Mode: flip button */
body.light-mode .flip-button {
    background-color: #e0e0e0;
    border: 1px solid #bbb;
    color: #000;
}

body.light-mode .flip-button i {
    color: #000;
}

/* Close button in light mode */
body.light-mode .close-button {
    color: #000;
}

/* Sort buttons in light mode */
body.light-mode .sort-button {
    background-color: #e0e0e0;
    border: 1px solid #bbb;
    color: #000;
}

/* Optional: Sort button icon color */
body.light-mode .sort-button i {
    color: #000;
}