<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

  <title>My To-Do List</title>

  <style>

    body {

      font-family: Arial, sans-serif;

      background-color: #f2f2f2;

      display: flex;

      justify-content: center;

      align-items: center;

      height: 100vh;

      margin: 0;

    }


    #todo-app {

      background-color: #fff;

      padding: 20px;

      border-radius: 5px;

      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

      width: 100%;

      max-width: 400px;

    }


    h2 {

      margin-top: 0;

    }


    .input-container {

      display: flex;

      gap: 10px;

    }


    #task-input {

      flex: 1;

      padding: 10px;

      border: 1px solid #ccc;

      border-radius: 3px;

    }


    #add-task-btn {

      padding: 10px;

      background-color: #28a745;

      color: #fff;

      border: none;

      border-radius: 3px;

      cursor: pointer;

    }


    #add-task-btn:hover {

      background-color: #218838;

    }


    ul {

      list-style-type: none;

      padding: 0;

    }


    li {

      background-color: #f9f9f9;

      margin-top: 10px;

      padding: 10px;

      border-radius: 3px;

      display: flex;

      justify-content: space-between;

      align-items: center;

    }


    li.completed {

      text-decoration: line-through;

      color: #6c757d;

    }


    .delete-btn {

      background-color: #dc3545;

      color: #fff;

      border: none;

      border-radius: 3px;

      padding: 5px;

      cursor: pointer;

    }


    .delete-btn:hover {

      background-color: #c82333;

    }

  </style>

</head>

<body>

  <div id="todo-app">

    <h2>My To-Do List</h2>

    <div class="input-container">

      <input type="text" id="task-input" placeholder="Add a new