@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100vh;
}
.container {
  width: 400px;
}
@media (max-width: 720px) {
  .container {
    width: 350px;
  }
}
.form {
  margin: 20px 0;
  background-color: #ddd;
  padding: 15px;
  border-radius: 4px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}
input {
  border-radius: 4px;
  border: 0;
  padding: 8px;
  font-size: 14px;
}
input[type="text"] {
  width: 75%;
}
input[type="submit"] {
  background-color: rgb(255, 136, 0);
  color: white;
  cursor: pointer;
  width: 20%;
}

.tasks {
  background-color: #ddd;
  padding: 20px;
  border-radius: 4px;
  position: relative;
}
.tasks .task {
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  background-color: white;
  padding: 5px;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 15px;
}
.tasks .task:not(:last-child) {
  margin-bottom: 15px;
}

.tasks .task:hover {
  background-color: #f7f2f2;
}
.tasks .task.done {
  opacity: 0.5;
}

.tasks .task span {
  font-weight: bold;
  font-size: 10px;
  background-color: red;
  color: white;
  padding: 2px 6px;
  border-radius: 15px;
  cursor: pointer;
}

.tasks .delete-all {
  font-weight: bold;
  font-size: 12px;
  background-color: rgb(0, 195, 255);
  color: white;
  padding: 2px 6px;
  border-radius: 15px;
  cursor: pointer;
  display: inline-flex;
  position: absolute;
  bottom: 0;
  right: 0px;
  transform: translate(-33%, -50%);
}

@keyframes border {
  0% {
    border-color: transparent;
  }
  1% {
    border: 0.3px solid black;
  }
  100% {
    border: 1px;
  }
}
