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

html {
  direction: rtl;
}

body {
  padding: 20px;
  font-family: "Arial";
}

form {
  background-color: #eee;
  padding: 20px;
  gap: 20px;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  position: relative;
}

form input:first-child {
  width: calc(100% - 20px);
  padding: 15px;
  padding-left: 50px;
  font-size: 20px;
  border: none;
  caret-color: orangered;
  outline: none;
}
form input:first-child:hover {
  outline: none;
}
form input:first-child::selection {
  background-color: #136cf1;
  color: white;
}
form input:last-child {
  position: absolute;
  font-size: 40px;
  border: none;
  background-color: orangered;
  color: white;
  width: 57px;
  height: 57px;
  cursor: pointer;
  outline: 5px solid #eee;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  left: 20px;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}
form input:last-child:hover {
  transform: translateY(1.5px);
  -webkit-transform: translateY(1.5px);
  -moz-transform: translateY(1.5px);
  -ms-transform: translateY(1.5px);
  -o-transform: translateY(1.5px);
  background-color: rgb(240, 64, 0);
  width: 70px;
  height: 50px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

.container {
  position: relative;
}

.tasks {
  margin-top: 20px;
  background-color: #eee;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tasks span {
  text-align: center;
}

.tasks .task {
  background-color: white;
  position: relative;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}
.tasks .task.done {
  text-decoration: line-through;
}

.tasks .task p {
  font-size: 18px;
  width: fit-content;
  max-width: calc(100% - 50px);
  overflow: auto;
  padding: 8px 0;
}

.tasks .task .delete {
  border: none;
  cursor: pointer;
  font-size: 14px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px;
  background-color: orangered;
  color: white;
  border-radius: 8px;
}

.tasks-not-completed,
.tasks-completed {
  position: absolute;
  bottom: -60px;
  background-color: #eee;
  padding: 10px;
}
@media (max-width: 600px) {
  .tasks-not-completed,
  .tasks-completed {
    bottom: -75px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: white;
  }
}
.tasks-not-completed {
  right: 0px;
}
.tasks-completed {
  left: 0px;
}
.tasks-not-completed span,
.tasks-completed span {
  padding: 2px 8px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  color: white;
  text-align: center;
  margin-right: 5px;
}
.tasks-not-completed span {
  background-color: #2152f3;
}
.tasks-completed span {
  background-color: #008996;
}
@media (max-width: 600px) {
  .tasks-not-completed span,
  .tasks-completed span {
    margin-right: 0;
  }
}

.remove-all {
  display: block;
  margin: 20px auto;
  width: fit-content;
  border: none;
  text-align: center;
  padding: 12px 15px;
  background-color: orangered;
  font-size: 18px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}
