.bg { position: absolute; right: 0%; width: 50%; height: 100%; background-color: var(--lightDark); } .flexCenter { height: 100%; display: flex; flex-direction: column; justify-content: center; } .container { position: relative; z-index: 1; display: flex; flex-direction: row; justify-content: space-evenly; align-items: center; } .icon { width: 1.25rem; height: 1.25rem; margin: 1rem auto 0 auto; } .buttonContainer { position: absolute; bottom: 0%; padding: 1rem; width: 100%; display: flex; flex-direction: column; align-content: center; justify-content: center; } @media screen and (max-width: 840px) { .bg { display: none; } .container { display: flex; flex-direction: column; justify-content: center; align-items: center; } .infosHolder { margin: 2rem auto 8rem auto; } }