main { margin-top: 0; } form { width: 22rem; } @media only screen and (max-width: 700px) { main { margin-top: -15vh; } }