* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
}

body {
  background-color: #f4f4f4;
  margin: 0;
  color: #434343;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}

h1 {
  margin-bottom: 20px;
  text-wrap: balance;
}

#theme-toggle {
  padding: 10px;
}

#task-manager {
  background: #fff;
  padding: 20px;
  margin: 10px auto 30px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

#task-form {
  margin-bottom: 20px;
}

#task-input {
  padding: 10px;
  width: 70%;
  margin-right: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#task-list {
  list-style-type: none;
  padding: 0;
}

#task-list li {
  background: #eee;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  vertical-align: middle;
}

button img:hover {
  transform: scale(1.1);
}

.delete-btn,
.edit-btn {
  margin-left: 10px;
  cursor: pointer;
  vertical-align: text-bottom;
}

.delete-btn:hover,
.edit-btn:hover {
  transform: scale(1.1);
}

footer {
  background: #fff;
  padding: 20px;
  width: 100%;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

span {
  color: #577d3b;
  font-weight: 600;
}

a {
  color: #577d3b;
  text-decoration: none;
  font-weight: 600;
}

/* Dark theme styles */
body.dark-theme {
  background-color: #333;
  color: #fff;
}

.dark-theme #task-manager,
.dark-theme footer {
  background: #222;
  color: #fff;
}

.dark-theme #task-list li {
  background: #444;
}

.dark-theme #task-input {
  background: #333;
  color: #fff;
}

.dark-theme #task-input::placeholder {
  color: #fff;
}

.dark-theme span,
.dark-theme a {
  color: #7ca75f;
}
