:root
{
    --footer-background-color: #F2F2F2;
    --footer-line-color: #E1E1E1;
    --footer-color: #383838;
    --footer-title-color: #121212;
    --footer-color-active: var(--secondary-color-active);
    --footer-font-weight: 400;
}


footer.footer
{
    position: relative;
    padding-top: 45px;
    padding-bottom: 35px;
    padding-left: 10vw;
    padding-right: 10vw;
    width: calc(100% - (10vw * 2));
    background-color: var(--footer-background-color);
    color: var(--footer-color);
    font-family: var(--primary-font-family);
    font-size: var(--secondary-font-size);
    font-weight: var(--footer-font-weight);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

nav.footer-nav
{
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, calc(100% / 5));
}

div.footer-nav-block
{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

div.footer-nav-block-big
{
    grid-column: span 2;
}

span.footer-nav-block-title
{
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--footer-title-color);
    font-weight: 500;
}

p.footer-nav-block-description
{
    position: relative;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 15%;
    font-family: var(--primary-font-family);
    font-size: var(--secondary-font-size);
}

div.footer-nav-block-links
{
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, 100%);
    /*grid-template-rows: repeat(4, auto);*/
    grid-auto-rows: auto;
}

div.footer-nav-block-big > div.footer-nav-block-links
{
    grid-template-columns: repeat(auto-fit, calc(100% / 2));
}

a.footer-nav-block-link
{
    position: relative;
    color: var(--footer-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--default-transition);
}

a.footer-nav-block-link:nth-child(-n + 4)
{
    grid-column: 1;
}

a.footer-nav-block-link:nth-child(5)
{
    grid-column: 2;
    grid-row: 1;
}

a.footer-nav-block-link:nth-child(6)
{
    grid-column: 2;
    grid-row: 2;
}

a.footer-nav-block-link:nth-child(7)
{
    grid-column: 2;
    grid-row: 3;
}

a.footer-nav-block-link:nth-child(8)
{
    grid-column: 2;
    grid-row: 4;
}

a.footer-nav-block-link:hover
{
    color: var(--footer-color-active);
}

div.footer-credits
{
    position: relative;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--footer-line-color);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


@media screen and (max-width: 1000px)
{
    /* Mobile version */

    nav.footer-nav
    {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    div.footer-nav-block
    {
        position: relative;
        margin-top: 50px;
    }

    div.footer-nav-block-links
    {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    div.footer-credits
    {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    div.footer-credits > *
    {
        position: relative;
        margin-top: 10px;
        margin-bottom: 10px;
        text-align: center;
    }
}