@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

.heading {
    text-decoration: underline wavy; /* ✅ Fixed */
    text-align: center; /* ✅ Centered */
    margin: 50px auto;
    font-size: 70px;
}

/* Background Gradient */
main {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(320deg, #eb92be, #ffef78, #63c9b4);
}

/* To-Do Box */
.box {
    width: 700px;
    min-height: 500px;
    background: white; /* ✅ Fixed */
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Input Field */
#item {
    padding: 10px;
    font-size: 20px;
    width: 100%;
    border: 0;
    outline: 0;
    display: block;
    font-weight: bold;
    box-shadow: 0px 0px 2px grey;
}

/* To-Do List */
#to-do-box {
    margin-top: 20px;
    list-style: none;
}

/* List Items */
#to-do-box li {
    position: relative;
    background: rgba(63, 81, 181, 0.3); /* ✅ Fixed RGBA */
    color: white;
    padding: 10px;
    border-radius: 5px;
    padding-right: 30px;
    text-align: justify;
    margin-top: 10px;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Delete Button */
#to-do-box li i {
    cursor: pointer;
    color: red;
    font-size: 18px;
}

/* Completed Task */
.done {
    text-decoration: line-through;
    color: black;
    background-color: #95a5a6 !important;
}
