.page-wrapper {
    min-height: 100%;
}

.container.page-wrapper {
    margin-bottom: -50px;
}

.page-footer {
    z-index: 0;
    position: static;
}

#main_article {
    margin-bottom: 30px;
}

@media only screen and (max-width: 959px) {
    .page-buffer {
        height: 22px;
    }
    .page-footer {
        position: relative;
    }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    #right_menu {
        margin-top: 0;
    }
}

@media only screen and (max-width: 767px) {
    .page-buffer {
        height: 5px;
    }
    .page-footer {
        position: static;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    .page-footer {
        position: relative;
    }
}