.footer-section {
    width: 100%;
    background-color: var(--bg-base1);
    padding: 15px 0 15px 0;
    margin-top: auto;
}

.footer-section * {
    background-color: var(--bg-base1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;

    max-width: 1200px;
    margin: 0 auto;

    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-element h3 {
    margin-bottom: 15px;

    color: var(--text-hint-main);
}

.footer-element p {
    line-height: 1.6;

    color: var(--text-sub);
}

.footer-element a {
    text-decoration: none;

    color: var(--text-sub);
    transition: color 0.2s;
}

.footer-bottom {
    text-align: center;

    border-top: 1px solid var(--bg-base);
    padding-top: 20px;
    padding-bottom: 20px;

    font-size: 0.9rem;

    color: var(--text-sub-muted);
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

#contacts-email {

    cursor: pointer;
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
}

#contacts-email:hover {
    color: var(--text-hint-main-muted);
    text-decoration: underline;
}

#contacts-email::after {
  content: attr(data-tooltip); /* Grabs text from the data-tooltip attribute */
  position: absolute;
  bottom: 115%; /* Position above the text */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none; 
}

#contacts-email:hover::after {
  opacity: 1;
}

.social-links {
    list-style: none;

}

.social-links a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--text-hint-main-muted);
    text-decoration: underline;
}

/* Portrait Mode */
@media (max-width: 900px) {
    .footer-element h3 {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: start;
        gap: 30px;
        margin-left: 5%;
        margin-right: 5%;
    }
}
