@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

.categories-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 30px 0px;
}

.categories-container .description {
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 48%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.categories-container .description > h1 {
  font-size: 40px;
  font-weight: 800;
}

.categories-container .description > p {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-color-light);
  width: 80%;
}

.categories-container .categories-cards-container {
  display: flex;
  justify-content: center;
  gap: 0.75vw;
  align-items: center;
  /* width: 100%; */
  overflow-x: hidden;
}

.categories-container .categories-cards-container .scroll-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  font-size: 24px;
  color: var(--white);
  background-color: var(--secondary-color);
}

.categories-container .categories-cards-container .categories-wrapper {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-behavior: smooth;
  /* width: 95vw; */
  gap: 25px;
  color: var(--primary-color);
  padding: 30px 0px;
}

.categories-container .categories-wrapper::-webkit-scrollbar {
  display: none;
}

.categories-container .categories-wrapper > .category-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 150px;
  height: 130px;
  gap: 20px;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0;
  background-color: var(--white);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  cursor: pointer;
}

.categories-container .categories-wrapper > .category-card > img {
  width: 50px;
  height: 50px;
  object-fit: cover;

}

.categories-container .categories-wrapper > .category-card > .content {
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
}

.categories-container .categories-wrapper > .category-card > .content > h1 {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .categories-container {
    padding: 10px;
  }

  .categories-container .description {
    padding-left: 20px;
    text-align: left;
    width: 100%;
  }

  .categories-container .description > p {
    width: 100%;
  }

  .categories-container .categories-wrapper {
    gap: 10px;
    padding: 10px 20px;
  }

  .categories-container .categories-cards-container .scroll-button {
    display: none;
  }
}

@keyframes slide {
  from {
    transform: translateX(25.2%);
  }
  to {
    transform: translateX(-25%);
  }
}

.categories-cards-container:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), red);
}

.categories-cards-container:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), red);
}

.categories-cards-container:hover .categories-wrapper {
  animation-play-state: paused;
}

.categories-wrapper {
  display: inline-block;
  animation: 20s slide infinite linear;
}