/* General Page Styling */
body {
    background-color: #e4e9fd;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'helvetica neue', helvetica, arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* The Containers */
.box {
    background: white;
    max-width: 400px;
    width: 90%;
    margin: 10px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
}

/* Header styling */
h1 {
    color: #764ba2;
    text-align: center;
    margin: 0;
    font-size: 2rem;
}

/* Aligning the Checkbox and Task Text */
.box input[type="checkbox"] {
    margin: 20px;
}

p {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 300;
    color: #333;
    margin: 0;
    border-bottom: 1px solid #f1f1f1;
    width: 80%; /* Ensures the border looks consistent */
    padding-bottom: 5px;
}

/* Form Layout */
form {
    text-align: center;
    margin-top: 25px;
    
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

input[type="text"]:focus {
    border-color: #764ba2;
}

/* The Button */
button {
    min-height: 45px;
    width: 45px;
    border-radius: 50%; /* Circular button */
    border: none;
    color: white;
    background-color: #764ba2;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    background-color: #667eea;
    transform: scale(1.1);
}
/* Container to keep checkbox and text on the same line */
.item {
    display: flex;
    align-items: center; /* Vertically centers the checkbox with the text */
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.item p {
    margin: 0;
    padding-left: 15px;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.2s;
}

/* The "Cut" Effect */
.item input[type="checkbox"]:checked + p {
    text-decoration: line-through;
    color: #adadad; /* Fades the text color when completed */
}

/* Optional: Make the checkbox a bit larger */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}