* {
    border: none;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    list-style-type: none;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    align-items: center;
    background-image: linear-gradient(125deg, #200f22, #1b2c2e);
    display: flex;
    gap: 20px;
    height: 100vh;
    justify-content: center;
}

h1 {
    font-size: 1.5rem;
}

.app {
    align-items: center;
    background-color: rgb(246 246 246 / 70%);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0px 0px 10px #0000002b;
    display: flex;
    flex-direction: column;
    padding: 30px;
    width: 40%;
    max-height: 90%;
}

#new-task-form {
    box-shadow: 0 0 10px #00000063;
    border-radius: 7px;
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
}

#new-task-title {
    border: 1px solid #c9c9c9;
    border-right-color: transparent;
    border-radius: 7px 0 0 7px;
    flex-grow: 1;
    padding: 5px;
}

#add-button {
    border: 1px solid #c9c9c9;
    border-left-color: transparent;
    border-radius: 0 7px 7px 0;
    cursor: pointer;
    font-weight: 900;
    padding: 5px 15px;
}

#list, #completed-list {
    overflow: auto;
    width: 100%;
}

.list-item {
    align-items: center;
    border-bottom: 1px solid #00000047;
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    transition: all 0.3s;
}

.checkbox {
    margin-right: 5px;
}

.checkbox:checked + .txt{
    transition: all 0.2s ease-in-out;
    text-decoration: line-through;
    opacity: 0.6;
}

.txt {
    word-break: break-all;
}

.trash, .edit {
    opacity: 0;
    margin-left: 25px;
    width: 20px;
    height: 20px;
}

.show {
    opacity: 1;
    cursor: pointer;
}

@media screen and (max-width: 768px){
    body {
        flex-direction: column;
    }

    .app {
        width: 90%;
        max-height: 45%;
        max-width: none;
    }
}