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

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #eee;
  height: 100%;
}

.empty-form-screen {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0 0 0 / 0.75);
  cursor: no-drop;
  display: none;
}
.empty-form-screen .empty-window {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #3195db;
  color: #fff;
  width: 400px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px #ddd;
  cursor: auto;
  text-align: center;
  line-height: 2;
  font-size: 22px;
}

.empty-btn-screen {
  padding: 0 30px;
  background-color: #fff;
  color: #3195db;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0px 0px 10px #ddd;
  cursor: pointer;
}

.app {
  text-align: center;
  padding: 50px 0;
}

.head-content {
  margin: 20px auto;
}

.head-content .title {
  margin: 0 auto 50px;
  padding: 0;
  font-size: 50px;
  color: #3195db;
}

.head-content .add-tasks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  margin: 0 200px;
  background-color: #3195db;
  border-radius: 8px;
  box-shadow: 0px 0px 10px #000;
}

.head-content .add-tasks .add-task-input {
  flex: 1;
  padding: 20px;
  border: none;
  border-radius: 6px;
  outline: none;
  font-size: 18px;
  color: #777;
  box-shadow: 0px 0px 10px #fff;
}

.head-content .add-tasks .add-task-input::placeholder {
  opacity: 1;
  transition: 0.5s;
}

.head-content .add-tasks .add-task-input:focus::placeholder {
  opacity: 0;
}

.head-content .add-tasks .add-task-btn {
  height: 61px;
  width: 80px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  display: block;
  background-color: #ff8100;
  color: #fff;
  font-weight: bold;
  box-shadow: 0px 0px 10px #fff;
  transition: 0.5s;
}

.head-content .add-tasks .add-task-btn:hover {
  background-color: #fff;
  color: #3195db;
}

.body-content {
  margin: 0 220px;
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
}

.body-content .tasks-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  overflow: hidden;
  gap: 20px;
  justify-content: space-between;
}

.body-content .tasks-list .task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #eee;
  border-radius: 6px;
  gap: 20px;
  flex-wrap: wrap;
  text-align: left;
}

.body-content .task .task-info {
  flex: 1;
  line-height: 1.6;
  background-color: #eee;
  padding: 10px;
  border-radius: 6px;
  font-size: 15px;
  transition: 0.5s;
}

.body-content .task .task-info:hover {
  background-color: #fff;
  color: #3195db;
  cursor: pointer;
}

.body-content .task .control {
  display: flex;
  gap: 10px;
  align-items: center;
}

.body-content .task .control .don,
.body-content .task .control .del {
  padding: 14px 16px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  text-transform: capitalize;
  font-size: 14px;
  transition: 0.5s;
}

.body-content .task .control .don {
  background-color: #3195db;
}

.body-content .task .task-info.active {
  text-decoration: line-through;
  color: #999;
}

.body-content .task .control .don:hover {
  background-color: rgb(0, 200, 0);
}

.body-content .task .control .del {
  background-color: #ff8100;
}

.body-content .task .control .del:hover {
  background-color: rgb(200, 0, 0);
}

.app .foot-content {
  margin: 20px 200px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.app .total-tasks,
.app .completed-tasks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 120px;
  padding: 10px;
  background-color: #fff;
  border-radius: 6px;
}

.app .total-tasks span,
.app .completed-tasks span {
  padding: 5px 10px;
  color: #fff;
  border-radius: 6px;
}

.app .total-tasks span {
  background-color: #3195db;
}

.app .completed-tasks span {
  background-color: #ff8100;
}

@media (max-width: 767px) {
  .app {
    padding: 20px 0;
  }
  .app .head-content {
    margin: 0 auto 10px;
  }
  .app .head-content .title {
    margin: 0 auto 20px;
  }
  .app .head-content .add-tasks {
    margin: 0 10px;
    padding: 5px;
    gap: 10px;
  }
  .app .body-content {
    margin: 0 20px;
    padding: 10px;
  }
  .body-content .tasks-list .task {
    padding: 10px;
    background-color: transparent;
    flex-direction: column;
    border: 1px solid #ccc;
  }
  .app .foot-content {
    margin: 20px;
  }
  .body-content .task .task-info {
    width: 100%;
  }
  .head-content .add-tasks .add-task-input {
    padding: 15px;
  }
  .head-content .add-tasks .add-task-btn {
    height: fit-content;
    width: fit-content;
    padding: 15px;
  }
  .body-content .task .task-info:hover {
    background-color: #3195db;
    color: #fff;
    cursor: pointer;
  }
}
