html, body {
    height: 100%;
}

#conteiner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#branding {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto; 
}

#main {
    flex: 1 0 auto;
}

#footer {
    margin-top: auto;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    background: #f9f9f9;
}

#footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    html, body, #conteiner, #branding {
        height: auto;
        min-height: 0;
    }
    #main { flex: none; }
    #footer { margin-top: 0; }
}
