@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

* {
  border: initial;
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  outline: none;
  padding: 0;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.card__wrapper {
  display: flex;
  flex-direction: row;
}

.card {
  display: flex;
  width: 300px;
  padding: 1rem;
  background-color: #252525;
  border-radius: 0px 0px 12px 12px;
  justify-content: space-between;
  align-items: center;
}

.card__info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.card__avatar {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  object-fit: cover;
}

.card__info span {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.card__info p {
  color: #919191;
  font-size: 13px;
  font-weight: 400;
}

button {
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
  background-color: #2d80ff;
  font-weight: 400;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: 0.3s all ease;
}

button span {
  font-size: 12px;
  color: #656565;
}

button:hover {
  opacity: 0.8;
}

button:active {
  transform: scale(0.9);
}

.banner__wrapper {
  position: relative;
  overflow: hidden;
}

.banner {
  position: relative;
  width: 100%;
  height: 150px;
}

.banner img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0px 0px;
}

.games {
  display: flex; /* Use flexbox for horizontal layout */
  flex-wrap: wrap; /* Allow wrapping to the next line */
  justify-content: center; /* Center the cards horizontally */
  gap: 16px; /* Space between cards */
  padding: 20px; /* Padding around the flex container */
}

.category-dropdown {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px; /* Rounded corners */
  z-index: 1;
  top: 70px; /* Adjusted this to keep dropdown below the search bar */
  left: 50%; /* Center dropdown horizontally under search bar */
  transform: translateX(-50%); /* Center alignment for the dropdown */
  width: 150px; /* Set a fixed width for the dropdown */
}

.category-option {
  padding: 10px;
  cursor: pointer;
}

.category-option:hover {
  background-color: #f0f0f0;
}

.no-results {
  color: white; /* White text */
  font-size: 18px; /* Adjust font size as needed */
  text-align: center; /* Center align the text */
  margin: 0; /* Remove any top margin */
  position: absolute; /* Use absolute positioning for centering */
  top: 50%; /* Position it vertically centered */
  left: 50%; /* Position it horizontally centered */
  transform: translate(-50%, -50%); /* Centering transform */
}
