* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
 /* background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%); */
 background-image: url(Screenshot\ 2025-06-16\ 200916.png);
 background-repeat: none;
  background-size: calc(100% + 20px) calc(100% + 130px);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
}

header {
  font-size: 2rem;
  color: #ff6f47;
}


header,
form {
  min-height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

form input,
form button {
  padding: 0.5rem;
  font-size: 2rem;
  border: none;
  background: white;
}

form button {
  color: #ff6f47;
  background: #f7fffe;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover {
  background: #ff6f47;
  color: white;
}

.todo-container {
  
  margin-right: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.todo-list {
  
  min-width: 35%;
  list-style: none;
  border: 1px solid #ff6f47;
}

.todo {
  margin: 0.5rem;
  background: white;
  font-size: 1.5rem;
  color: black;
  display: flex;
  justify-content: space-between;
align-items: center;
transition: transform 0.4s ease, opacity 0.4s ease;
}

.filter-todo {
  padding: 1rem;
  font-size: 20px;
}

.todo li {
  flex: 1;
}

.trash-btn,
.complete-btn {
  background: #ff6f47;
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1rem;
}

.complete-btn {
  background: rgb(73, 204, 73);
}

.todo-item {
  padding: 0rem 0.5rem;
}

.fa-trash,
.fa-check {
  pointer-events: none;
}

.fa-fall {
  transform: translateY(15rem) rotateZ(20deg);
  opacity: 0;
}

.fall {
  transform: translateY(15rem) rotateZ(20deg);
  opacity: 0;
}

.completed {
  text-decoration: line-through;
  opacity: 0.5;
}

/* Custom Selector */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  box-shadow: none;
  outline: none;
  border: none;
  background-image: none;
  color: #ff6f47;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  width: 12rem;
  height: 3.3rem;
}

.select {
  margin: 1rem;
  position: relative;
  overflow: hidden;
}

.select::after {
  content: "\25BC";
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.2rem;
  background: #ff6f47;
  cursor: pointer;
  pointer-events: none;
  
}


@media (max-width: 600px) {
  body {
    background-size: calc(100% + 50px) calc(100% + 10px);
  }

  header {
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    color: #ff6f47;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  }

  /* Form layout */
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  /* Input + button në një rresht */
  .form-top {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }

  .todo-input {
    flex: 1;
    font-size: 1.2rem;
    padding: 0.5rem;
    
  }

  .todo-button {
    width: 3rem;
    height: 2.6rem;
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
    
    
  }

  /* Select dropdown */
  .select {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    margin: 0.5rem 0;
  }

  .filter-todo {
    padding: 0.3rem 0.7rem;
    width: auto;
    min-width: 150px;
    max-width: 100%;
    font-size: 1rem;
    border-radius: 5px;
    text-align: center;
    background-color: white;
    border: 1px solid #ccc;
    appearance: none;
  }

  select option {
    font-size: 1rem;
    padding: 0.3rem;
  }

  .select::after {
    content: "\25BC";
    margin-right: 180px;
    padding: 1.1rem;
    font-size: 1rem;
  }

  /* Lista e todos */
  .todo-container {
    padding: 10px;
    justify-content: center;
  }

  .todo-list {
    min-width: 100%;
    border: none;
    padding: 0;
  }

  .todo {
    font-size: 1.2rem;
    flex-direction: row;
    align-items: center;
    padding: 0.09rem;
  }

  .todo li {
    flex: 1;
    margin-bottom: 0;
  }

  .trash-btn,
  .complete-btn {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
  }
}

