:root {
  --shell-width: 960px;
  --shell-half: 480px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, var(--shell-width));
  height: 117px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 10px 5px 9px;
  background-image: url("../image/home/footer background.png");
  background-size: 100% 100%;
  background-position: center;
}

.bottom-nav a {
  min-width: 0;
  height: 72px;
  color: white;
  text-decoration: none;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
}

.bottom-nav img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(82%);
}

.bottom-nav .active img {
  filter: none;
}

.bottom-nav .share-link {
  transform: translateY(-12px);
}

.bottom-nav .share-link img {
  width: 86px;
  height: 72px;
  filter: none;
  animation: footer-share-bounce 1.5s ease-in-out infinite;
}

@keyframes footer-share-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (min-width: 768px) {
  .bottom-nav {
    height: 145px;
  }

  .bottom-nav a {
    height: 82px;
    font-size: 14px;
  }

  .bottom-nav img {
    width: 51px;
    height: 51px;
  }

  .bottom-nav .share-link img {
    width: 99px;
    height: 84px;
  }
}

@media (max-width: 374px) {
  .bottom-nav {
    width: 100%;
  }

  .bottom-nav span {
    font-size: 13px;
  }
}
