footer {
  display: flex;
  justify-content: center;
  height: auto;
  margin-top: 20px;
  padding: 50px;

  background-color: rgba(0, 0, 0, 0.2);
}

#triangle-footer-cont {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 40%;

  z-index: -1;
}

#footer-cont {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 650px;
}

#cred-cont {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#cred-fwrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: -50px
}

#footer-slogan {
  opacity: 0.7;
}

#get-website-footer {
  text-decoration: none;
  color: inherit;

  padding: 10px 15px;

  border-radius: 5px;
  background-color: var(--blue);

  filter: drop-shadow(0 0 10px rgba(66, 135, 245, 0.5));
  transition: transform 0.2s ease;
}

#get-website-footer:hover {
  transform: scale(1.02);
}

#footer-email {
  padding-left: 25px;
}

#footer-email a {
  color: var(--text-color);
  text-decoration: none;
}

#footer-email a:hover {
  text-decoration: underline;
}

#footer-link-cont {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#footer-firstlink-cont {
  display: flex;
  gap: 20%;
}

.footer-link-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 150px;
}

.footer-link {
  cursor: pointer;
  position: relative;
  overflow: hidden;

  width: max-content;

  color: var(--text-color);

  opacity: 0.8;
  text-decoration: none;
}

.footer-link::after {
  position: absolute;
  left: 50%;
  bottom: 0;

  transform: translateX(-50%) scaleX(0);
  transform-origin: center;

  content: "";

  border-radius: 1px;
  
  width: 90%;
  height: 2px;

  background-color: var(--blue);

  transition: transform 0.2s ease;
  
  pointer-events: none;
}

.footer-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.footer-heading {
  font-size: 18px;
  font-weight: 400;
}

#footer-scndlink-cont {
  display: flex;
  justify-content: space-between;
}

#footer-copyright {
  opacity: 0.7;
}

.footer-icon {
  width: 25px;
  height: 25px;

  cursor: pointer;
}

.footer-icon-hidden {
  display: none;
} 

.legal-link {
  text-decoration: none;
  color: var(--blue);
}

.legal-link:hover {
  text-decoration: underline;
}

#footer-t1 {top: 10%; left: 60%; animation-name: floatingtrianglemin; animation-duration: 5s;}
#footer-t2 {top: 20%; left: 12%; animation-duration: 5.4s;}
#footer-t3 {top: 40%; left: 2%; animation-name: floatingtrianglemin; animation-duration: 4.2s;}
#footer-t4 {top: 60%; left: 80%; animation-duration: 4.6s;}

@media (max-width: 800px) {
  footer {
    height: auto;
  }

  #footer-cont {
    width: 100%;
    max-width: 600px;
    gap: 2rem;
  }

  #cred-fwrap {
    margin-left: 0;
    justify-content: center;
  }

  #footer-email {
    padding-left: 0;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
  }

  #footer-firstlink-cont {
    justify-content: space-between;
    gap: 1rem;
  }

  .footer-link-wrap {
    gap: 0.75rem;
  }

  #footer-firstlink-cont {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  #cred-fwrap {
    margin-left: 0;
    justify-content: center;
  }

  .footer-heading {
    width: 116px;
    font-size: 16px;
    
    text-align: left;
    margin-left: -20px;
  }

  .footer-link {
    font-size: 14px;
  }

  #footer-slogan {
    text-align: center;
    font-size: 14px;
  }

  #request-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #get-website-footer {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  .footer-icon {
    width: 20px;
    height: 20px;
  }

  #footer-scndlink-cont {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  #triangle-footer-cont {
    position: absolute;
    width: 100%;
    height: 100%;

    z-index: -1;
  }

  #footer-t1 {top: 80%; left: 60%; animation-name: floatingtrianglemin; animation-duration: 5s;}
  #footer-t2 {top: 60%; left: 10%; animation-duration: 5.4s;}
  #footer-t3 {top: 40%; left: 70%; animation-name: floatingtrianglemin; animation-duration: 4.2s;}
  #footer-t4 {top: 35%; left: 5%; animation-duration: 4.6s;}

}
