.footer { box-sizing: border-box; background: var(--primary-heading); height: calc(66rem / 16); padding: calc(14rem / 16) 0; width: 100%; } .container { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; max-width: calc(1440rem / 16); padding: 0 calc(48rem / 16); margin: 0 auto; height: 100%; } .text { color: var(--primary-background); font-style: normal; text-align: center; } @media only screen and (max-width: calc(768rem / 16)) { .footer { height: calc(120rem / 16); } .container { flex-direction: column-reverse; justify-content: space-around; padding: 0 calc(24rem / 16); } }