Importing the css from Head was causing a flickering effect on the button, because of the time the css load. Next.js was emitting as well a warning about css being loaded from the Head component. We moved the css import to the _document.tsx file as recommended by the Next.js documentation.