:root {
  --btn-bg-color: hsl(27, 96%, 47%);
  --form-bg: hsl(195, 6%, 13%);
  --form-color: hsl(0, 0%, 100%);
  --text-bg: hsl(0, 0%, 0%);
}

html {
  font-family: "Poppins", sans-serif;
}
header {
  color: var(--form-color);
}
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(50deg, #333333, #dd1818);
}
.container {
  max-width: 400px;
  margin: 120px auto;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 1px 0px 15px 20px rgb(0 0 0 / 10%);
}

.container header {
  font-size: 30px;
  font-weight: 600;
}
.container .inputField {
  border-radius: 20px;
  margin: 20px 0;
  display: flex;
  height: 45px;
}
.inputField input {
  width: 85%;
  background-color: var(--form-bg);
  color: var(--form-color);
  height: 100%;
  outline: none;
  border-radius: 8px;
  border: none;
  font-size: 17px;
  padding-left: 15px;
  transition: all 0.3s ease;
}
.inputField input:focus {
  border-color: var(--btn-bg-color);
}
.inputField button {
  width: 50px;
  height: 100%;
  border: none;
  color: var(--color);
  margin-left: 5px;
  font-size: 21px;
  outline: none;
  background: var(--btn-bg-color);
  cursor: pointer;
  border-radius: 3px;
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}
.inputField button:hover,
.footer button:hover {
  background: var(--btn-bg-color);
}
.inputField button.active {
  opacity: 1;
  pointer-events: auto;
}
.container .todoList {
  max-height: 250px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}
.todoList li {
  position: relative;
  list-style: none;
  margin-bottom: 8px;
  background: var(--form-bg);
  color: var(--form-color);
  border-radius: 8px;
  padding: 10px 15px;
  cursor: default;
  overflow: hidden;
  word-wrap: break-word;
}
.todoList li .icon {
  position: absolute;
  right: -45px;
  top: 50%;
  box-sizing: border-box;

  transform: translateY(-50%);
  background: #e74c3c;
  width: 45px;
  text-align: center;
  color: var(--form-bg);
  padding: 10px 15px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.todoList li:hover .icon {
  right: 0px;
}
.container .footer {
  display: flex;
  width: 100%;
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer button {
  padding: 6px 10px;
  border-radius: 3px;
  border: none;
  outline: none;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  margin-left: 5px;
  background: var(--btn-bg-color);
  cursor: pointer;
  user-select: none;
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}
.footer button.active {
  opacity: 1;
  pointer-events: auto;
}

.footer span {
  font-weight: bold;
  color: var(--form-color);
}
