body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-container {
    display: flex;
    flex-direction: column;
    padding: 30px;
    max-width: 600px;
    border-radius: 15px;
    background: #0f3460;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.todo-heading {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(to right, #f72585, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 3s ease infinite;
}

/* Prevent autofill background change */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #16213e inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
}

@keyframes gradient-animation {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 100%;
    }
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.item-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

input {
    height: 35px;
    width: 100%;
    max-width: 165px;
    border-radius: 25px;
    font-size: 17px;
    border: 2px solid #7209b7;
    padding: 10px;
    background-color: #16213e;
    color: #fff;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

input:focus {
    box-shadow: 0px 0px 8px #f72585;
}

input::placeholder {
    color: white;
}

.btn {
    height: 50px;
    width: 100%;
    max-width: 150px;
    border-radius: 30px;
    cursor: pointer;
    border: 2px solid #7209b7;
    background: linear-gradient(to right, #f72585, #7209b7);
    color: white;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background: linear-gradient(to right, #7209b7, #f72585);
    box-shadow: 0px 0px 15px rgba(114, 9, 183, 0.6);
}

span {
    font-size: 1em;
    background-color: #16213e;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

span:hover {
    transform: scale(1.05);
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {

    .container,
    .item-container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    input,
    .btn {
        max-width: 140px;
    }

    .todo-heading {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
    }

    .item-container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    input,
    .btn {
        max-width: 100%;
    }

    .todo-heading {
        font-size: 1.5em;
    }
}