.gamelist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  padding: 1rem;
  border-radius: 5px;
  margin: 10px 0;
  border-top: 0.25rem solid #38e57e;
  box-sizing: border-box;
  padding-bottom: 1rem;
  position: relative;
}

.gamelist a {
  min-height: 150px;
  max-height: 150px;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  text-align: center;
  border-radius: 10px;
  background-color: #fafafa;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: all 0.3s ease;
}
.gamelist a:hover {
  transform: scale(1.05);
  background-image: linear-gradient(0deg,rgba(255,255,255,.1) 70%,#222222);
}
.gamelist a:hover {
  background-color: #e1f0f6;
}

.gamelist a img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.gamelist .game-name {
  width: 100%;
  z-index: 1000;
  position: absolute;
  font-size: 15px;
  line-height: 1.2em;
  font-weight: 700;
  margin-bottom: 0;
  top: 0;
  left: 0;
  color: #fff;
  text-align: center;
  text-shadow: #222222 1px 1px 2px;
}
.you {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: -5px;
  right: -5px;
}
.you svg {
  fill: #fff;
  background-color: #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .gamelist {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
}
