@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --color-1: #05052d;
  --color-2: #4a0404;
  --color-3: #009b4d;
  --color-4: #23d5ab;
  --color-5: #454b1b;
  --text: #faf5e9;
  --white: #fff;
  --color-11: #4158D0;
  --color-12: #C850C0;
  --color-13: #FFCC70
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: linear-gradient(
    45deg,
    var(--color-11),
    var(--color-12),
    var(--color-13),
    var(--color-4),
    var(--color-5)
  );
  background-size: 300% 300%;
  animation: color 12s ease-in-out infinite;
  color: var(--text);
  height: 100vh;
}

.container {
  background-color: var(--white);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  width: 100%;
  max-width: 800px;
  margin: 10rem auto;
  padding: 3rem 0;
}
header {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.h1-heading{
  color: #002765;
  font-size: 2rem;
}
.todo-image {
  width: 50px;
  height: 55px;
}
.todo-image img {
  max-width: 100%;
}
header,
form {
  /* min-height: 20vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
}

form input {
  border-radius: 10px 0 0 10px;
}
form input,
form button {
  padding: 0.5rem;
  font-size: 1.5rem;
  border: none;
  background-color: #E0E0E0;
  outline: none;
}
form button {
  color: var(--white);
  background: #ff5945;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  transition: all 0.3s ease-in-out;
}
form button:hover {
  background: var(--color-12);
  color: #fff;
}
.todo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.todo-list {
  min-width: 30%;
  list-style: none;
}

.todo {
  margin: 0.5rem;
  background-color: #696969;
  color: var(--text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s ease;
  border-radius: 10px 10px 10px 10px;
}
.todo-item {
  flex: 1;
  padding: 0rem 0.5rem;
}
.complete-btn,
.trash-btn {
  padding: 1rem;
  border: none;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.complete-btn {
  background: #5ada3b;
}

.complete-btn:hover {
  background: #79c965;
}

.trash-btn {
  border-radius: 0 10px 10px 0;
  background-color: #ff5945;;
}

.trash-btn:hover {
  background: #a70202;
}

.fa-xmark,
.fa-check {
  pointer-events: none;
}

.fall {
  opacity: 0;
  animation: fall-animation 1s ease-in-out forwards;
}


@keyframes color {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}




@keyframes fall-animation {
  0% {
    opacity: 0.8;
    transform: translateY(0);
  }
  20% {
    transform: translateY(-5px);
  }
  40% {
    transform: translateY(0px);
  }
  60% {
    transform: translateY(-5px);
  }
  80% {
    transform: translateY(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.completed {
  text-decoration: line-through;
  opacity: 0.5;
}

select {
  color: var(--color-2);
  border: none;
  outline: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  width: 10rem;
  cursor: pointer;
  padding: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  background-color: #E0E0E0;
}

select option {
  font-weight: 600;
  border-radius: none;
}
.select {
  margin: 1rem;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.select::after {
  content: "\25bc";
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  color: var(--color-2);
  pointer-events: none;
  transition: all 0.3s ease;
}


@media (max-width: 600px) {
  .container{
    max-width: 90%;
    width: 80%;
  }
  form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  form input{
    width: 70%;
  }
}