html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
#main {
    flex: 1 0 auto;
}

#footer {
    background: #e9e8e6;
    padding: 30px 0;
    color: #555;
    font-size: 14px;
    width: 100%;
    box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

#footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#footer .copyright {
    font-weight: 500;
}

#footer .copyright span {
    color: #222;
    font-weight: 700;
}

#footer .credits {
    font-size: 13px;
}

#footer .credits a {
    color: #eab203;
    font-weight: 600;
    transition: color 0.3s ease;
}

#footer .credits a:hover {
    color: #c99400;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 25px;
    bottom: 25px;
    z-index: 996;
    background: #eab203;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.back-to-top i {
    font-size: 28px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: #c99400;
    transform: translateY(-5px);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preloader:before {
    content: "";
    position: relative;
    border: 6px solid #eab203;
    border-top-color: #e9e8e6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    #footer {
        text-align: center;
        padding: 20px 0;
    }

    #footer .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}