* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #070300;
    color: #bbbbbb;
    font-family: "Montserrat", sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

main {
    width: 100vw;
    padding: 20px 0;
}

footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    color: #666;
}

form h1 {
    color: white;
    font-size: 2rem;
}

form {
    min-height: 30vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

form input,
form button {
    color: #bbbbbb;
    padding: 0.5rem;
    font-size: 1.5rem;
    border: 3px solid white;
    background: none;
    font-family: "Montserrat", sans-serif;
}

form input:focus,
form button:focus {
    outline: none;
}

form button {
    color: white;
    border-width: 3px 3px 3px 0;
    padding: 0.5rem 1rem;
    margin-left: -5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
form button:hover {
    background-color: white;
    color: #070300;
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.todo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.todo-list {
    list-style: none;
}

.todo {
    margin: 0.5rem 0;
    background-color: white;
    color: black;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}

.todo li {
    flex: 1;
}

.todo-item,
.trash-btn,
.complete-btn {
    line-height: 45px;
    padding: 0 0.5rem;
}

.trash-btn,
.complete-btn {
    background-color: #070300;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 1rem;
}
.trash-btn:hover,
.complete-btn:hover {
    filter: brightness(70%);
}

.complete-btn:focus {
    outline: none;
}

.trash-btn {
    background-color: #3d3d3d;
}

.fa-trash,
.fa-check {
    pointer-events: none;
}

.completedColor {
    text-decoration: line-through;
    background-color: #666;
}

.falling {
    transform: translateY(8rem) rotateZ(20deg);
    opacity: 0;
}
.falling .trash-btn {
    background-color: red;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
}

.filter {
    border: 3px solid white;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
}
select {
    height: 45px;
    color: #bbbbbb;
    background-color: #070300;
    width: 10rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}
.filter::after {
    content: "\25BC";
    height: 45px;
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    background-color: white;
    color: #070300;
    pointer-events: none;
    transition: all 0.3s ease;
}
.filter:hover {
    filter: brightness(70%);
}

@media screen and (max-width: 840px) {
    /* main {
        width: auto;
    } */
}

@media screen and (max-width: 670px) {
    form h1 {
        font-size: 1.5rem;
    }

    form input,
    form button {
        font-size: 1rem;
    }

    .filter {
        height: 41px;
    }
    .filter::after {
        height: 41px;
        padding: 0.5rem 1rem;
    }
    select {
        height: 41px;
    }

    .todo {
        font-size: 1rem;
        height: 40px;
    }

    .todo-item,
    .trash-btn,
    .complete-btn {
        line-height: 40px;
    }
}

@media screen and (max-width: 480px) {
    form {
        height: 20vh;
    }

    form h1 {
        font-size: 18px;
    }

    form button {
        margin: 0;
    }

    .form-wrapper {
        flex-direction: column;
    }

    .todo-wrapper {
        margin-bottom: 10px;
        width: 100%;
        display: flex;
    }
    .todo-wrapper input {
        flex: 1;
    }

    .filter {
        margin-left: 0;
        display: flex;
        width: 100%;
    }
    .filter::after {
        padding: 0.5rem 1rem;
    }
    select {
        width: 90%;
        font-size: 14px;
    }

    footer p {
        font-size: 10px;
    }
}
