/* Header styling */ header { background-color: #333333; color: #FFFFFF; padding: 20px; position: fixed; width: 100%; display: flex; justify-content: space-between; align-items: center; } @media (min-width: 400px) and (max-width: 800px) { header { background-color: red; } } .logo { margin-right: auto; } nav { margin-right: 20px; } nav ul { list-style: none; display: flex; justify-content: space-between; align-items: center; } nav ul li { margin: 0 10px; } nav ul li a { color: #12A89D; text-decoration: none; padding: 10px; border-radius: 5px; } nav ul li a.active { background-color: #12A89D; box-shadow: 0 0 5px #12A89D; color: #d1f9e9; } nav ul li a:hover { transition: 0.5s ease-in; color: #d1f9e9; background-color: #222222; box-shadow: 0 0 10px 5px #12A89D; }