.buttons { width: 100%; display: flex; flex-direction: column; align-content: center; } .content { overflow-y: scroll; overflow-x: visible; max-height: 50dvh; p { font-size: 1.2rem; margin-bottom: 1rem; } } @media screen and (height <= 768px) { .content { max-height: 40dvh; } }