*{
    text-align: center;
}
body {
    background: linear-gradient(135deg, #f8ffae 0%, #43c6ac 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

h1 {
    margin-top: 40px;
    color: #222;
    letter-spacing: 2px;
    font-size: 2.5rem;
    text-shadow: 1px 2px 8px #fff7;
}

.todo{
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    margin: 0 4px;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    border: none;
    outline: none;
    transition: box-shadow 0.2s, background 0.2s;
}

.todo:focus {
    box-shadow: 0 0 0 2px #ff003788;
    background: #eafff6;
}

input.todo {
    min-width: 220px;
    background: #f7f7f7;
}

input[type="date"].todo {
    min-width: 140px;
}

#add{
    cursor: pointer;
    border: none;
    border-radius: 20px;
    background: linear-gradient(90deg, #43c6ac 60%, #f8ffae 100%);
    color: #222;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px #43c6ac33;
}

#add:hover {
    background: linear-gradient(90deg, #f8ffae 0%, #43c6ac 100%);
    transform: translateY(-2px) scale(1.04);
}

#del{
    cursor: pointer;
    border: none;
    border-radius: 20px;
    background: linear-gradient(90deg, #ff2e1f 60%, #ffb88c 100%);
    color: #fff;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px #ff2e1f33;
}

#del:hover {
    background: linear-gradient(90deg, #ffb88c 0%, #ff2e1f 100%);
    transform: translateY(-2px) scale(1.04);
}

div{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    flex-wrap: wrap;
    background: none;
    box-shadow: none;
}
#con{
    margin-top: 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#con .todo-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px #0002;
    padding: 16px 24px;
    min-width: 340px;
    max-width: 480px;
    transition: box-shadow 0.2s;
}

#con .todo-card:hover {
    box-shadow: 0 8px 24px #43c6ac33;
}

@media (max-width: 600px) {
    #con .todo-card {
        flex-direction: column;
        min-width: 90vw;
        max-width: 98vw;
        padding: 12px 8px;
    }
    div {
        flex-direction: column;
        gap: 10px;
    }
    h1 {
        font-size: 2rem;
    }
}