/* Container */
body {
    background-image: url('bgimage.jpg'); 
    background-size: cover; 
    background-position: center; 
    margin: 0; 
    padding: 0; 
}

.container {
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #e6f2ff; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 440px;
    padding: 10px;
    margin: 0 auto; 
    margin-left: 50px;
    margin-top: 10px;
}

.head {
    font-family: Arial, Helvetica, sans-serif;
}
.myhead {
    font-family: Arial, sans-serif;
    font-size: 36px;
    color: #333;
    text-transform: uppercase;
    margin: auto;
    position: relative;
    text-align: center;
    border: 2px solid #333;
    border-radius: 10px;
    width: fit-content;
    padding: 10px 10px; 
    animation: borderBounce 2s infinite alternate, colorChange 3s infinite alternate;
}

/* Animation for bouncing border */
@keyframes borderBounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05); /* Increase to scale factor you prefer */
    }
}

/* Animation for color change */
@keyframes colorChange {
    0% {
        color: #333;
    }
    50% {
        color: #ff7f50;
    }
    100% {
        color: #333;
    }
}

/* Header Styling */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 36px; /* Increased font size */
    color: #333;
    font-family: sans-serif;
}

/* Input and Button Styling */
#new-task {
    border: black thin solid;
    background-color: whitesmoke;
    border-radius: 5px;
    padding: 5px 10px; /* Reduced padding */
    font-size: 16px;
    width: calc(70% - 50px); /* Adjusted width */
}

button {
    background-color: #222222;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05); /* Add slight scale on hover */
}

.head {
    font-size: 160%;
    color: #070707;
}

#additem {
    margin-top: 0px;
}

/* Task Styling */
.task-list {
    list-style: none;
    padding: 0;
}

.task-list li {
    background-color: #fff;
    border-radius: 5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc; /* Add border to each item */
    padding: 10px;
    transition: transform 0.2s ease; /* Add animation */
}

.task-list li:hover {
    transform: scale(1.05); /* Enlarge on hover */
}

.task-list li label {
    flex: 1;
    margin-left: 10px;
}

.delete {
    background-color: #f44336;
}

.delete:hover {
    background-color: #da190b;
}

/* Reset Button */
#reset-section {
    text-align: center;
    margin-top: 20px;
}

#reset {
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#reset:hover {
    background-color: #ff7043;
    transform: scale(1.05);
}

/* Footer Styling */
.footer {
    text-align: center;
    margin-top: 20px;
}

.footer p {
    font-size: 14px;
    color: #666;
}
