This is the default behavior of the theme you are using. You can select another theme from the Look & Feel tab in the survey builder in the upper left corner. Here is a link to the documentation for more detail:
If you are interested in how to do this with custom css code you can post your questions to the Custom Code section in the Developer Corner here in the community.