.BoxWithHeader { display: flex; flex-direction: column; } .BoxHeader { padding: 10px 40px; border-radius: 25px 25px 0 0; background-color: var(--bg-light); font-size: x-large; font-family: var(--font-title); flex-shrink: 0; flex-grow: 0; } .BoxBody { min-height: 40px; padding: 10px 40px; border-radius: 0 0 25px 25px; background-color: var(--bg-dark); font-size: medium; font-family: var(--font-regular); flex-shrink: 0; flex-grow: 1; }