@keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(359deg); } } .main-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; @media (max-width: 470px) { margin-bottom: 132px; } @media (min-width: 470px) { margin-bottom: 3.4375em; } } .blog-content { img { max-width: 100%; } word-wrap: break-word; } .footer { text-align: left; //Why does text-align being center in .main-content affect the footer at all?! position: fixed; display: flex; flex-grow: 1; @media (max-width: 470px) { //mobile justify-content: flex-end; align-items: center; flex-direction: row; } @media (min-width: 470px) { //desktop justify-content: center; align-items: center; flex-direction: row; height: 3.4375em; } bottom: 0; left: 0px; width: 100%; .img-container { display: flex; flex-direction: row; @media (max-width: 470px) { flex-direction: column; } img { display: flex; height: 45px; margin-right: 0.625em; @media (max-width: 470px) { //even smoler mobile height: 30px; margin-top: 0.3125em; margin-bottom: 0.3125em; margin-right: 0.3152em; } } } } .homepage-main { img { width: 25%; height: 25%; } display: absolute; text-align: center; top: 0; transform: translateY(25%); } .footer-entries { flex: 1; margin-left: 0.625em; @media (max-width: 470px) { margin-left: 0.3152em; } a:not(:last-child) { margin-right: 0.625em; } } .white { background-color: #222222; } .grey { color: #ffffff; } .padding { position: relative; padding-left: 10px; } .padding-right { position: relative; padding-right: 10px; }