.logo-icon {
  height: 100%;
  width: auto;
}

.image-box {
  width: 100%;
  height: 0;
  padding-bottom: 52.375%;
  position: relative;
  background-color: #fafafa;
}

.image-box picture {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.image-box picture img {
  width: 100%;
  height: 100%;
}

.squar {
  padding-bottom: 100% !important;
}

.thumb-long {
  width: 100%;
  padding-bottom: 100% !important;
  overflow: hidden;
}

.thumb-long img {
  width: auto;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.circle {
  padding-bottom: 100% !important;
  border-radius: 50% 50%;
}

.normal {
  height: auto;
  padding-bottom: 0 !important;
}

.normal picture {
  position: static !important;
  display: block;
}

.base-height {
  height: 100%;
  width: auto;
  padding-bottom: 0 !important;
}

.base-height picture {
  height: 100%;
  width: auto;
  position: static !important;
  display: block;
}

.base-height picture img {
  height: 100%;
  width: auto;
  max-height: 290px;
}

.card {
  width: 100%;
  display: block;
  text-decoration: none;
}

.card .image-box {
  border-radius: 20%;
  box-shadow: 0 0.2rem 0.4rem 0 rgba(0, 0, 0, 0.2470588235);
  overflow: hidden;
}

.card .card-title,
.card .card-desc,
.card .grade {
  padding-left: 0.5rem;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.card .card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  height: 2.1rem;
  margin-top: 0.8rem;
}

.card .card-desc {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 1.9rem;
  font-size: 1.3rem;
  color: #666;
  font-weight: 300;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card .grade {
  height: 2rem;
  display: flex;
  align-items: center;
}

.card .grade .star {
  display: flex;
  align-items: center;
}

.card .grade .grade-num {
  font-size: 1.3rem;
  font-weight: 300;
  color: #666;
  margin-left: 1rem;
}

.mobile .image-box {
  box-shadow: none !important;
}

.mobile .card-title {
  font-size: 1.4rem !important;
}

.mobile .card-desc {
  display: none !important;
}

.mobile .grade-num {
  font-size: 1.4rem;
}

.star img {
  width: 12px;
  height: 12px;
}

.half-star {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  position: relative;
}

.half-star img:last-child {
  position: absolute;
  left: 0;
  top: 0;
  float: left;
}

body {
  background-color: #f2f5f9;
}

.gpt,
.ads-box {
  width: auto;
  text-align: center;
  padding: 0 0;
}

.gpt p,
.ads-box p {
  font-size: 10px;
  line-height: 18px;
  font-weight: 400;
  color: #a6a6a6;
  text-align: center;
  margin: 0 auto;
}

header {
  width: 100%;
  height: 50px;
  background-color: #fff;
  position: relative;
  z-index: 999;
  padding: 0 max(max(min((100% - 1080px)/2, 16.5rem), (100% - 1080px)/2), 5rem);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header #menu {
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  z-index: 2;
  padding: 0px 4px;
  margin-right: 1.6rem;
}

header #menu label {
  display: flex;
  width: 100%;
  height: 100%;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-evenly;
}

header #menu label span {
  display: block;
  width: 100%;
  height: 2px;
  position: relative;
  background-color: #6b6c7e;
  transform-origin: 0 0;
  transition:
    transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

header #menu label span:first-child {
  transform-origin: 0% 0;
}

header #menu label span:nth-child(3) {
  transform-origin: 0% 100%;
}

header .rtl {
  display: flex;
  height: 100%;
  align-items: center;
}

header .rtl #logo {
  height: 80%;
}

header #nav-link {
  display: flex;
  align-items: center;
}

header #nav-link a {
  color: #666;
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
}

header #nav-link a:first-child {
  margin-right: 8rem;
}

header input:checked ~ .rtl #menu label span {
  opacity: 1;
  transform: rotate(45deg) translate(0px, 1.5px);
}

header input:checked ~ .rtl #menu label span:nth-last-child(2) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

header input:checked ~ .rtl #menu label span:nth-child(3) {
  transform: rotate(-45deg) translate(0, -1.5px);
}

/* Footer styles are centralized in footer.css */

