<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Toggle Button</title> <style> body { font-family: Arial, sans-serif; } .toggle-button { display: flex; align-items: center; padding: 10px 20px; border: 3px solid #C42D57; border-radius: 20px; background-color: #F4F4F4; cursor: pointer; transition: background-color 0.3s ease; font-size: 20px; font-weight: bold; color: #C42D57; width: fit-content; } .toggle-button.active { background-color: #FCE8B2; /* Replace with the exact yellow color */ } </style> </head> <body> <div class="toggle-button" onclick="toggleBackground(this)"> Care Planning </div> <script> function toggleBackground(element) { element.classList.toggle("active"); } </script> </body> </html>