@import url('https://v1.fontapi.ir/css/Yekan');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
  font-family: Yekan, sans-serif;
  font-size: 15px;
}

body {
  direction: rtl;
  background-image: linear-gradient(to bottom left, #3498db, #2c3e50);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background-color: white;
  width: 400px;
  text-align: center;
  border-radius: 7px;
}

.container h2 {
  margin: 10px;
  font-size: 25px;

}

.add {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-content: center;
}

.add input {
  padding: 5px;
  width: 300px;
}

.add button {
  margin-right: 5px;
  font-size: 15px;
  font-weight: 800;
  width: 35px;
  background-color: #3498db;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0.6;
}

.add button.active {
  opacity: 1;
  pointer-events: auto;
}

.add button:hover {
  background-color: #2980b9;
}

.container ul {
  list-style-type: none;
  margin: 10px 15px;
  text-align: right;
}

.container ul li {
  background-color: #c7ecee;
  margin-bottom: 3px;
  padding: 5px 10px 5px 3px;
  display: flex;
  justify-content: space-between;
}

.container ul li:hover button {
  display: block;
}

.container ul li p {
  font-size: 15px;
}

.container ul li button {
  font-size: 12px;
  padding: 0px 4px;
  border: none;
  background-color: #EA2027;
  color: #fff;
  cursor: pointer;
  display: none;
}

.container ul li button:hover {
  background-color: #b5171d;
}

.container .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 20px;
  margin-bottom: 15px;
}

.container .footer p {
  font-size: 12px;
}

.container .footer button {
  font-size: 12px;
  background-color: #3498db;
  padding: 5px;
  color: #fff;
  cursor: pointer;
  border: none;
  pointer-events: none;
  opacity: 0.6;
}

.container .footer button.active{
  pointer-events: auto;
  opacity: 1;
}

.container .footer button:hover {
  background-color: #2980b9;
}