@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 400;
}

body {
  height: 100%;
  background: #1f2122;
  font-family: 'Poppins', sans-serif;
}

.search-input {
  font-family: inherit;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-form {
  background: #27292a;
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border-radius: 1.5rem;
  gap: 0.5rem;
}

.search-form button {
  border: 0;
  outline: 0;
  background: transparent;
  color: #666;
}

.top-nav {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  transition: all 250ms;
}

.active,
.nav-link:hover {
  color: #e75e8d;
}

.profile:hover {
  background: #e75e8d;
}

.profile:hover .nav-link {
  color: #fff;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
}

.profile {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: #27292a;
  padding: 0.5rem 0.7rem;
  border-radius: 2rem;
  transition: all 250ms;
}

.profile-img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

.toggle-nav {
  width: 35px;
  height: 35px;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  vertical-align: middle;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.toggle-nav span {
  background: #e75e8d;
  height: 2px;
  width: 100%;
}

.menu {
  height: max-content;
  transition: all 250ms ease;
  transition-property: all;
}

.toggle-nav span:first-child,
.toggle-nav span:last-child {
  width: 80%;
}

.banner {
  min-height: 200px;
  background-image: url(/images/banner-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border-radius: 1.5rem;
  color: #fff;
  padding: 4rem 3rem;
}

.main {
  padding: 3rem;
  background: #27292a;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: 1.5rem;
}

.banner-title {
  font-size: 45px;
  font-weight: 600;
  margin-top: 1rem;
  line-height: 120%;
  margin-bottom: 1.5rem;
}

.text {
  color: #e75e8d;
  font-weight: 700;
}

.browse {
  background: #e75e8d;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
  outline: 0;
  padding: 0.7rem 1.7rem;
  font-family: inherit;
  border-radius: 1.5rem;
  font-size: 15px;
  cursor: pointer;
  transition: all 250ms;
}

.browse:hover {
  color: #e75e8d;
  background: #fff;
}

.popular {
  background: #1f2122;
  border-radius: 1.5rem;
  color: #fff;
  padding: 1.5rem;
  margin: 4rem 0;
}

.popular h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.text-underline {
  font-weight: 700;
  text-decoration: underline;
}

.card-img {
  border-radius: 1.4rem;
  margin-bottom: 0.7rem;
  width: 100%;
  height: auto;
}

.game-card {
  background: #27292a;
  border-radius: 1.5rem;
  padding: 1.8rem 1rem;
}

.rating,
.downloads {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.game-card h4 {
  font-weight: 600;
}

.fa-star {
  color: yellow;
}

.fa-download {
  color: #ec6090;
}

.platform {
  color: #666;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.popular .browse {
  margin: auto;
  transform: translateY(45px);
}

.game-name h4 {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.game-history h4 {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.download {
  border: 0;
  outline: 0;
  font-family: inherit;
  background: transparent;
  border: 1px solid #666;
  color: #666;
  padding: 1rem 2rem;
  border-radius: 1.8rem;
  cursor: pointer;
}
.game-img {
  border-radius: 1rem;
  width: 80px;
  height: 80px;
}

.games-list {
  margin-top: 3rem;
}

.item-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #27292a;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.game-history {
  display: flex;
  gap: 4.5rem;
  flex-wrap: wrap;
}

.game-name {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.download.finished {
  color: #e75e8d;
  border-color: #e75e8d;
}

.footer {
  text-align: center;
  color: #fff;
  margin: 2rem 0;
  padding: 0 2rem;
}

.footer p {
  margin-bottom: 0.7rem;
  font-weight: 300;
}

@media (width <= 1000px) {
  .search-form {
    display: none;
  }

  .banner-title {
    font-size: 35px;
  }

  .toggle-nav {
    display: flex;
  }

  .banner {
    text-align: center;
  }

  .menu {
    position: fixed;
    top: 13.5%;
    height: 0;
    width: 93%;
    transition: all 350ms ease;
    transition-property: all;
    overflow: hidden;
  }

  .item-wrapper,
  .game-history {
    justify-content: center;
  }

  .item-wrapper {
    gap: 2rem;
  }

  .game-history {
    text-align: center;
  }

  .top-nav {
    flex-direction: column;
    background: #fff;
    justify-content: center;
    padding: 1rem 0;
    gap: 1.8rem;
  }

  .profile-img {
    display: none;
  }

  .nav-item {
    border-bottom: 1px solid #eee;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 0.5rem 0;
  }

  .profile:hover > .nav-link {
    color: #e75e8d;
  }

  .profile:hover {
    background: none;
  }

  .nav-item:last-child {
    padding: 0;
  }

  .profile {
    background: #fff;
    border: 0;
  }

  .menu.show {
    height: 376px;
  }

  .browse {
    margin: auto;
  }

  .header {
    background: #fff;
  }

  .section-title {
    font-size: 25px !important;
  }
}
