import re

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

old_section = '<section id="mission-section" style="padding: 6.5rem 0; background-color: #FAF7F0; color: #1c1917; box-sizing: border-box; overflow: hidden;">'
new_section = '<section id="mission-section" style="padding: 6.5rem 0; background-color: #ffffff; color: #1c1917; box-sizing: border-box; overflow: hidden;">'

content = content.replace(old_section, new_section)

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

with open('about.html', 'r', encoding='utf-8') as f:
    content2 = f.read()
    
content2 = content2.replace(old_section, new_section)

with open('about.html', 'w', encoding='utf-8') as f:
    f.write(content2)

print("Background changed.")
