footer {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    display: grid;
    
    padding: 20px;
    background-color: rgb(36, 36, 36);
    box-shadow: 0px -5px 10px 2px var(--shadow-better);
}

@media (max-width: 65em) {
    main {
        padding-bottom: 14em;
    }
    footer {
        height: 14em;
        grid-template-rows: 4em 8em;
    }
    #footer-scl {
        gap: 6em;
    }
    #footer-cta {
        display: none;
    }
}
@media (min-width: 65em) {
    main {
        padding-bottom: 9em;
    }
    footer {
        height: 9em;
        grid-template-columns: 15em 1fr 15em;
    }
    #footer-scl {
        gap: 5vh;
    }
    #footer-cta {
        display: grid;
        place-items: center;
    }
    #hdncta {
        display: none;
    }
}

.footerChild {
    height: 100%;
    width: 100%;
}

#footer-logo {
    /* background-color: tomato; */
    display: grid;
    place-items: center;
}
#footer-logo a img {
    height: 3em;
    width: auto;
    position: relative;
}

#footer-scl {
    /* background: royalblue; */
    display: flex;
    justify-content: center;
    align-items: center;
}
#footer-scl li a {
    color: white;
}

#footer-cta a img {
    height: 4em;
}

/* ############## */

.footer-links {
    position: relative;
    display: grid;
    place-items: center;
}
.footer-links:hover .footerLinkTooltip {
    visibility: visible;
    opacity: 1;
    bottom: 120%;
}

.external-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3em;
    aspect-ratio: 1;

    z-index: 1;
    scale: 90%;
    border-radius: .6rem;
    transition: .3s ease;
}
.link-github:hover{background-color: var(--gh);}.link-youtube:hover{background-color: var(--yt);}.link-instagram:hover{background-color: var(--ig);}.link-facebook:hover{background-color: var(--fb);}.link-twitter:hover{background-color: var(--tw);}
.external-link:hover {
    scale: 100%;
    box-shadow: 0 5px 4px 1px var(--shadow-better);
}
.external-link img {
    height: 2em;
}

.footerLinkTooltip {
    position: absolute;
    bottom: 80%;
    color: var(--medium-grey);
    background: rgb(234, 222, 245);
    padding-inline: 10px;
    border-radius: .4rem;
    font-weight: 500;

    z-index: 0;
    transition: .2s ease;
    visibility: hidden;
    opacity: 0;
}

/* ############## */

#hdncta a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3em;
    aspect-ratio: 1;

    z-index: 1;
    background: var(--good-red);
    border-radius: .6rem;
    transition: .8s ease;
}
#hdncta a:hover {
    box-shadow: 0 5px 4px 1px var(--shadow-better);
    filter: hue-rotate(80deg) brightness(170%);
}
#hdncta a img {
    height: 3em;
}

#copyright-cont {
    position: absolute;
    bottom: 0;
    overflow: hidden;
    width: 100vw;
    height: 1em;
    display: flex;
    /* align-items: flex-end; */
    z-index: 9;
    /* background-color: violet; */
}
#copyright-cont:hover #copyright {
    bottom: 0;
}
#copyright {
    position: absolute;
    bottom: -100%;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: .8em;
    transition: bottom .2s ease;
    cursor: default;
}
