 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 }

 body{
    background-color: rgba(109, 40, 217);
 }

 .container{
    width: 900px;
    margin:100px auto;
    padding: 20px;
    /* display: flex-wrap; */
    justify-content: center;
    align-items: center;
    height: fit-content;
    background-color: rgba(76, 29, 149);
    box-shadow: 2px 10px 10px rgba(0,0,0,0.5);
 }

 .head{
    color: white;
    font-family: "Pacifico", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin-bottom: 20px;
 }

 .input{
    padding: 10px;
    margin-bottom: 30px;
 }

.input input {
    font-weight: bold;
    padding: 10px;
    width: 80%;
    font-size: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
   
    font-family: "Rowdies", serif;
    font-weight: 500;
    font-style: normal;
    box-shadow: 2px 10px 10px rgba(0,0,0,0.5);
 }

 .addTask{
    padding: 10px;
    width: 15%;
    font-size: 100%;
    background-color: white;
    border: 1px solid white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background: rgb(137,39,166);
    background: linear-gradient(90deg, rgba(137,39,166,1) 0%, rgba(136,0,255,1) 100%);
    color: white;
    font-family: "Rowdies", serif;
    font-weight: 420;
    font-style: normal;
    cursor: pointer;
    box-shadow: 2px 10px 10px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease-in-out;
}

.addTask:hover{
    background: rgb(162,39,166);
    background: linear-gradient(90deg, rgba(162,39,166,1) 0%, rgba(255,0,155,1) 100%);
    color: white;
    box-shadow: 4px 20px 20px rgba(0,0,0,0.5);
    font-size: 105%;

}


.listHeader{
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    color: white;
    background-color:black;
    padding: 10px;
    font-family: "Rowdies", serif;
    font-weight: 420;
    font-style: normal;
}

.listHeader .taskName{
    text-align: center;
}

.listData {
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    color: black;
    background-color: white;
    padding: 10px;
    font-family: "Rowdies", serif;
    font-weight: 420;
    font-style: normal;
}

.taskName {
    width: 350px;
}

.todoList .taskName  {
        width: 200px; 
        min-height: 30px; 
        overflow-wrap: break-word; 
        white-space: pre-wrap; 
        border: 1px solid #ccc;
        font-size: 16px;
        padding: 5px;
    }
    


.listData:last-child{
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: 2px 10px 10px rgba(0,0,0,0.5);
}

.empty{
    color: white;
    font-family: "Rowdies", serif;
    font-weight: 420;
    text-align: center;
    margin-top: 20px;
}

.listData .updatedDate,.listData .updatedTime{
    color: rgb(99, 97, 97);
    font-weight: 200;
    align-content: center;
}

.listData textarea{
    border: none;
    font-family: "Rowdies", serif;
    font-weight: 420;
    font-style: normal;
    font-size: 100%;
    color: black;
    resize: none;
    align-content: center;
}

.editTask{
    background-color: aqua;
    color: black;
    width: 50px;
    height: 30px;
    margin-right: 5px;
    font-weight: bold;
    cursor: pointer;
}
.deleteTask{
    background-color: red;
    color: rgb(255, 255, 255);
    width: 50px;
    height: 30px;
    font-weight: bold;
    cursor: pointer;
}
.updateTask{
    background-color: rgb(87, 168, 87);
    color: white;
    width: 50px;
    height: 30px;
    margin-right: 5px;
    font-weight: bold;
}

.completed{
    text-decoration-thickness: 2px;
    text-decoration-color: rgb(208, 158, 158);
    background-color: rgb(168, 164, 164);
}

.noChange{
    background-color: rgb(80, 79, 79);
    color: white;
    text-decoration-color: black;
    cursor: not-allowed;
}

#toastBox{
    position: absolute;
    top: -25px;
    right: 10px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    color: black;
}

.toast{
    width: 400px;
    height: 70px;
    background-color: white;
    font-family: "Rowdies", serif;
    font-weight: 420;
    font-style: normal;
    margin: 15px 0;
    box-shadow: 2px 10px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    padding-left: 10px;
    position: relative;
    color: green;
    background-color: rgb(81, 229, 81);
    transform: translateX(100%);
    animation: moveleft 0.5s linear forwards;
} 
@keyframes moveleft{
    100%{
        transform: translateX(0);
    }
}

.invalid{
    color: rgb(151, 99, 2);
    background-color: rgb(255, 199, 96);
}

.deleted{
    color: rgb(136, 2, 2);
    background-color: rgb(252, 77, 77);
}

.edited,.completion{
    color: rgb(1, 131, 131);
    background-color: rgb(120, 248, 248);
}


.toast::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: green;
    animation: anim 2.8s linear forwards;
}

.toast.invalid::after{
    background-color: rgb(151, 99, 2);
}

.toast.deleted::after{
    background-color: rgb(136, 2, 2);
}

.toast.edited ::after,.toast.completion::after{
    background-color: rgb(1, 131, 131);
}

@keyframes anim{
    100%{
        width: 0;
    }
}


#popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}


#deletePopUp {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}


#deletePopUp h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    font-family: "Rowdies", serif;
    font-weight: 420;
    font-style: normal;

}

#deletePopUp p {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    font-family: "Rowdies", serif;
    font-weight: 200;
    font-style: normal;
}

.confirmation {
    margin-top: 15px;
    display: flex;
    justify-content: space-around;
}

.yes, .no {
    padding: 8px 15px;
    font-size: 14px;
    border: 1px solid black;
    cursor: pointer;
    transition: 0.3s;
}

.yes {
    background-color: rgb(255, 0, 0);
    color: white;
}

.no {
    background-color: rgb(231, 54, 231);
    color: white;
}

.yes:hover {
    background-color: darkred;
}

.no:hover {
    background-color: darkgray;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter{
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    justify-content: right;
}

.filter select{
    cursor: pointer;

    border: none;
    color: white;
    font-family: "Rowdies", serif;
    font-weight: 220;
    font-style: normal;
    outline: none;
    background-color: black;
}


.filter select option:checked{
    background-color: red;
}