body>footer {
    width: 100%;
    margin-top: auto;
}

footer {
    position: relative;
    width: 100%;
}

footer::before {
    content: "";
    position: absolute;
    top: -1.2rem;
    right: 0;
    width: 16rem;
    height: 3rem;
    background-color: #5E6B75;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

.footer-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container p {
    color: white;
}

.footer-container>section {
    min-width: 0;
}

.section-one {
    flex: 1;
    background-color: #5E6B75;
    color: white;
}

.section-one h2,
.section-one p,
.section-one li {
    color: white;
}

.section-two {
    flex: 1.5;
    background-color: #234B5A;
}

footer .section-one-header,
footer .section-two-header {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer .section-two-header img {
    max-height: 100px;
    max-width: auto;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 1rem 0 1rem 0;
    border-radius: 1px;
}

.section-one-content,
.section-two-content {
    width: 95%;
    margin: 0 auto;
}

.section-one-content h3,
.section-two-content h3 {
    margin: 2rem 0 2rem 0;
}

.section-one-content h3,
a,
.section-two-content h3,
p {
    color: white;
}

.section-one-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    
    border-top: 1px solid white;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    color: white;
}

.footer-bottom .section-one,
.footer-bottom .section-two {
    display: flex;
    align-items: center;
}

.footer-bottom .section-one {
    background-color: #5E6B75;
}

.footer-reference {
    margin: 0 auto;
    padding: 0;
    width: 70%;
}

.footer-bottom a {
    font-size: 1.6rem;
}

.footer-bottom .section-two {
    justify-content: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: row;
    width: 70%;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
}

.credit p,
.credit a {
    font-size: 1.2rem;
}

.mobile-footer-nav {
    display: none;
}

.mobile-footer-separator{
    display: none;
}

/* För mycket små skärmar: centrera menyn */
    @media only screen and (max-width: 768px) {
        footer {
            background-color: #234B5A;
            width: 100%
        }
        
        .footer-container {
            display: flex;
            flex-direction: column;
            width: 100%;
            justify-content: center;
        }

        .footer-container > section {
            width: 100%;
        }

        .section-one {
            display:none;
        }

        footer::before {
            display: none;
        }

        .mobile-footer-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .mobile-footer-nav h3{
            color: white;
            margin: 2rem 0 2rem 0;
        }

        .mobile-footer-nav ul {
            padding:0;
        }

        .mobile-footer-nav li {
            list-style: none;
        }

        .section-two-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 2rem;
        }

        .footer-bottom {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            background-color: #234B5A;
            border: none;
        }

        .footer-reference {
            display:flex;
            align-items: center;
            justify-content: center;
            margin-top: 2rem;
        }

        .footer-bottom .section-one {
            background-color: #234B5A;
            margin: 2rem 0 2rem 0;
            display:flex;
            justify-content: center;
            align-items: center;
            width:100%;
        }

        .footer-bottom .section-two {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .footer-bottom-content {
            width: 95%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .mobile-footer-separator {
            display: block;
            width: 100%;
            height: 1px;
            background-color: white;
            margin: 1.5rem 0;
        }
    }
    