@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;500&family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(to bottom, #68eacc 0%, #497be8 100%);
}

.wrapper {
  margin: 120px auto;
  max-width: 400px;
  width: 100%;
  background-color: #fff;
  border-radius: 5px;
  padding: 25px;
}

.wrapper h1 {
  font-size: 30px;
  font-weight: 600;
}

.wrapper .input-field {
  display: flex;
  height: 45px;
  width: 100%;
  margin: 20px 0;
}

.input-field input {
  width: 85%;
  height: 100%;
  border: 1px solid #ccc;
  font-size: 17px;
  border-radius: 3px;
  padding-left: 15px;
}

.input-field button {
  width: 60px;
  height: 100%;
  border: none;
  outline: none;
  background-color: #8e49e8;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  border-radius: 3px;
  margin-left: 5px;
  opacity: 0.6;
  pointer-events: none;
}

.input-field button.active {
  opacity: 1;
  pointer-events: auto;
}

.wrapper .todolist {
  max-height: 250px;
  overflow-y: auto;
}

.todolist li {
  list-style: none;
  height: 45px;
  line-height: 45px;
  position: relative;
  background-color: #f2f2f2;
  border-radius: 3px;
  margin-top: 8px;
  padding: 0 15px;
  cursor: default;
  overflow: hidden;
}

.todolist li span {
  position: absolute;
  right: -45px;
  color: #fff;
  width: 45px;
  text-align: center;
  background: #e74c3c;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.todolist li:hover span {
  right: 0;
}

.wrapper .foot {
  display: flex;
  width: 100%;
  align-items: center;
  margin-top: 25px;
  justify-content: space-between;
}

.foot button {
  border: none;
  outline: none;
  background-color: #8e49e8;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border-radius: 3px;
  padding: 6px 10px;
  opacity: 0.6;
  pointer-events: none;
}

.foot button.active {
  opacity: 1;
  pointer-events: auto;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-family: "Open Sans", sans-serif;
  color: #f5f5f5;
  background-color: black;
  padding: 10px 0px;
  font-size: min(2vw, 15px);
  position: fixed;
  left: 0px;
  bottom: 0px;
  width: 100%;
}
