
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}


header, footer {
    background: #4CAF50;
    color: white;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    font-weight: bold;
    z-index: 1000;
}

header {
    position: sticky;
    top: 0;
    font-size: 20px;
}

footer {
    position: sticky;
    bottom: 0;
    font-size: 15px;
    font-style: italic;
}


main {
    flex: 1;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out;
}


#task-list {
    text-align: center;
}

#task-list h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

form {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

form input, form button {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

form button {
    grid-column: span 2;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #45a049;
}

#tasks {
    margin-top: 20px;
    text-align: left;
}

.task-day {
    font-weight: bold;
    margin-top: 20px;
    color: #4CAF50;
    font-size: 1.2rem;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
}

.task-item:hover {
    transform: scale(1.02);
    background: #f1f3f5;
}

.task-item span {
    flex: 1;
    margin-left: 10px;
    color: #555;
}

.task-item button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.task-item button:hover {
    background-color: #c0392b;
}


.task-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-item input[type="checkbox"]:checked {
    accent-color: #4CAF50;
}

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


#motivation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 20;
    transition: opacity 0.5s, visibility 0.5s;
}

#motivation-overlay.active {
    opacity: 1;
    visibility: visible;
}

#motivation-overlay p {
    font-size: 3rem;
    color: #ffffff;
    text-align: center;
    animation: fadeInOut 2s ease-out;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}
