header {
    position: absolute;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 4rem;
    padding-left: 4rem;
}

@media (max-width: 1024px) {
    header {
        padding-left: 2rem;
    }
}