footer {
  width: 100%;
  background-color: var(--gray-10);
}

footer .desc .logo-wrapper .image {
  width: 150px;
  height: auto;
  display: flex;
  align-items: center;
  margin: 4px 0;
}

footer .desc .logo-wrapper .image img {
  width: 100%;
  height: 100%;
}

footer .desc .logo-wrapper p {
  width: 200px;
  margin: 0;
  line-height: 21px;
  letter-spacing: 0.025em;
  font-family: "WISE", Helvetica, Arial, sans-serif !important;
}

/* Same as the button component */
footer .scroll-to-top {
  text-transform: uppercase;
  background: var(--gradient-1-background);
  background: var(--gradient-1-background-moz);
  background: var(--gradient-1-background-webkit);
  background: var(--gradient-1-background-gradient);
  filter: var(--gradient-1-background-filter);
  color: var(--foreground);
  padding: 4px 12px;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  position: absolute;
  left: 50%;
  z-index: 1;
  font-size: 14px;
}

footer .scroll-to-top::before {
  content: url(../images/icon_arrow_up.svg);
  margin-right: 5px;
  position: relative;
  top: -4px;
}
footer .scroll-to-top:focus-visible {
  outline: 1px solid var(--foreground);
}

.menu-footer-container .secondary-menu,
.menu-footer-socials-container .secondary-menu {
  margin: 0;
  padding: 0;
}

.menu-footer-container .secondary-menu .menu-item,
.menu-footer-socials-container .secondary-menu .menu-item {
  margin-top: 0;
  margin-bottom: 8px;
  list-style: none;
}

.menu-footer-container .secondary-menu .menu-item a,
.menu-footer-socials-container .secondary-menu .menu-item a {
  text-decoration: none;
  opacity: 0.8;
}

.menu-footer-container .secondary-menu .menu-item a:hover,
.menu-footer-socials-container .secondary-menu .menu-item a:hover {
  border-bottom: 2px solid var(--foreground);
}

