Instead of putting this in the <head> tag section wrapped in a <style> tag, you should put it in the CSS tab like so:
<head>
<style>