@keyframes changeanime {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(15deg);
  }

  25% {
    transform: rotate(-15deg);
  }

  50% {
    transform: rotate(25deg);
  }

  75% {
    transform: rotate(-25deg);
  }

  100% {
    transform: rotate (0deg);
  }
}





body {
  font-family: Arial, sans-serif;
  background-image: url('https://images.unsplash.com/photo-1483058712412-4245e9b90334?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  backdrop-filter: blur(6px);
}


.main{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 80%;
 
}

.myname{
    
    color: white;
    font-family: monospace;
    width: 50%;
    display: inline-block;

}
.myname>h1{
    
    color: whitesmoke;
    font-family: 'Kanit', sans-serif;
font-family: 'Sedgwick Ave Display', cursive;
font-size: 3rem;
display: inline-block;

    

}
.myname>img{
    
    height: 5rem;
    width: 8rem;
    display: inline-block;
    margin-top: 1rem;
    object-fit: contain;
    position: relative;
    margin-left: -2rem;
    margin-bottom: -1rem;
    

    

}




.todo-app {
  background-color: #fff;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  width: 50% ;
  
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-:2rem ;
  overflow: scroll;
  max-height: 69vh; 
  object-fit: contain;
  display: inline-block;
}

.todo-app::-webkit-scrollbar {
    display: none;

}


h1 {
  color: #333;
  text-align: center;
}

input[type="text"] {
  width: 99%;
  padding: 8px 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
 
  object-fit: contain;
}

label {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  object-fit: contain;
}

button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

ul {
  list-style-type: none;
  padding: 0;
  color: rgb(145, 22, 198);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #ddd;

}

li:last-child {
  border-bottom: none;
}

.delete-button {
  color: rgb(145, 22, 198);
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: flex-end;
}

.delete-button:hover {
  color: red;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: flex-end;
  animation: changeanime 0.3s ease-in-out 0s 1 alternate-reverse;
}

@media screen and (max-width: 600px) {
  .todo-app {
    max-width: 80%;
  }

  li {
    flex-direction: row;
    
  }

  .delete-button {
    margin-top: 5px;
  }
}

@media screen and (max-width: 1080px){
  .myname{
    display: none;
  }
  .todo-app {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-:2rem ;
  overflow: scroll;
  max-height: 69vh;
  display: inline-block;
}
.main{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 80%;
 
}
}