h1 { text-align: center; display: block; } #logo { display: block; margin: 0 auto; width: 40%; object-fit: contain; }