@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;700;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-color: #264653;
  --green-color: #2a9d8f;
  --yellow-color: #e9c46a;
  --white-color: #f4f4f4;
}

body {
  font-family: "Rubik", sans-serif;
  background-image: radial-gradient(circle, #f7eaca, #e9c46a);
  height: 100%;
}

button {
  border-radius: 5px;
  padding: 20px 40px;
  font-family: inherit;
  font-size: 1.1rem;
  text-transform: uppercase;
  background-color: var(--green-color);
  color: var(--white-color);
  border: 2px solid var(--dark-color);
  cursor: pointer;
}

button:hover {
  transform: scale(0.98);
}

h1 {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 50px auto;
  font-size: 4.9rem;
  font-weight: 900;
  width: 700px;
  color: var(--dark-color);
  border-bottom: 10px solid var(--dark-color);
}

.list-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

form {
  width: 700px;
  display: flex;
  justify-content: center;
}

form input {
  width: 50%;
  padding: 0px;
  font-size: 1.5rem;
  padding: 10px;
  border-radius: 5px;
  border: 2px solid var(--dark-color);
  background-color: var(--white-color);
}

form input:focus {
  outline: none;
  border: 2px solid var(--green-color);
}

form label {
  margin: auto 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  color: var(--dark-color);
}

form label i {
  margin-left: 5px;
}

form button {
  margin-left: 10px;
}

ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 346px;
  border: 2px solid var(--green-color);
  border-radius: 50px;
  margin-right: 34px;
  margin-top: 8px;
  padding: 10px;
  position: relative;
  background-color: var(--white-color);
  color: var(--dark-color);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  text-transform: capitalize;
}

ul li.show {
  opacity: 1;
}

ul li.line-through {
  text-decoration: line-through;
  border: 2px solid var(--dark-color);
  background-color: transparent;
}

ul li a {
  position: absolute;
  top: 1px;
  right: 12px;
  color: darkred;
  padding: 5px;
  font-size: 1.8rem;
}

ul li a:hover {
  color: crimson;
}

.clear-btn {
  margin-right: 34px;
  margin-top: 10px;
  margin-bottom: 10px;
}

small {
  margin-right: 34px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
    border-bottom: 5px solid var(--dark-color);
    width: 300px;
  }

  form {
    display: flex;
    flex-direction: column;
    width: 300px;
    align-items: center;
  }

  form input {
    width: 300px;
    margin-bottom: 10px;
    margin-top: 5px;
  }

  form label i {
    transform: rotate(90deg);
  }

  ul li {
    margin: 10px 0;
  }

  .clear-btn {
    margin-top: 40px;
    margin-right: 0;
    margin-left: 12px;
  }

  small {
    margin: 0;
  }
}
