@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100&display=swap');

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

body{
  font-family: 'Raleway', sans-serif;
  background-image: linear-gradient(to right, #aeeeaf, #94bbe9);
}

.container {
  width: 95%;
  margin: auto;
}

.nav{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  margin: 25px 0;
}

.nav h2{
  font-size: 2rem;
}

.to-do-add{
  width: 350px;
  text-align: center;
}

.to-do-add input{
  width: 80%;
  padding: 8px;
  border: 1px solid lightgray;
  border-radius: 5px;
}

.to-do-add button{
  cursor: pointer;
  padding: 8px;
  width: fit-content;
  outline: none;
  background-color: lightgray;
  border: 1px solid lightgray;
  border-radius: 5px;
  transition: 1s;
}

.to-do-add button:hover{
  background-color: #eeaeca;
}

.to-do-items{
  width: 500px;
  margin: auto;
}

.item{
  background-color: white;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: auto;
  border-radius: 2px;
  padding: 16px;
  color: black;
  margin-top: 10px;
  font-size: 1rem;
  text-transform: uppercase;
}

.item button{
  cursor: pointer;
  margin: 0 5px;
}

@media(max-width: 768px){
  .nav{
    align-items: center;
    flex-direction: column;
  }

  .nav h2{
    margin: 10px 0;
  }

  .to-do-add{
    width: 100%;
  }

  .to-do-items{
    width: 100%;
  }
}

@media(max-width: 480px){
  .to-do-add{
    width: 74%;
  }
}

@media(max-width: 320px){
  .to-do-add{
    width: 60%;
  }
}