#intro { margin-top: var(--nav-height); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; } #intro h2 { max-width: 80%; margin-bottom: 5rem; } #intro p { max-width: 80%; margin-bottom: 1rem; } @media only screen and (max-width: 500px) { #intro p { max-width: 90%; } }