header { background: #8e44ad; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; } .logo { font-size: 24px; font-weight: bold; } .search-bar input { padding: 8px; border: none; border-radius: 4px; width: 200px; } h1 { text-wrap: balance; } .search-bar button { padding: 8px 12px; border: none; background: #2ecc71; color: white; cursor: pointer; border-radius: 4px; } nav { background: #eee; } h1 { text-wrap: balance; } nav ul { list-style: none; margin: 0; padding: 10px; display: flex; justify-content: center; gap: 20px; }