

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 90vh;
    margin: 0;
    background-color: hsla(183, 39%, 81%, 0.877);
}

h1{
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

#todo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

#todo-text {
    border-radius: 10px;
    height: 1.8rem;
    width: 80%;
    max-width: 400px;
    padding: 0.3rem 0.5rem;
    box-sizing: border-box;
    border: none;
}

#todo-board {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 80%;
    min-height: 50vh;
    padding: 10px;
    box-sizing: border-box;
    gap: 10px;
    background: rgb(221, 252, 239);
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.todo {
    margin-top: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-family: cursive;
    background-color: aqua;
    border-radius: 15px;
    border: none;
    flex: 1 1 250px;
    max-width: 350px;
    min-width: 180px;
    min-height: 50px;
    padding: 8px;
    box-sizing: border-box;
}

.check-circle {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.check-circle.done {
    background: rgb(55, 226, 55);
}

.todo-text.done {
    text-decoration: line-through;
    color: gray;
}

@media (max-width: 600px) {
    #todo-text {
        width: 95%;
        max-width: none;
    }

    #todo-board {
        width: 95%;
    }

    .todo {
        min-width: 90%;
        max-width: 95%;
    }
}

.delete-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: red;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.delete-btn:hover {
    background: darkred;
}

#todo-button {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    background-color: rgb(54, 203, 136);
    cursor: pointer;
}

#todo-button:hover {
    background-color: #86f9a3;
}