.app-card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 4px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.app-card:hover {
  transform-origin: center center;
  transform: scale(1.1);
  transition: all 0.5s cubic-bezier(0.175, 0.585, 0.12, 1.575);
  z-index: 999;
}

.app-card:hover .app-title {
  visibility: visible !important;
}

.app-card .card-content {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.app-card .card-content .app-title {
  width: 100%;
  height: 6.5rem;
  visibility: hidden;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(0, 0, 0, 0.5)
  );
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0 0;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  overflow: hidden;
  padding: 0 0.5rem;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 500;
  align-items: center;
  z-index: 99;
  text-align: center;
  justify-content: center;
}

.app-card .card-content .app-base {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  z-index: -1;
  word-wrap: break-word;
  text-decoration: none;
  color: rgba(0, 0, 0, 0);
}

.app-card .card-content.flash-effect .app-second-icon {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: flash-go 6s linear 3s infinite running;
  z-index: 98;
}

.app-card .card-content.flash-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  transform: translate3d(-55%, -5%, 0);
  opacity: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgb(255, 255, 255) 50%,
    transparent 100%
  );
  width: 200%;
  height: 200%;
  pointer-events: none;
  animation: card-flash 6s linear 3s infinite running;
  will-change: transform opacity;
  z-index: 99;
}

.app-card-secondary {
  box-shadow: none;
}

.app-card-secondary .card-content {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.app-card-secondary .app-title {
  font-size: 1.8rem;
  text-align: center;
  color: #000;
  margin-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-shadow {
  box-shadow: none;
}

.h5-browser-card::after {
  content: "";
  width: 47px;
  height: 43px;
  display: block;
  background-image: url("../../../gassets/images/h5_tip.svg");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: cover;
  position: absolute;
  bottom: -4px;
  left: 0;
  z-index: 9;
}

.rect-card .img-box {
  padding-bottom: 52.375% !important;
}

.rect-card .img-box.show-image .image-loading {
  display: none;
}

.rect-card .img-box .image-loading {
  width: 100%;
  height: auto;
  position: static !important;
}

@keyframes card-flash {
  0% {
    opacity: 0;
    transform: translate3d(-55%, -5%, 0);
  }

  1% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }

  10% {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
  }

  15% {
    opacity: 0;
    transform: translate3d(0, -50%, 0);
  }

  39.99% {
    opacity: 0;
    transform: translate3d(-55%, -5%, 0);
  }

  40% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }

  50% {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
  }

  66% {
    opacity: 0;
    transform: translate3d(0, -50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes flash-go {
  0%,
  50%,
  100% {
    opacity: 0;
  }

  10%,
  40% {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  :root {
    --column: 4;
  }
}

@media (min-width: 720px) {
  :root {
    --column: 5;
  }
}

@media (min-width: 900px) {
  :root {
    --column: 6;
  }
}

@media (min-width: 1200px) {
  :root {
    --column: 8;
  }
}

@media (min-width: 1366px) {
  :root {
    --column: 9;
  }
}

@media (min-width: 1440px) {
  :root {
    --column: 10;
  }
}

.ads-1 {
  grid-row: 11 / span 1;
  grid-column: 1 / span var(--column);
}

header {
  display: none;
}

#page {
  width: calc(100% - 30px);
  margin: 0 auto;
}

#page #app-list {
  width: 100%;
  list-style: none;
  margin: 0 0;
  padding: 15px 0 20px;
  display: grid;
  grid-template-columns: repeat(
    var(--column),
    calc((100% - 15px * (var(--column) - 1)) / var(--column))
  );
  grid-gap: 15px 15px;
}

#page #app-list .app-item {
  display: block;
}

#page #app-list .app-item:first-of-type {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

#page.app {
  width: calc(100% - 60px);
}

#page.app #app-list {
  grid-template-columns: repeat(
    var(--column),
    calc((100% - 30px * (var(--column) - 1)) / var(--column))
  );
  grid-gap: 30px;
}

#page.app #app-list .app-item .app-card .card-content {
  border-radius: 30px;
  overflow: hidden;
}

#page.app #app-list .app-item:first-of-type {
  grid-column: 1 / span 1;
  grid-row: 1 / span 1;
}
