* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #9be15d, #00e3ae);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.main {
    background-color: #ffffff;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.h {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

.input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#inputtask {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

#inputtask:focus {
    border-color: #00c2a8;
}

#btn {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #ff9800;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#btn:hover {
    background-color: #e68900;
}

#tasklist {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

#tasklist li {
    background-color: #f9f9f9;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s, text-decoration 0.3s;
    cursor: pointer;
}

#tasklist li:hover {
    background-color: #e0f7fa;
}

#tasklist li.completed {
    text-decoration: line-through;
    color: #888;
}
