body {
  background: linear-gradient(180deg, rgb(4, 140, 255) 30%, rgb(237, 247, 255) 100%);
}

.main {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  align-content: center;
}
.main p {
  width: 100%;
  color: #fff;
}
.main .p1 {
  font-size: 64px;
  font-weight: bold;
  margin-top: 10%;
}
.main .p2 {
  font-size: 24px;
  margin-top: 20px;
}

.games {
  display: flex;
  justify-content: center;
  margin-top: 100px;
  max-width: 980px;
  flex-wrap: wrap;
  padding-bottom: 70px;
  border-bottom: 2px solid #dcf3ed;
}
.games li {
  flex-shrink: 0;
  width: 225px;
  height: 126px;
  border-radius: 12px;
  background: #82c6ff;
  margin: 0 12px 24px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}
.games li a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 150px;
  height: 38px;
  background: #f89034;
  position: absolute;
  border-radius: 50px;
  border: 2px solid #fff;
  opacity: 0;
  bottom: 0;
}
.games li img {
  filter: grayscale(100%);
  transition: all 0.3s;
}
.games li.active img {
  filter: grayscale(0);
}
.games li.active:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background: #fff;
  border: 3px solid #fff;
}
.games li.active:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c8fff;
  border-radius: 12px;
  border: 5px solid #0072d3;
  box-sizing: border-box;
}
.games li.active:hover img {
  transform: translateY(-25px) scale(0.8);
  position: relative;
  z-index: 5;
}
.games li.active:hover a {
  z-index: 5;
  text-decoration: none;
  opacity: 1;
  bottom: 10px;
}

@media screen and (max-width: 736px) {
  .main .p1 {
    font-size: 40px;
  }
  .main .p2 {
    font-size: 14px;
  }
  .games {
    width: 80%;
    margin-top: 40px;
  }
  .games li {
    width: 40%;
  }
  .games li img {
    width: 80%;
  }
  .games li a {
    width: 80%;
    height: 30px;
  }
  .games li:nth-child(2) img, .games li:nth-child(4) img, .games li:nth-child(5) img {
    width: 50%;
  }
}