*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #218838;
    font-family: Arial, sans-serif;
}
.container{
    max-width: 500px;
    width: 100%;
    height: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
h1{
    color: #333;
}
.task-container{
    max-width: 400px;
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: center;
}
#task-input{
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
#add-task{
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
#add-task:hover{
    background-color: #218838;
}
.tasks{
    height: 200px;
    width: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
}
.tasks::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}
.tasks::-webkit-scrollbar-thumb {
    background-color: #218838;
    border-radius: 10px;
}
ul{
    list-style: none;
}
.task-list{
    max-width: 350px;
    width: 100%;
    list-style: none;
    height: 200px;
}
.task-item-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;
}
.task-item{
    padding: 12px;
    cursor: pointer;
    font-size: 1.2em;
    width: 100%;
    word-wrap: normal;
}
.completed{
    color: #363636;
    opacity: 0.7;
}
.completed::before{
    content: "✓";
    margin-right: 5px;
    color: #00ff3c;
}
.edit-task{
    background-color: #e6e6e6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 1.2em;
    cursor: pointer;
}
.edit-task:hover{
    background-color: #ffc107;
}
.delete-task{
    background-color: #e6e6e6;
    border: none;
    font-size: 0.8em;
    border-radius: 5px;
    padding: 8px 10px;
    cursor: pointer;
    margin-right: 6px;
}
.delete-task:hover{
    background-color: #ff4d4d;
}
.footer-buttons{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
}
.footer-buttons button{
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color: #007bff;
    color: white;
}
.footer-buttons button:hover{
    background-color: #0056b3;
}

@media (max-width: 420px){
    .container{
        width: 90%;
    }
}