Applying CSS to one page only
<p>I need to apply CSS to the  masthead on all pages except the homepage in the Wordpress Twenty Sixteen theme. At the moment I am manually doing it like:</p>

<pre><code>.page-id-24 #masthead {
padding: 5%;
background-image: url(...);
background-size: 1400px 500px;
height: 10px;
margin-bottom: 5%;
}

.page-id-14 #masthead {
padding: 5%;
background-image: url(...);
background-size: 1400px 500px;
height: 10px;
margin-bottom: 5%;
}
</code></pre>

<p>Is there any way I can write something like <code>#masthead not:(home) {...}</code> to drastically speed up the process and change the masthead on all pages except the homepage.</p>

<p>Thanks,</p>

<p>Jack</p>