body,html{height:100%;margin:0}body{display:flex;flex-direction:column}main{flex:1 1}footer{order:2}