Add a class name to the button before appendChild, and add all the static styling in the CSS file.
JS:
button.className = 'lobby-button';
CSS:
.lobby-button:hover {
background-color: light-blue;
}
In case you need to add styling only using JS, other solutions are available here