@import url("https://fonts.googleapis.com/css2?family=Mogra&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
  font-family: "Mogra", system-ui;
}

.purple,
.form-control {
  color: #5e3b9c;
  border: 1px solid #5e3b9c;
  transition: 0.2s;
}

.purple:hover {
  background-color: #5e3b9c;
  color: white;
}

.text {
  font-size: 60px;
  font-weight: bold;
  background: -webkit-linear-gradient(#dbdbdb, #b300ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: cover;
}

.text2 {
  font-family: "Pacifico", cursive;
}

.box {
  margin: 10vh auto;
  width: 750px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 1px 1px 10px white;
}

#input {
  width: 400px;
  margin: 10px;
  padding: 10px;
  border: none;
  outline-style: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}
#input:focus {
  border-color: rgb(39, 20, 151);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgb(6, 0, 128);
}

.fa-cart-plus,
.fa-trash-can {
  font-size: 20px;
  border: none;
  outline-style: none;
  cursor: pointer;
  margin-left: 30px;
  transition: all 0.3s ease;
}
.fa-cart-plus:hover,
.fa-trash-can:hover {
  transform: scale(1.05);
}

button {
  background: none;
  color: white;
  border: none;
  padding: 0;
  cursor: pointer;
}

#list li {
  color: aliceblue;
  margin: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 1px 1px 10px white;
}

.del-btn,
.edit-btn {
  color: aliceblue;
  margin: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}
.counter {
  color: aliceblue;
  margin: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 1px 1px 10px white;
}

/* mobile  */
@media only screen and (max-width: 770px) {
  .box {
    width: 95%;
  }
  #input {
    width: 50%;
  }
  ul#list {
    padding-left: 0rem;
  }
  #list li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .counter {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
}
