<style>
  main button {
    background-color: red;
  }

  main div > button {
    background-color: blue;
  }
</style>
<main>
  <div>
    <button type="submit">Blue</button>
  </div>
</main>