body {
   font-family: Arial, sans-serif;
   margin: 0;
   padding: 0;
   overflow: hidden;
   display: flex;
   justify-content: center;
   align-items: center;
   height: 100vh;
}

video {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   object-fit: cover;
   z-index: -1;
}

.container {
   position: relative;
   background: rgba(128, 0, 128, 0.8);
   padding: 20px;
   border-radius: 8px;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
   width: 300px;
   text-align: center;
   z-index: 1;
}

input[type="text"] {
   width: 80%;
   padding: 10px;
   margin-bottom: 10px;
   border: 1px solid black;
   border-radius: 4px;
   font-size: 16px;
}


button {
   padding: 10px 20px;
   border: none;
   border-radius: 4px;
   background-color: #28a745;
   color: black;
   font-size: 16px;
   cursor: pointer;
   transition: background-color 0.3s;
}

button:disabled {
   background-color: #ddd;
   cursor: not-allowed;
}

button:hover:not(:disabled) {
   background-color: #218838;
}

ul {
   list-style-type: none;
   padding: 0;
   margin: 20px 0 0;
}

li {
   background-color: #f8f9fa;
   padding: 10px;
   border-bottom: 1px solid #ddd;
   border-radius: 4px;
   margin-bottom: 5px;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

li input[type='checkbox'] {
   margin-right: 10px;
}

li button {
   margin-left: 5px;
   padding: 5px 10px;
   border: none;
   border-radius: 4px;
   background-color: #007bff;
   color: write;
   cursor: pointer;
}

li button:hover {
   background-color: #0056b3;
}

li button.delete {
   background-color: #dc3545;
}

li button.delete:hover {
   background-color: #c82333;
}

li button.edit {
   background-color: #ffc107;
   color: black;
}

li button.edit:hover {
   background-color: #e0a800;
}


/* Добавление стилей для нового списка "Готово" */
#doneList {
   margin-top: 20px;
   padding: 10px;
   border: 1px solid #ccc;
   border-radius: 8px;
   background-color: rgba(0, 128, 0, 0.1);
}

#doneList h2 {
   margin: 0;
   padding: 0;
}

li span.completed {
   text-decoration: line-through;
}


button[title] {
   position: relative;
}

button[title]::after {
   content: attr(title);
   position: absolute;
   bottom: 100%;
   left: 50%;
   transform: translateX(-50%);
   background-color: #333;
   color: #fff;
   padding: 5px;
   border-radius: 4px;
   font-size: 12px;
   white-space: nowrap;
   opacity: 0;
   transition: opacity 0.3s;
}

button[title]:hover::after {
   opacity: 1;
}
