I am new to css and trying to get my navbar brand and navbar links to look the same size and same colour but when I choose the whole navbar to change the font and the colour every link inherits the font but not the colour also branding stays unaffected
I want to know what changes I can make to make both similar here is the navbar code. And here is the css that I am using to change the font and colour along with the 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>
