
body {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, Arial, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    display: flex;
    justify-content: center;
    padding-top: 50px;
}


.container {
        background: #fffbe7;
        padding: 28px 24px;
        border-radius: 24px;
        box-shadow: 0 6px 24px rgba(255, 183, 77, 0.2);
        width: 340px;
        border: 3px dashed #ffb347;
        position: relative;
        animation: bounceIn 1s;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}


h1 {
    text-align: center;
    color: #ff6f61;
    font-size: 2.2em;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #fffbe7, 4px 4px 0 #ffb347;
    margin-bottom: 18px;
}


input[type="text"] {
    width: 65%;
    padding: 12px;
    border: 2px solid #ffb347;
    border-radius: 16px;
    margin-right: 10px;
    font-size: 1em;
    background: #fffbe7;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #ff6f61;
    outline: none;
}


button {
    padding: 12px 18px;
    background: linear-gradient(90deg, #ffb347 0%, #ff6f61 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 183, 77, 0.2);
    transition: transform 0.2s, background 0.2s;
    margin: 6px 0;
}

button:hover {
    background: linear-gradient(90deg, #ff6f61 0%, #ffb347 100%);
    transform: scale(1.08) rotate(-2deg);
}


ul {
    list-style-type: none;
    padding: 0;
    margin-top: 18px;
}


li {
    padding: 12px 10px;
    border-bottom: 2px dotted #ffb347;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #fffbe7;
    font-size: 1.08em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: background 0.2s, transform 0.2s;
    animation: popIn 0.5s;
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

li:last-child {
    border-bottom: none;
}


.completed span {
    text-decoration: line-through;
    color: #888;
}

#completedList li {
    background: #e0ffe0;
    border-bottom: 2px dotted #5cb85c;
    color: #5cb85c;
    opacity: 0.85;
}

.task-checkbox {
    margin-right: 12px;
    accent-color: #5cb85c;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: accent-color 0.2s;
}

.deleteBtn {
    background: linear-gradient(90deg, #ff6f61 0%, #ffb347 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 111, 97, 0.15);
    transition: background 0.2s, transform 0.2s;
}

.deleteBtn:hover {
    background: linear-gradient(90deg, #ffb347 0%, #ff6f61 100%);
    transform: scale(1.15) rotate(6deg);
}

/* Fun emoji decorations */
.container:before {
    content: "📝";
    position: absolute;
    left: -32px;
    top: -32px;
    font-size: 2.5em;
    animation: float 2s infinite alternate;
}
.container:after {
    content: "🎉";
    position: absolute;
    right: -32px;
    bottom: -32px;
    font-size: 2.5em;
    animation: float 2s infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
