* {
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7f8;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
  }
  
  .container {
    background: white;
    padding: 10px 10px;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-image: url("th\ \(1\).jpeg");
  }
  
  h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #f8f5f5;
  }
  
  form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  #task-input {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
  }
  
  #task-input:focus {
    border-color: #007bff;
    outline: none;
  }
  
  #priority-select {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
  }
  
  button[type="submit"] {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button[type="submit"]:hover {
    background: #0056b3;
  }
  
  .filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .filters button {
    background: #e9ecef;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
  }
  
  .filters button.active,
  .filters button:hover {
    background: #007bff;
    color: white;
  }
  
  #task-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 6px solid transparent;
    transition: background 0.3s;
  }
  
  .task-item.high {
    border-left-color: #dc3545; /* red */
  }
  
  .task-item.medium {
    border-left-color: #ffc107; /* yellow */
  }
  
  .task-item.low {
    border-left-color: #28a745; /* green */
  }
  
  .task-item.completed {
    background: #d4edda;
    text-decoration: line-through;
    color: #6c757d;
  }
  
  .task-item label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }
  
  .task-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }
  
  .delete-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .delete-btn:hover {
    color: #a71d2a;
  }
  /*-------------max-width 576px-------------*/
  @media screen and (max-width:576px){
    h1{
        font-size: 20px;
    }
    #task-input{
        padding: 5px;
        font-size: 12px;
    }
    #priority-select {
        padding: 5px;
        font-size: 12px;
    }
    button[type="submit"]{
        padding: 5px 8px;
        font-size: 12px;
        border-radius: 3px;
    }
    .task-item {
        padding: 6px 8px;
        border-radius: 3px;
        margin-bottom: 5px;
    }

  }
  /*-------------max-width 576px end-------------*/
  /*-------------max-width 430px-------------*/
  @media screen and (max-width:576px){
    h1{
        font-size: 15px;
    }
    #task-input{
        padding: 3px;
        font-size: 9px;
    }
    #priority-select {
        padding: 3px;
        font-size: 9px;
    }
    button[type="submit"]{
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 3px;
    }
    .task-item {
        padding: 4px 5px;
        border-radius: 3px;
        margin-bottom: 3px;
    }
  }