@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#142d52, #0a0d24);
  color: #eee;
  padding: 1rem;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  width: 500px;
}

h1 {
  text-align: center;
  font-size: 3rem;
}

form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #fff;
  overflow: hidden;
  width: 100%;
  border-radius: .5rem;
}

.form input,
.form button {
  background-color: transparent;
  padding: 1rem;
  color: #eee;
  border: none;
  outline: none;
  font-size: 1rem;
}

.form input {
  width: 100%;
}

.form button {
  background-color: #167493;
  cursor: pointer;
  transition: all ease .3s;
}

.form button:hover {
  background-color: #268aab;
}

.show-tasks {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 1rem;
  background-color: #268aab;
  color: #e6e6e6;
  border-radius: .5rem;
  width: 100%;
}

.task button {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  padding: .1rem 1rem;
  cursor: pointer;
  background-color: #f00;
  color: white;
  border-radius: .5rem;
  border: none;
}

.task button:hover {
  background-color: #ff4c4c;
}

.done {
  background-color: #1b4452;
}