* {
  min-height: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
}

body {
  background-color: #1a252f;
  font-family: "Arial", sans-serif;
}

header {
  background-color: #2c3e50;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 1rem;
}
header nav div.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ecf0f1;
}
header nav div.auth-block button {
  color: #ecf0f1;
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
header nav div.auth-block button.login-btn {
  background-color: transparent;
  border: 1px solid #ecf0f1;
}
header nav div.auth-block button.signup-btn {
  background-color: #e74c3c;
  border: none;
}

section.filters {
  background-color: #3e5871;
  padding: 1.5rem 0;
}
section.filters .filter-container {
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
}
section.filters .filter-container select, section.filters .filter-container input {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #233140;
  background-color: #ecf0f1;
}
section.filters .filter-container input.search-input {
  flex-grow: 1;
  max-width: 300px;
}

main.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

div.game-card {
  background-color: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
div.game-card:hover {
  transform: translateY(-5px);
}
div.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
div.game-card h3 {
  margin: 0.5rem 1rem;
  color: #2c3e50;
}
div.game-card p {
  margin: 0 1rem 1rem;
  color: #698bac;
  font-size: 0.9rem;
}

div.loader {
  text-align: center;
  color: #ecf0f1;
  padding: 1rem;
  display: none;
}

footer {
  background-color: #2c3e50;
  position: absolute;
  width: 100%;
  bottom: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
  }
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
@media (max-width: 480px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
  }
  header nav div.auth-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    justify-content: space-around;
  }
}
