The change: position:fixed pins it directly to the screen (ignoring the page's layout entirely), width/height:100% instead of 100vw/100vh avoids the scrollbar-width bug, and z-index:9999