* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Work sans", sans-serif;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure the body takes up full viewport height */
    
}


body
{
    background-color: #a0d8e8;
    color: #000000;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
}

#dark-mode-circle {
    background-color: #3d0303;
    border: 1px solid #f0f0f0;
}

#light-mode-circle {
    background-color: #a0d8e8;
    border: 1px solid #000000;
}

#theme-switch {
    display: none;
}


.tasks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.task-section {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
}

.task-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #ccc;
    resize: none;
    background-color: #fff;
    color: #333;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #3d0303;
    color: #d6d67f;
}


.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.task-input {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#task-input {
    width: 60%;
    padding: 10px;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 10px;
    background-color: #12343b; /* Match the background color in your image */
    color: white;


}

.dark-mode #task-input
 {
    width: 60%;
    padding:10px;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 10px;
    background-color: #d6d67f; /* Match the background color in your image */
    color:black;


}


#add-task {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    background-color: #1a6d86; /* Match the button color in your image */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-task:hover {
    background-color: #124e60;
}





#task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0a3d62; /* Match the background color of tasks in your image */
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    color: white;
}

.dark-mode #task-input {
    width: 60%;
    padding: 10px; /* Ensure padding is the same */
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 10px;
    background-color: #12343b; /* Background color for light mode */
    color: white;
}

.dark-mode #task-input {
    background-color: #d6d67f; /* Background color for dark mode */
    color: black;
}

 .dark-mode #add-task {
    padding: 10px 20px; /* Ensure padding is the same */
    font-size: 1em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #1a6d86; /* Background color for light mode */
    color: white;
}

.dark-mode #add-task 
{
    background-color: yellow; /* Background color for dark mode */
    color: black;
}


.dark-mode #add-task:hover 
{
    background-color: #b9b94c;
}

.task-item .task-text 
{

    flex-grow: 1;
    color: #e2e2e2;
}

.task-item .task-actions {
    display: flex;
    gap: 10px;
}

.task-item .task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #333;
    transition: color 0.3s;
}

.task-item .task-actions button:hover {
    color: #ffffff; 
}

.task-item .task-actions .fa-check {
    color: #2ecc71; 
}

.task-item .task-actions .fa-trash {
    color: #e74c3c;
}

body.dark-mode .task-item {
    background-color:rgb(113, 113, 1);
    color: black;
}

/* Animation for dropping off a task */
@keyframes drop-off {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

.task-item.removing {
    animation: drop-off 0.5s forwards;
}