.cards_wrapper {
  justify-content: space-between;
  height: fit-content;
}
.card {
  width: 18%;
  height: fit-content;
  cursor: pointer;
}
.card:hover .image_wrapper img {
  transform-origin: center;
  opacity: 0.8;
}

.card .image_wrapper {
  width: 100%;
  height: 80%;
  margin-bottom: 1rem;
  overflow: hidden;
}
.card .image_wrapper img {
  width: 100%;
}

.card h2 {
  font-size: 1.5rem;
  text-align: center;
}
#active_ingredients .card {
  width: 15%;
}
#active_ingredients .icon {
  height: fit-content;
}

.text_image_wrapper {
  overflow: hidden;
}

.article li {
  margin-bottom: 0.3rem;
}

.comment_balloon_wrapper {
  position: relative;
  height: 100%;
}
.comment_balloon {
  position: absolute;
  bottom: 70%;
  left: 0.5rem;
  height: 1.2rem;
  padding: 0 0.5rem;
  width: max-content;
  border-radius: 0.4rem;
  color: white;
  background-color: rgb(215, 68, 59);
  font-size: 1rem;
  z-index: 1;
  display: none;
  opacity: 0;
  transition: all 1s;
  font-family: Gilroy-bold;
}

.comment_balloon::before {
  border-bottom: 0.5rem solid rgb(215, 68, 59);
  border-left: 0.5rem solid transparent;
  border-right: 0px solid transparent;
  border-top: 0px solid transparent;
  content: "";
  position: absolute;
  bottom: 0rem;
  left: -0.3rem;
  transform: rotate(-20deg);
  z-index: -1;
}
#active_ingredients a:hover ~ .comment_balloon_wrapper .comment_balloon {
  display: block;
  opacity: 1;
}

.symrise_external_link_button {
  margin-top: 2rem;
  font-weight: bold;
  font-size: 1.3rem;
  border: none;
  background-color: rgb(180, 15, 41);
  color: white;
}

.symrise_external_link_button img {
  width: 1rem;
}

@media only screen and (max-width: 600px) {
  .text_image_wrapper {
    flex-flow: column;
  }
  .cards_wrapper {
    flex-direction: column;
    height: fit-content;
  }
  .cards_wrapper .card {
    flex-direction: row;
    width: 100%;
    height: 10vh;
    min-height: 10rem;
    border: white;
    position: relative;
    margin: 0;
    overflow: hidden;
    border: white solid 3px;
    border-radius: 3rem;
  }
  .cards_wrapper .card .image_wrapper::before {
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    z-index: 1;
  }
  .cards_wrapper .card .image_wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
    margin: 0;
  }
  .cards_wrapper .card .image_wrapper img {
    position: absolute;
    width: 101%;
    left: 0%;
    top: -212%;
  }
  .cards_wrapper .card:nth-child(2) .image_wrapper img {
    top: -428%;
  }
  .cards_wrapper .card:nth-child(4) .image_wrapper img {
    top: -262%;
  }
  .cards_wrapper .card h2 {
    position: absolute;
    left: 1rem;
    font-size: 2.5rem;
    color: rgb(105, 105, 105);
    z-index: 2;
  }
}
