@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
  height: 100vh;
}
.container{
  max-width: 500px;
  padding: 20px;
  display: flex;
  margin: auto;
  flex-direction: column;
  margin-top: 45px;
}

header{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;

  h1{
    display: inline;
    font-weight: 300;
    margin-left: 20px;
  }
  img{
    width: 55px;
  }
} 

form{
  input{
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    font-size: 18px;
    margin-bottom: 20px;
    border-radius: 5px;
    outline: none;
  }

  .btn{
    background: #333;  
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    margin-bottom: 20px;
  }
}

.filter{
  input{
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    margin-bottom: 20px;
    outline: none;
    background-color: transparent;

  }
}

#clear{
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: transparent;
  border-radius: 5px;
  cursor: pointer;
color : #eb1010b6;
font-weight: 700;}


ul{
  display: grid;
  gap : 20px 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 40px;

  li{
    list-style-type: none;
    border : 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 15px;
    display: flex;
    font-weight: 900;
    justify-content: space-between;

    button{
      border: none;
      background: transparent;

      i{
        color: red;
        cursor: pointer;
      }
    }
  }
}


/* -----------------media -------------------*/

@media(max-width:500px){
  ul{
      grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 35px;
  }
}