This solution works perfectly unless you need responsive radius, based on rem value. To solve it, I was thinking to add a js code on resize so it changes rx and ry depending on rems.