input[type="checkbox"].toggle-switch { 
  display: none; 
}

h1 {
    font-family: 'Courier New', Courier, monospace;
}

.toggle-switch + label {
    display: inline-block;
    background: white;
    padding: 4px 12px 4px 10px;
    border-radius: 28px;
    cursor: pointer;
    position: relative;
}

.toggle-switch + label::before {
    content: "";
    position: absolute;
    left: -5px; top: 4px;
    width: 18px; height: 16px;
    background: black;
    border-radius: 50%;

}
.toggle-switch:checked + label::before {
    left: auto;
    right: 5px;
}
.toggle-switch:checked + label {
    background: var(--accent);
}

body {
    background-color: var(--primary);
}
.task {
    width: 50%;
    box-sizing: border-box;
    padding: 6px;
    margin-bottom: 10px;
    background-color: var(--delete);
    border-style: dashed;
    border-color: var(--accent);
    border-width: 2px;
}
button {
    background-color: var(--accent);
}

:root {
    --primary: #e8d720;
    --accent: #de6118;
    --delete: #299ec4;
}
.task-checkbox:checked + .task-text {
    text-decoration: line-through;
    color: green;
}
form {
    border-style: groove;
    border-color: var(--accent);
}
.des {
    width: 99.5%;
}


.task span:not(.task-text),
.task .task-delete {
  float: right;
  margin-left: 15px;    /* Adds space between the date and the delete button */
}

/* Optional: Vertical alignment fix */
.task input, 
.task span, 
.task button {
  vertical-align: middle; 
}