*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}

body{
    background-color: #A9B0BB;
    color:#3C372E;
    font-family: 'poppins', sans-serif;
    min-height: auto;
    overflow-x: hidden;
}

.div-container{
  margin: auto;
  min-height: auto;
  width: 50%;
  padding-bottom:4rem ;
  background:whitesmoke;
  border-radius: 1rem;
  backdrop-filter: blur(1rem);
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header {
    font-size: .8rem;
}

header, form {
    min-height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

form input, form button {
    padding: 0.5rem;
    font-size: 1.2rem;
    border:none;
    border-radius: 5px;
    margin:.5rem;
    background: white;
    box-shadow: 4px 6px 7px #A9B0BB;
    outline: none;
}

::placeholder {
    font-size: 1rem;
    opacity: .7;
}

form button {
    color: black;
    background: #DCAD42;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form button:hover {
    opacity: 0.7;
}

.todo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.todo-list {
    min-width: 30%;
    text-align: start;
    list-style:none;
}

.todo {
    color:black;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
    width: 500px;
    border-bottom: 1px solid #A9B0BB;
    padding-bottom: 1px;
}

.todo li {
    flex:1;
}

.trash-btn,
.complete-btn {
    color:black;
    background: transparent;
    border: 1rem;
    padding: .5rem;
    cursor: pointer;
    font-size: .8rem;
}

.complete-btn:hover{
    color:#32c766;

}

.trash-btn:hover{
    color:#ef4f5f;
}

.todo-item {
    padding: 0rem 0.5rem;
    word-break: break-all;

}

.fa-trash,
.fa-check {
    pointer-events: none;
}

.completed {
    text-decoration: line-through;
    opacity: 0.5rem;
}

.fall{
    transform: translateY(10rem) rotateZ(20deg);
    opacity: 0;
}

@media screen and (max-width: 800px) {
    header, form {
        min-height:auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width:300px;
    }
    form input {
        width: 80%;
    }
      .div-container{
        padding: 3rem 2rem;
        width:100%;
  
      }
      form button {
        width: 20%;
      }
      form input, form button{
        min-height:auto;
        padding: .2rem;
        font-size: 1rem;
        border:none;
        margin:.5rem;
    }
    .div-container{
        margin-top: 2rem;
        min-height: auto;
        width: 80%;
        padding-bottom:10rem ;
    }
    .todo {
        font-size: 1rem;
        width: 300px;
        border-bottom:1.5px solid #A9B0BB;
        padding-bottom: 1px;
    }
    ::placeholder {
        font-size: .8rem;
    }
}