import re

with open('index.html', 'r', encoding='utf-8') as f:
    content = f.read()

# Original string
old_str = 'background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); padding: 0.35rem 0.9rem; border-radius: 50px; margin-bottom: 1.4rem; width: fit-content; border: 1px solid rgba(255, 255, 255, 0.18);'

# New string without pill background/border
new_str = 'margin-bottom: 1.4rem; width: fit-content;'

if old_str in content:
    content = content.replace(old_str, new_str)
    with open('index.html', 'w', encoding='utf-8') as f:
        f.write(content)
    print("Pill removed.")
else:
    print("Could not find the exact string.")
