*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
body{
    font-family: Verdana, sans-serif;
    height:100vh;
    display: flex;
    align-items: center;
    justify-content:center;
    background:url(./backgrpic.jpg) no-repeat;
    background-position: center;
    background-size: cover;
    color:#fff;
}
.container{
    width: 500px;
    height: auto;
    padding: 30px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}
h1{
    color:#eee;
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    margin-bottom: 30px;
}
.input-container{
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
}
.todo-input{
    flex: 1;
    font-family: Arial, Helvetica, sans-serif;
    outline:none;
    padding: 10px 10px 10px 20px;
    background-color: transparent;
    border: 2px solid #9710eb;
    border-radius: 30px;
    color:#fff;
    font-size: 17px;
    margin-right: 10px;
    margin-left: 10px;
}
.todo-input::placeholder{
    color:#bfbfbf;
}
.error {
    display: none;
    color: #fff;
    padding-bottom: 10px;
}
.add-button{
    border: none;
    outline: none;
    background: #b55ced;
    color:#000;
    font-size: 35px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 35px;
}
.empty-image{
    margin: 20px auto 0;
    display: block;
    height: 250px;
    background-color: transparent;
    width: 300px;
}
.todo {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #b55ced;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 15px;
    padding: 15px 12px;
    border: 2px solid #9710eb;
    transition: all 0.2 ease;
}
.todo:first-child {
    margin-top: 0px;
}
.todo:last-child {
    margin-bottom: 0px;
}
.todo:hover {
    background-color: #9710eb;
}
.todo label {
    cursor: pointer;
    width: fit-content;
    display: flex;
    color: #eee;
    align-items: center;
    font-family: Arial, sans-serif;
}
.todo span {
    padding-left: 20px;
    cursor: pointer;
    position: relative;
}
span::before {
    content: "";
    height: 15px;
    width: 15px;
    position: absolute;
    margin-left: -30px;
    border-radius: 100px;
    border: 2px solid #32044f;
}
input[type = 'checkbox'] {
    visibility: hidden;
}
input:checked + span {
    text-decoration: line-through;
    text-decoration-color:#000;
}
.todo:hover input:checked + span::before , input:checked + span::before{
    background: url(./tick.svg) 20% 20% no-repeat #07e053;
    border-color: #07e053;
}
.todo:hover span::before {
    border-color: #fff;
}
.todo .delete-btn{
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
}
.todo .edit-btn{
    background-color: transparent;
    border: none;
    margin-left: auto;
    cursor: pointer;
    font-size: 20px;
}
.todos-container {
    overflow: overlay;
    height: 300px;
}
.todos-container::-webkit-scrollbar-track{
    background: #bfbfbf;
    border-radius: 20px;
}
.todos-container::-webkit-scrollbar {
    width:0;
}
.todos-container:hover::-webkit-scrollbar {
    width:8px;
}
.todos-container::-webkit-scrollbar-thumb {
    background: #969595;
    border-radius: 20px;
}
.filters{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
}
.filter{
    color: #eee;
    padding: 5px 15px;
    border-radius: 50px;
    border: 2px solid #9710eb;
    transition: all 0.2s ease;
    cursor:pointer;
}
.filter.active,  .filter:hover{
    background-color: #b55ced;
}
.delete-all{
    display: flex;
    color:#eee;
    padding: 7px 15px;
    border-radius: 5px;
    border: 2px solid #9710eb;
    cursor: pointer;
    transition: all 0.2s ease;
}
.delete-all:hover{
    border-radius: 5px;
    background-color: #b55ced;
}
button.edit-btn.disabled {
    pointer-events: none;  
    opacity: 0.5;         
    cursor: not-allowed; 
}
.modal{
    display: none;
    z-index: 1;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background:transparent;
}
.modal-content{
    margin: 15% auto;
    padding: 50px;
    border-radius: 10%;
    background-color: #4a2462;
    border: 1px solid #fff;
    text-align: center;
    max-width: 300px;
}
.modal-content button{
    margin: 10px;
    font-size: 20px;
}
.modal-content button:hover{
    background-color: #b55ced;
}
.modal-content p{
    font-size: 20px;
}
@media (max-width : 617px)
{
.container{
    width: auto ;
}
}