body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    margin: 0;
    padding: 20px;
    color: #f4f4f4;
}

h1 {
    text-align: center;
    color: #e0e0e0;
}

.button-container {
    display: flex;
    margin-left: auto;
}

.container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: auto;
}

.section {
    background-color: #2b2b2b;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    overflow-y: auto;
    height: 220px;
}

.add-task-section {
    height: 100px;
    width: 50rem;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

.section h2 {
    font-size: 1.2em;
    color: #cccccc;
    margin-bottom: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#taskInput {
    width: calc(100% - 90px);
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    margin-right: 10px;
    background-color: #333;
    color: #e0e0e0;
}

#addTaskButton {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#addTaskButton:hover {
    background-color: #218838;
}

.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background-color: #3a3a3a;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.task span {
    flex-grow: 1;
}

.button {
    margin-left: 8px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-size: 0.9em;
}

.centered-add-task {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.add-task-section {
    height: 50px;
    width: 50rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: space-between;
    background-color: #2b2b2b;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.section::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.section::-webkit-scrollbar-track {
    background-color: #2b2b2b;
    border-radius: 8px;
}

.section::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 8px;
}

.section::-webkit-scrollbar-thumb:hover {
    background-color: #888;
    /* Color change on hover */
}


.completeButton {
    background-color: #007bff;
}

.completeButton:hover {
    background-color: #0069d9;
}

.undoButton {
    background-color: #ffc107;
}

.undoButton:hover {
    background-color: #e0a800;
}

.deleteButton {
    background-color: #dc3545;
}

.deleteButton:hover {
    background-color: #c82333;
}

.recommendationButton {
    background-color: #17a2b8;
}

.recommendationButton:hover {
    background-color: #138496;
}

@media (max-width: 768px) {

    .centered-add-task {
        width: 100%;
        padding: 0 10px;
    }

    .section::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .section::-webkit-scrollbar-track {
        background-color: #2b2b2b;
        border-radius: 8px;
    }

    .section::-webkit-scrollbar-thumb {
        background-color: #555;
        border-radius: 8px;
    }

    .section::-webkit-scrollbar-thumb:hover {
        background-color: #888;
    }

    .add-task-section {
        width: 85%;
        margin-right: 20px;
        flex-direction: column;
        align-items: center;
        height: 80px;
    }

    #taskInput {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    #addTaskButton {
        width: 100%;
        margin-right: 0;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .section {
        height: 200px;
        overflow-y: auto;
    }
}