html,
body {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  background-color: #0f0f0f;
  color: #e0e0e0;
}

.main-header {
  background-color: #FFFC00;
  padding: 20px 0 20px 0;
}

.title {
  text-align: center;
  margin: 0;
  font-size: 8em;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
}

.subtitle {
  text-align: center;
    color: #333333;
  font-family: "DM Sans", sans-serif;
  font-size: 1.1em;
  margin: 0;
  padding-bottom: 15px;
}


#card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

#controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    flex-wrap: wrap;
    background-color: #111111;
    border-bottom: 1px solid #222;
}

#search-bar {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    width: 250px;
}

#game-count {
    color: #888;
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
    margin: 0;
}


#sort-select, #genre-filter, #platform-filter{
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    cursor: pointer;
}

#mustplay-filter {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    cursor: pointer;
}

.badge {
    color: #FFFC00;
    font-weight: 600;
    margin: 0 0 8px 0;
}

#mustplay-filter:hover {
    background-color: #FFFC00;
    color: #000000;
    border-color: #FFFC00;
}

#mustplay-filter.active {
    background-color: #FFFC00;
    color: #000000;
    border-color: #FFFC00;
}

#mustplay-filter:not(.active) {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #444;
}



.card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-top: 3px solid #FFFC00;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 252, 0, 0.15);
  margin: 5px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.card-content {
  padding: 20px;
  font-family: "DM Sans", sans-serif;
  color: #e0e0e0;
}

.card-content h2 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.expand-hint {
  color: #999;
  font-size: 16px;
  margin-top: 10px;
}

.footer {
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
}


.card-content .platform-logo {
  width: auto;
  height: 30px;
  object-fit: contain;
  margin-right: 5px;
}


button {
  text-align: center;
  background-color: #666;
  border: none;
  padding-left: 10px;
  padding-right: 10px;
  height: 40px;
  border-radius: 10px;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin: 5px;
}


ul {
  padding: 0;
  margin: 0;
  list-style: none;
}



.difficulty-easy { color: #4caf50; }
.difficulty-medium { color: #ff9800; }
.difficulty-hard { color: #f44336; }
.difficulty-extreme { color: #9c27b0; }