html,body{ margin:; padding:; } body{ height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(gray, lightyellow,gray); } .butterfly{ position: relative; width: 10em; height: 10em; } .butterfly::before,…