@import url("https://fonts.googleapis.com/css2?family=Lora&family=Ubuntu:ital@1&display=swap");

* {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

body {
    background: url("../images/background.jpg") no-repeat center center;
    background-size: cover;
    max-width: 2000px;
    min-height: 100vh;
    font-family: "Lora", serif;
    color: #076177;
    margin: 0 auto;
}

/* To do container */
.todo-container {
    background-color: #fdfdfd;
    margin: 4rem auto;
    padding: 1.5rem;
    max-width: 500px;
    border-radius: 15px;
}

/* Header*/
#header {
    font-family: "Ubuntu", sans-serif;
    color: #196476;
    letter-spacing: 1px;
    text-align: center;
    font-size: 3rem;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #829fa5;
}

/* buttons */
button {
    background-color: #fdfdfd;
    color: #076177;
    border: 2px solid #076177;
    padding: .3rem .6rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

button:hover {
    background-color: #076177;
    color: #fdfdfd;
}

button i {
    color: #076177;
    font-weight: bold;
}

button:hover>i {
    color: #fdfdfd;
}

input,
select {
    padding: 0.25rem 0.5rem;
}

/* Form */
#todo-form {
    padding: 1rem;
    border-bottom: 1px solid #829fa5;
}

#todo-form h2 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hide {
    display: none;
}

.form-control {
    display: flex;
}

.form-control input {
    margin-right: 0.4rem;
    border: 1px solid #3D7C82;
    flex: 1
}

/* toolbar */
#toolbar {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #829fa5;
}

#toolbar h2 {
    margin-bottom: 0.5rem;
}

#search {
    display: flex;
    flex-direction: column;
    width: 65%;
    border-right: 1px solid #829fa5;
    padding-right: 0.3rem;
    margin-right: 1rem;
}

#search form {
    display: flex;
}

#search input {
    width: 100%;
    margin-right: 0.4rem;
    border: 1px solid #3D7C82;
}

#filter {
    display: flex;
    flex-direction: column;
    width: 35%;
}

#filter select {
    flex: 1;
    border: 1px solid #3D7C82;
}

/* To do list */
#todo-list {
    max-height: 60vh;
    overflow-y: scroll;
}

.todo {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid #829fa5;
    padding: 1rem;
    transition: 0.5s;
}

.todo h3 {
    flex: 1;
    font-size: 1rem;
}

.todo button {
    margin-left: 0.4rem;
}

.done {
    background-color: #196476;
}

.done h3 {
    color: #fdfdfd;
    font-style: italic;
    text-decoration: line-through;
}

/* Media queries */
/* For medium screens sizes from 600px wide and down */
@media screen and (max-width: 600px) {
    .todo-container {
        max-width: 90%;
    }

    #header {
        font-size: 2.5rem;
    }

    #todo-form,
    #toolbar,
    .todo {
        padding: 1rem 0
    }

    button {
        margin-left: 0.1rem;
        font-size: 80%;
    }
}