/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: cursive;
  background-color: #e0f7fa;
  transition: background-color 0.5s;
}

.wrapper {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
  transition: box-shadow 0.3s, border-radius 0.3s;
}

.wrapper:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 24px;
}

.todo-header-logo {
  color: #00796b;
  margin-bottom: 10px;
  font-size: 25px;
  text-align: center;
  padding-top: 15px;
  text-shadow: 0 2px 4px #00796b;
}

.todo-header {
  display: flex;
  padding: 20px;
  column-gap: 10px;
  margin-bottom: 10px;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

hr {
  border: 1px solid #81ada8;
}

.todo-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-bottom: 2px solid #81ada8;
  overflow-y: auto;
  flex: 1;
}

.todo-body ul li {
  list-style: none;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s, border-radius 0.3s;
}

.todo-body ul li:hover {
  background-color: #f1f1f1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.todo-body ul li .list-item-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.todo-header .todo-input {
  padding: 4px;
  font-family: cursive;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: box-shadow 0.3s;
}

.todo-input:focus {
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

.todo-header .add-button {
  margin: 5px 10px;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  background-color: #00796b;
  color: #fff;
  transition: background-color 0.3s;
}

.todo-header .add-button:hover {
  box-shadow: 0 0 10px #409654, 0 0 50px;
  background-color: #218838;
}

.list-action {
  display: flex;
  flex-direction: row;
  column-gap: 5px;
}

.todo-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  column-gap: 10px;
  padding: 5px;
}

.delete-button {
  color: #a13843;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px 15px;
  padding: 5px 10px;
  transition: background-color 0.3s;
}

.update-button {
  color: #0e66ae;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px 15px;
  padding: 5px 10px;
  transition: background-color 0.3s;
}

/* Media Queries */
@media (max-width: 600px) {
  .wrapper {
      width: 100%;
      max-width: 100%;
      border-radius: 8px;
  }

  .todo-header-logo {
      font-size: 20px;
      margin-bottom: 5px;
      padding-top: 10px;
  }

  .todo-header {
      flex-direction: column;
      height: auto;
      padding: 10px;
  }

  .todo-header .todo-input,
  .todo-header .add-button {
      width: 100%;
      margin: 5px 0;
  }

  .todo-body {
      padding: 10px;
  }

  .todo-footer {
      flex-direction: column;
      row-gap: 10px;
      padding: 10px;
  }

  .delete-button,
  .update-button {
      margin: 5px 0;
      padding: 5px;
  }
}