footer .cred {
  background-image: url(../images/Discovery.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: auto;
}

footer .cred .spacing {
  background-color: var(--background);
  margin: 0 auto; /* overwritting spacing initial margin */
}

footer .cred .partner .wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

footer .cred .partner .wrapper a {
  display: flex;
  align-items: center;
  padding: 5px;
}

footer .cred .funder .wrapper {
  display: flex;
  align-items: center;
  height: 60%;
}

footer .cred .funder a img {
  max-width: 170px;
  height: auto;
}

/* S - M */
@media (min-width: 961px) {
  .menu-footer-container .secondary-menu .menu-item a,
  .menu-footer-socials-container .secondary-menu .menu-item a {
    font-weight: 400;
    font-size: 17px;
  }
}

/* L - XL */
@media (min-width: 961px) {
  .menu-footer-container .secondary-menu .menu-item a,
  .menu-footer-socials-container .secondary-menu .menu-item a {
    font-weight: 400;
    font-size: 20px;
  }
}

/* S */
@media (max-width: 479px) {
  /* 4 columns */
  footer {
    margin-top: 40px;
  }

  footer .desc {
    grid-column: 1 / 5;
  }
  footer .site-info {
    grid-column: 1 / 5;
  }
  footer .links {
    grid-column: 1 / 5;
  }
  footer .partner {
    grid-column: 1 / 5;
  }
  footer .funder {
    grid-column: 1 / 5;
  }
  footer .cred {
    padding: 20px;
  }

  /* Other css than grid */
  footer .desc .logo-wrapper {
    display: flex;
    flex-direction: column;
  }
  footer .desc .logo-wrapper p {
    padding-top: 16px;
  }
  footer .cred .funder .wrapper {
    margin: 0px auto 100px;
    justify-content: center;
  }
  footer .cred .partner .wrapper a {
    width: 49%;
    margin-bottom: 50px;
    justify-content: center;
  }
  footer .cred .partner .wrapper {
    justify-content: space-between;
    justify-content: center;
  }

  .chalmers {
    width: 55px;
  }
  .kth {
    width: 60px;
  }
  .liu {
    width: 90px;
  }
  .lulea {
    width: 108px;
  }
  .su {
    width: 66px;
  }
  .uppsala {
    width: 67px;
  }
  .lund {
    width: 48px;
  }

  footer .cred .funder a img {
    width: 150px;
  }

  footer .links {
    padding-bottom: 32px;
  }
}

/* M - XL */
@media (min-width: 480px) {
  footer {
    margin-top: 60px;
  }

  /* Other css than grid */
  footer .desc .logo-wrapper {
    display: flex;
    flex-direction: row;
  }

  footer .desc .logo-wrapper p {
    padding-left: 16px;
  }

  footer .spacing {
    padding: 0px 40px 33px !important;
  }

  footer .cred .partner .wrapper {
    justify-content: left;
  }

  footer .desc,
  footer .site-info,
  footer .links {
    padding: 32px 0;
  }

  .chalmers {
    width: 65px;
  }
  .kth {
    width: 71px;
  }
  .liu {
    width: 111px;
  }
  .lulea {
    width: 135px;
  }
  .su {
    width: 83px;
  }
  .uppsala {
    width: 84px;
  }
  .lund {
    width: 60px;
  }
  .kaw {
    width: 154px;
  }
}

/* M */
@media (min-width: 480px) and (max-width: 600px) {
  /* 8 columns */
  footer .desc {
    grid-column: 1 / 9;
  }
  footer .site-info {
    grid-column: 1 / 9;
  }
  footer .links {
    grid-column: 1 / 9;
  }
  footer .partner {
    grid-column: 1 / 9;
  }
  footer .funder {
    grid-column: 1 / 9;
  }
  footer .cred {
    padding: 32px;
  }
  footer .cred .partner .wrapper a {
    width: 49%;
    margin-bottom: 50px;
    justify-content: center;
  }
  footer .cred .funder .wrapper {
    margin: 0px auto 100px;
    justify-content: center;
  }
}
@media (min-width: 600px) and (max-width: 960px) {
  /* 8 columns */
  footer .desc {
    grid-column: 1 / 6;
  }
  footer .site-info {
    grid-column: 6 / 9;
  }
  footer .links {
    grid-column: 1 / 9;
  }
  footer .partner {
    grid-column: 1 / 9;
  }
  footer .funder {
    grid-column: 1 / 9;
  }
  footer .cred {
    padding: 40px;
  }
  footer .cred .partner .wrapper a {
    width: 25%;
    justify-content: flex-start;
    margin-bottom: 50px;
  }
  footer .cred .funder .wrapper {
    margin: 0px auto 100px;
    justify-content: flex-start;
  }
}

/* L */
@media (min-width: 960px) and (max-width: 1400px) {
  footer .cred .partner .wrapper a {
    min-width: 21%;
    margin-bottom: 50px;
  }
}

/* L */
@media (min-width: 960px) {
  /* 12 columns */
  footer .desc {
    grid-column: 1 / 6;
  }
  footer .site-info {
    grid-column: 7 / 10;
  }
  footer .links {
    grid-column: 10 / 13;
  }
  footer .partner {
    grid-column: 1 / 10;
  }
  footer .funder {
    grid-column: 10 / 13;
  }
  footer .cred {
    padding: 40px;
  }
  footer .cred .partner .wrapper a {
    justify-content: flex-start;
  }
  footer .cred .funder .wrapper {
    justify-content: flex-start;
  }
}

@media (min-width: 1400px) {
  footer .cred .partner .wrapper a {
    margin-right: 4.8%;
  }

  footer .partner {
    grid-column: 1 / 11;
  }
  footer .funder {
    grid-column: 11 / 13;
  }
}
