.content { height: 100%; position: relative; z-index: 1; padding: 4rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; } .title { color: var(--primary); margin-bottom: 8rem; } .cardRow { width: 100%; align-self: center; display: flex; justify-content: space-evenly; align-items: center; } @media screen and (max-width: 1440px) { .content { padding: 2rem; } .cardRow { flex-direction: column; } .title { margin-bottom: 2rem; } } @media screen and (max-width: 840px) { .container { display: flex; flex-direction: column; justify-content: center; align-items: center; } .infosHolder { margin: 2rem auto 8rem auto; } }