html, body, #app { position: relative; width: 100%; height: 100%; box-sizing: border-box; } body { margin: 0; font-family: "Poppins", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } h1 { font-size: 35px; font-weight: 400; } p { color: #626262; font-size: 16px; margin-bottom: 30px; } main { display: flex; align-items: center; height: 100%; margin: auto; justify-content: space-between; width: 75%; } @media (max-width: 850px) { main { flex-direction: column; justify-content: flex-start; width: 100%; } .left-segment { margin-top: 10rem; } } @media (min-width: 1400px) { main { width: 50%; } } .left-segment { width: 315px; box-sizing: border-box; } .right-segment { width: 315px; box-sizing: border-box; }