#footer {
  background: linear-gradient(#7C6CB7, #5B4D8C);
}

#footer h2 {
  text-align: center;
  font-size: 24px;
  color: white;
  padding: 20px;
}


#footer .footer-block {
  padding: 20px;
}


#footer .footer-container {
  display: grid;
  grid-gap: 30px;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 20px;
  text-align: center;

  @media (max-width: 768px) {

    display: flex;
    flex-direction: column;
  }
}

.image-text {
  width: 100%;
}


.footer-container-flex {
  display: flex;
  flex-direction: column;
  width: 100%;

  @media (max-width: 768px) {
    flex-direction: row;
  }
}

.footer-container-flex picture img {
  width: 100%;
  vertical-align: bottom;
  height: auto;
  border-radius: 20px 20px 0px 0px;

  @media (max-width: 768px) {
    max-width: 150px;
    border-radius: 20px 0px 0px 20px;
  }
}

.footer-container-flex .image-text a {
  display: block;
  text-align: center;
  background-color: white;
  text-decoration: none;
  color: black;
  padding: 20px;
  border-radius: 0px 0px 20px 20px;

  @media (max-width: 768px) {
    display: flex;
    align-items: center;
    height: 100%;
    border-radius: 0px 20px 20px 0px;
  }
}