/* Footer styles */
#footerContainer {
    position: relative;
    width: 100%;
    margin-top: 8rem;
    margin-bottom: 8rem;
    visibility: visible;
    z-index: 1;
}

footer {
    width: 100%;
    padding: 4rem;
    text-align: center;
    background-color: #fff;
    z-index: 666;
    position: relative;
    left: 0;
    right: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    visibility: visible !important;
}

/* 404 page: remove footer block and extra spacing */
body.page-404 #footerContainer,
body.page-404 #footerContainer.page-404 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background-color: #141414 !important;
}

body.page-404 footer,
body.page-404 #footerContainer.page-404 footer {
    background-color: #141414 !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    transition: all 0.3s ease-in-out;
    width: 100%;
    text-align: center;
}

footer h1:hover {
    color: #FF66CC;
    transform: scale(1.05);
}

footer p {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    transition: all 0.3s ease-in-out;
    width: 100%;
    text-align: center;
}

.footer-credits {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
}

.footer-credits p,
.footer-credits a {
    font-size: 1.4rem;
    line-height: 1.5;
    opacity: 0.05;
    transition: all 0.3s ease-in-out;
}

.footer-credits a {
    color: #FF66CC;
    text-decoration: underline;
}

.footer-credits p:hover,
.footer-credits p:hover a,
.footer-credits p:active,
.footer-credits p:active a,
.footer-credits p:focus-within,
.footer-credits p:focus-within a,
.footer-credits a:hover,
.footer-credits a:active,
.footer-credits a:focus-visible {
    opacity: 1;
    color: #66CCFF;
}

.footer-apologies {
    margin: 2rem auto;
    color: #66CCFF!important;
    width: 100%;
    text-align: center;
    white-space: no-wrap;
    word-break: keep-all!important;
}

/* Spinning copyright symbol */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.copyright-symbol {
    position: relative;
    display: inline-block;
    animation: spin 3s linear infinite;
    right: -15px;
    bottom: -15px;
}

.foxFooterText {
    position: relative;
    display: inline-block;
    top: 6.66px;
    right: -6.66px;
    transform: rotate(180deg);
    transition: all 0.3s ease-in-out;
}

.foxFooterText:hover {
    color: #FF66CC;
    transform: rotate(360deg);
}

/* Responsive styles */
@media (max-width: 868px) {
    #footerContainer {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
    
    footer {
        padding: 3rem;
    }
    
    footer h1 {
        font-size: 3.2rem;
    }

    body.page-404 #footerContainer,
    body.page-404 #footerContainer.page-404 {
        margin-top: 0;
        margin-bottom: 0;
    }

    body.page-404 footer,
    body.page-404 #footerContainer.page-404 footer {
        padding: 0 !important;
        background-color: #141414;
    }
}

@media (max-width: 430px) {
    #footerContainer {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    footer {
        padding: 2rem;
    }
    
    footer h1 {
        font-size: 2.4rem;
        letter-spacing: 0.025em;
    }

    body.page-404 #footerContainer,
    body.page-404 #footerContainer.page-404 {
        margin-top: 0;
        margin-bottom: 0;
    }

    body.page-404 footer,
    body.page-404 #footerContainer.page-404 footer {
        padding: 0 !important;
        background-color: #141414;
    }
} 