/*10px => 0.625rem*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  padding-top: 5rem;
  min-height: 100vh;
  background-image: linear-gradient(100deg, #302d2d, #096891);
  color: #ebf9ff;
}

header {
  font-size: 3rem;
  padding-bottom: 2.5rem;
}

.animate__animated.animate__bounceInDown {
  --animate-duration: 1.7s;
}

header,
form {
  min-height: 10vh;
  margin: 0 1rem;
}

form {
  display: flex;
  font-size: 1.7rem;
  justify-content: center;
  margin: 0.9rem 0;
  padding: 0.8rem;
  width: 100%;
}

form input,
form button {
  border: none;
  outline: none;
  font-size: 1.7rem;
}

form input {
  padding: 1rem;
  border-top-left-radius: 17px;
  border-bottom-left-radius: 17px;
  max-width: 500px;
  transition: background-color 200ms ease-in-out;
  width: 100%;
  background-color: #181a1a;
  color: rgb(247, 226, 223);
}

form input:hover {
  cursor: text;
}

button {
  border: none;
  outline: none;
  transition: box-shadow 200ms ease, background-color 200ms ease-in-out;
}

button:hover {
  cursor: pointer;
  background-color: #dbf3ff;
  box-shadow: #fff8 0 0 1rem;
}

form button {
  padding: 1rem;
  font-size: 1.1rem;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  min-width: 100px;
}

input::placeholder {
  background-color: #181a1a;
  color: rgb(247, 226, 223);
}

.todo-button {
  color: #01212c;
}

.todo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
}

.todo-list {
  min-width: 26%;
  list-style: none;
}

.todo {
  margin: 1rem;
  font-size: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 30px;
  color: #d2dbdf;
  background-color: #333638;
  transition: all 0.5s ease;
}

.todo li {
  flex: 1;
  padding: 0.9rem;
  margin: 0.1rem;
  border-radius: 30px;
  font-size: 1.6rem;
  overflow-wrap: anywhere;
}

.trash-btn,
.check-btn {
  background-color: #fff8;
  color: rgb(0, 0, 0);
  font-size: 1.2rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 80%;
  margin: 0 0.5rem;
}

.todo-item {
  padding: 0rem 0.5rem;
}

.fa-trash,
.fa-check {
  pointer-events: none;
}

.completed {
  text-decoration: line-through;
  opacity: 0.5;
}

.fall {
  /*transition: 1.5s;
  transform: translateY(25rem) rotateZ(28deg);
  opacity: 0; */
  opacity: 0;
  cursor: pointer;
}

/* Responsive design */

@media only screen and (max-width: 1000px) {
  .todo-container {
    align-self: unset;
    margin-right: 0;
  }
}

@media only screen and (max-width: 800px) {
  header {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    max-width: 330px;
    padding-bottom: 1.5rem;
  }
}

@media only screen and (max-width: 650px) {
  header {
    font-size: 1.5rem;
    max-width: 255px;
  }
}

@media only screen and (max-width: 650px) {
  form {
    align-items: center;
    flex-direction: column;
    margin-top: -15px;
  }

  form input {
    border-radius: 17px;
    font-size: 14px;
  }

  form button {
    border-radius: 15px;
    margin-top: 15px;
    width: 20%;
    font-size: 14px;
  }

  .todo li {
    font-size: 14px;
  }

  .trash-btn,
  .check-btn {
    font-size: 14px;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 80%;
    margin: 0 5px;
  }
}

@media only screen and (max-width: 556px) {
  form button {
    padding: 0.5rem;
    font-size: 14px;
  }

  .todo {
    /*padding: 0.2rem;*/
    padding: 0.1rem 0.1rem;
    border-radius: 25px;
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  form button {
    border-radius: 10px;
    margin-top: 25px;
    width: 30%;
    font-size: 12px;
  }
}
