@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --main-color:#341aff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Mulish", sans-serif;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 18px;
}

p {
    font-size: 18px;
}

button {
    height: fit-content;
    width: fit-content;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: var(--main-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    opacity: 0.8;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
}

#app {
    width: 400px;
    min-height: 500px;
}

#app header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

#app header #title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#app #todo {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

#app #todo .card {
    display: flex;
    justify-content: space-between;
    border: 1px solid black;
    border-radius: 8px;
    padding: 14px;
}

#app #todo .card .content {
    display: flex;
    gap: 14px;
}

#app #todo .card .content p {
    margin-top: 4px;
    max-width: 200px;
}

#app #todo .card .content input {
    width: 20px;
    accent-color: var(--main-color); 
}

#app #todo .card.done h2 {
    text-decoration: line-through;
    text-decoration-color: red; 
    color: rgb(177, 177, 177);
}

#app #todo .card.done p {
    color: rgb(177, 177, 177);
}

#app #todo .card .action button {
    padding: 0;
    background-color: transparent;
}

#app #todo .card .action button img {
    width: 20px;
}

#app #form-add {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

#app #form-add div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#app #form-add div input {
    height: 40px;
    outline: none;
    border: 1px solid black;
    border-radius: 8px;
    padding: 0 14px;
}

#app #form-add #btn-save {
    width: 100%;
}

