.buttons { width: 100%; display: flex; flex-direction: column; align-content: center; position: fixed; left: 0; align-items: center; justify-content: center; bottom: 5dvh; } .content { height: 100%; max-height: 50dvh; p { font-size: 1.2rem; margin-bottom: 1rem; } } @media screen and (height <= 768px) { .content { max-height: 35dvh; } }