
/* =========================================================
   RUSTYEGG — GLOBAL PAGE LAYOUT
   STICKY FOOTER
========================================================= */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main SPA page containers */

#page-view,
#coinflip-container {
    flex: 1 0 auto;
    width: 100%;
}

/* Footer positioning */

#footer-container {
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}


/* =========================================================
   RUSTYEGG FOOTER
========================================================= */

.site-footer {
    --footer-bg: #0f0f1f;
    --footer-border: #1b1b2a;
    --footer-text: #c5c5cc;
    --footer-muted: #85858f;
    --footer-blue: #3478ff;

    width: 100%;
    position: relative;
    display: block;

    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);

    color: var(--footer-text);
    box-sizing: border-box;
    font-family: inherit;
}

.site-footer,
.site-footer * {
    box-sizing: border-box;
}


/* =========================================================
   MAIN CONTAINER
   CHAT AWARE
========================================================= */

.site-footer-inner {
    --footer-chat-space: var(--market-chat-reserve, 340px);

    width: min(
        1320px,
        calc(100% - var(--footer-chat-space) - 48px)
    );

    max-width: 1320px;

    margin-top: 0;

    margin-left: max(
        24px,
        calc(
            (
                100% -
                var(--footer-chat-space) -
                1320px
            ) / 2 - 20px
        )
    );

    margin-right: auto;

    min-height: 0;

    padding: 34px 34px 28px;

    display: grid;

    grid-template-columns: minmax(0, 1fr) 340px;

    column-gap: 60px;

    align-items: start;

    transition:
        width 0.4s ease,
        margin-left 0.4s ease;
}


/* =========================================================
   BRAND
========================================================= */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}


/* LOGO */

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    gap: 7px;

    width: fit-content;

    text-decoration: none;

    margin-bottom: 11px;
}

.footer-logo-icon {
    display: block;

    width: 43px;
    height: 43px;

    object-fit: contain;
}

.footer-logo-text {
    display: block;

    width: 112px;
    height: auto;
    max-height: 43px;

    object-fit: contain;
    object-position: left center;
}


/* DESCRIPTION */

.footer-description {
    max-width: 460px;

    margin: 0 0 6px;

    color: var(--footer-blue);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}


/* COPYRIGHT */

.footer-copyright {
    margin-top: 0;

    color: var(--footer-muted);

    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================================================
   LANGUAGE BUTTON
========================================================= */

.footer-language {
    width: 265px;
    max-width: 100%;

    height: 35px;

    margin-top: 12px;

    padding: 0 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #191825;

    border: 1px solid transparent;
    border-radius: 4px;

    color: #ededf2;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.footer-language:hover {
    background: #222033;
    border-color: #333248;
}

.footer-language-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-flag {
    font-size: 15px;
    line-height: 1;
}

.footer-language-arrow {
    color: #888994;
    font-size: 11px;
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-links {
    display: grid;

    grid-template-columns: 1fr 1fr;

    column-gap: 52px;

    align-items: start;
    justify-content: end;

    min-width: 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}


/* COLUMN TITLES */

.footer-heading {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;

    letter-spacing: 0.1px;
}


/* LINKS */

.footer-column a {
    display: block;

    width: fit-content;

    margin-bottom: 7px;

    color: #c5c5cc;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;

    text-decoration: none;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.footer-column a:hover {
    color: #ffffff;
    transform: translateX(3px);
}


/* =========================================================
   NARROW DESKTOP
========================================================= */

@media (max-width: 1250px) {

    .site-footer-inner {
        width: calc(
            100% - var(--footer-chat-space) - 36px
        );

        margin-left: 18px;
        margin-right: 18px;

        column-gap: 30px;
    }

    .footer-links {
        column-gap: 35px;
    }
}


/* =========================================================
   TABLET — CHAT SPACE REMOVED
========================================================= */

@media (max-width: 1200px) {

    .site-footer-inner {
        --footer-chat-space: 0px;

        width: calc(100% - 36px);

        max-width: 1160px;

        margin-left: 18px;
        margin-right: 18px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .site-footer-inner {
        width: calc(100% - 32px);

        max-width: none;

        margin-left: 16px;
        margin-right: 16px;

        grid-template-columns: 1fr;

        row-gap: 30px;

        padding: 30px 25px 25px;
    }

    .footer-links {
        width: 100%;

        max-width: 450px;

        grid-template-columns: 1fr 1fr;

        column-gap: 25px;
    }

    .footer-description {
        max-width: 480px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .site-footer-inner {
        width: calc(100% - 26px);

        margin-left: 13px;
        margin-right: 13px;

        padding: 27px 18px 22px;

        row-gap: 27px;
    }

    .footer-logo-icon {
        width: 39px;
        height: 39px;
    }

    .footer-logo-text {
        width: 105px;
    }

    .footer-description {
        font-size: 11px;
    }

    .footer-links {
        column-gap: 18px;
    }

    .footer-heading {
        font-size: 13px;
    }

    .footer-column a {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .footer-language {
        width: 100%;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .site-footer-inner {
        width: calc(100% - 22px);

        margin-left: 11px;
        margin-right: 11px;
    }
}
