.topic {
  font-size: 2rem;
  font-weight: bold;
  color: var(--bg-grey);
  text-align: center;
}

.bg {
  background-color: var(--bg-white);
  padding-bottom: 200px;
  padding-top: 100px;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.carousel-viewport {
  width: 1240px;
  /* Show partial slides left/right */
  overflow: hidden;
  box-sizing: content-box;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 400px;
  height: auto;
  margin: 0 10px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transform: scale(0.9);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.slide .caption {
  visibility: hidden;
  margin-top: 5px;
  font-size: 1em;
  font-weight: normal;
  color: var(--bg-grey);
  cursor: pointer;
  text-decoration: underline;
}

.slide.active {
  opacity: 1;
  transform: scale(1.1);
  padding-bottom: 20px;
  margin-top: 25px;
  text-decoration: underline;
}

.slide.active img {
  cursor: pointer;
}

.slide.active .caption {
  visibility: visible;
  text-decoration: underline;
}

#prevBtn,
#nextBtn {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--bg-grey);
  cursor: pointer;
  padding: 10px;
  height: 100%;
  transition: color 0.3s ease;
}

#prevBtn:hover,
#nextBtn:hover {
  color: black;
}

#prevBtn i,
#nextBtn i {
  pointer-events: none;
}

/* Card container */
.food-card {
  background-color: var(--bg-grey);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgb(79, 79, 79);
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Image on top */
.food-card img {
  width: 90%;
  height: 320px;
  margin: 20px auto 0 auto;
  /* center horizontally and top margin */
  object-fit: cover;
  border-radius: 15px;
  /* make corners round */
  display: block;
  /* make margin auto work */
}


/* Text content below image */
.card-content {
  padding: 10px;
  text-align: left;
}

.card-content h5 {
  font-weight: bold;
  margin-bottom: 5px;
  color: white;
}

/* Description text */
.card-content p {
  font-size: 0.85rem;
  color: white;
  line-height: 1.4;
  text-align: justify;
  margin: 0;
}

.slide.active .food-card img {
  border-radius: 15px;
}

/* Star + Order row
.rating {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 8px;
} */

/*.stars {
  color: #28a745;
  margin-right: 8px;
}

.orders {
  color: #666;
}*/


/* Make viewport responsive */
@media screen and (max-width:1919.80px) {
  .carousel-viewport {
    width: 1090px;
  }

  .slide {
    width: 350px;
  }

  /* Image on top */
  .food-card img {
    height: 270px
  }
}

@media screen and (max-width: 1399.98px) {
  .carousel-viewport {
    width: 940px;
  }

  .slide {
    width: 300px;
  }

  /* Image on top */
  .food-card img {
    height: 220px
  }
}

@media screen and (max-width: 1199.98px) {
  .carousel-viewport {
    width: 790px;
  }

  .slide {
    width: 250px;
  }

  /* Image on top */
  .food-card img {
    height: 170px
  }
}

@media screen and (max-width: 991.98px) {
  .carousel-viewport {
    width: 640px;
  }

  .slide {
    width: 200px;
  }

  /* Image on top */
  .food-card img {
    height: 120px
  }

}

@media screen and (max-width: 767.98px) {
  .carousel-container {
    padding: 0 10px;
    gap: 0;
  }

  .carousel-viewport {
    width: 100%;
    overflow: hidden;
  }

  .slide {
    flex: 0 0 100%;
    margin: 0;
    max-width: 100%;
    opacity: 0.3;
    transform: scale(0.9);
  }

  .slide.active {
    transform: scale(1);
    opacity: 1;
    padding-left: 7px;
    padding-right: 7px;
  }

  /* Image on top */
  .food-card img {
    height: 250px
  }
}

@media screen and (max-width: 575.98px) {

  /* Image on top */
  .food-card img {
    height: 200px
  }
}