footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* This will push items to the sides */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  box-sizing: border-box; /* Include padding in width calculation */
  background-color: var(--background-color);
  padding: 0 60px; /* Add consistent 60px padding on both sides */
  overflow: hidden; /* Prevent content from overflowing */
}

footer h2 {
  font-family: "Permanent Marker";
  font-size: 30px;
  text-shadow: 1px 1px 1px rgb(0, 0, 0);
  padding: 30px 0 0 0; /* Removed left/right padding as it's handled by footer */
  margin: 0;
  text-decoration: none;
  text-align: left;
  color: #fff;
}

footer a {
  text-decoration: none;
  color: #fff;
}

.footer-container {
  display: flex;
  flex-direction: column;
  margin: 0 0 30px 0;
  padding: 0; /* Removed padding as it's handled by footer */
  justify-content: flex-start; /* Align to the left */
  align-items: flex-start; /* Align to the left */
}

.footer-title {
  margin-bottom: 20px;
}

.footer-title h2 {
  font-size: 40px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column; /* Make links display vertically */
}

.footer-links li {
  display: flex;
  margin-bottom: 10px; /* Add vertical spacing between items */
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links a {
  display: flex;
  color: white;
  text-shadow: 1px 1px 1px rgb(0, 0, 0);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.link2:hover {
  text-decoration: underline;
}

.footer-social-media {
  display: flex;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
}

.footer-social-media a {
  margin-left: 10px;
}

.footer-social-media img {
  width: 100px;
  height: auto;
  padding-right: 15px;
}

.logo-footer {
  display: flex;
  align-items: center;
  max-width: 150px; /* Limit width to prevent overflow */
}

.logo-footer img {
  height: auto;
  width: 100%; /* Make image responsive */
  max-height: 150px; /* Maintain maximum height */
}

@media screen and (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 0 20px; /* Reduced padding for mobile */
  }

  footer h2 {
    color: #fff;
    margin-top: 0;
    padding: 20px 0;
    text-align: center;
  }

  .footer-container {
    align-items: center; /* Center items on mobile */
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-links li {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .link2 {
    justify-content: center;
    padding-bottom: 5px;
  }

  .logo-footer {
    margin: 20px 0;
    justify-content: center;
  }
}
