main { display: flex; flex-direction: column; padding-top: 40px; gap: 10px; } @media only screen and (max-width: 1200px) { main { padding-top: 50px; } } .small { display: flex; flex-direction: row; justify-content: space-between; align-items: center; color: white; padding: 20px; background: var(--dark-second); border: solid 1px var(--bright-second); text-decoration: none; } .small h1 { font-size: 20px; font-weight: 400; }