header { text-align: center; padding: 1rem; } header object { width: 500px; height: auto; margin: 0 auto; } object svg { width: 100%; } header h1 { font-size: 2rem; font-weight: normal; margin: 0; } main { display: flex; flex-direction: column; justify-content: center; align-items: center; margin-top: 100px; } main > * + * { margin-top: 1rem; } @media (max-width: 767.98px) { header object { width: 75vw; } header h1 { font-size: 1rem; } }