body {
    animation: colorShift 5s infinite;
}

@keyframes colorShift {
    5% { background: red; }
    10% { background: orangered; }
    15% { background: orange; }
    20% { background: yellow; }
    25% { background: greenyellow; }
    30% { background: lime; }
    35% { background: turquoise; }
    40% { background: cyan; }
    45% { background: cadetblue; }
    50% { background: teal; }
    55% { background: darkcyan; }
    60% { background: blue; }
    65% { background: blueviolet; }
    70% { background: indigo; }
    75% { background: purple; }
    80% { background: magenta; }
    85% { background: palevioletred; }
    90% { background: pink; }
    95% { background: violet; }
    100% { background: deeppink; }
}

h4 {
    text-align: center;
}

#tasks {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

#tasklist {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 600px;
}

#priority-selector {
    margin-left: auto;
    margin-right: auto;
}

#tasklist li {
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 1px solid black;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 16px;
}

.site-footer {
    background-color: white;
    margin-top: 3rem;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #e0e0e0;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.github-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#task-input,
#priority,
#add-task {
    width: 80%;
    max-width: 400px;
}

.modal-body input {
    width: 100%;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    #tasks {
        flex-direction: column;
        align-items: center;
    }

    #tasklist li {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}