*{
    box-sizing: border-box;
}
p, body {
    margin: 0;
}
body {
    background-color: #bbbfb9;
}
.header {
    width: 100%;
    height: 130px;
    background: url("forest.png") center/cover no-repeat;
    color: #fff;
    font-family: 'Segoe UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;

    h1 {
        text-shadow: 2px 2px 13px #000;
        user-select: none;
    }
}

.add-input-container {
    width: 100%;
    max-width: 600px;
    height: 50px;
    margin: 30px auto;
    padding: 0 10px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;

    .add-todo-btn {
        font-size: 20px;
        flex-grow: 1;
        user-select: none;
    }
}

.search-input-container {
    width: 100%;
    max-width: 600px;
    height: 60px;
    margin: 0 auto 30px;
    padding: 0 10px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
}

.add-todo-input,
.search-todo-input {
    border: none;
    font-size: 24px;
    flex-grow: 3;

}
.todo-list-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 15px;
    
    .todo {
        height: 60px;
        padding: 0 10px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        background-color: #e0e4bd;
        box-shadow: 0 0 15px 3px #00000055;
    }
    
    .todo-checkbox {
        accent-color: #3db86a;
        width: 25px;
        height: 25px;
    }

    .todo-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin: 0;

        .todo-text {
            margin: 0 0 3px 0;
        }
        .todo-creation-date {
            font-size: 12px;
            font-style: italic;
        }
    }
    .remove-todo-btn {
        background-color: #b5a2a2;
        border: none;
        color: #fff;
        padding: 5px 10px;
        background-color: #b83d3d;
        cursor: pointer;

        &:disabled {
            background-color: #b79999;
            cursor: not-allowed;
        }

    }
    .todo:has(.todo-checkbox:checked) {
        background-color: #6acb8e;
    }
    .todo-checkbox:checked ~ .todo-info {
        text-decoration: line-through;
    }
}