As a newcomer to CSS, I am facing an issue with my navbar. I want both the navbar brand and navbar links to be the same size and color. However, when I try to change the font and color of the entire navbar, only the font changes and the color remains inconsistent. The branding also remains unaffected. I need help figuring out what changes I can make to achieve a consistent look for both the brand and links. Below is the navbar code as well as the CSS I am using to style it, along with the current result.
#mainNavbar {
font-size: 2em;
color: #e84545;
font-weight: 200;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<nav class="navbar navbar-expand-dark navbar-dark navbar-expand-md" id="mainNavbar">
<a href="#" class="navbar-brand" id="navbar-brand">CANDY</a>
<button class="navbar-toggler" data-toggle="collapse" data-target="#nav-links" aria-label="Expand or Collapse The NavBar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="nav-links">
<ul class="navbar-nav">
<li class="navbar-item">
<a href="#home" class="nav-link">HOME</a>
</li>
<li class="navbar-item">
<a href="#about" class="nav-link">ABOUT</a>
</li>
<li class="navbar-item">
<a href="#tickets" class="nav-link">TICKETS</a>
</li>
</ul>
</div>
</nav>