html,
body {
  height: 100%;
}

* {
  --bg-color: #181824;
  --text-color: aliceblue;
  --todo-color: #24273d;
  --border-radius: 0.25rem;
  --done-bg-color: rgb(24, 158, 24, 0.25);
  --delete-bg-color: rgb(255, 0, 0, 0.25);
}

body {
  display: grid;
  place-content: center;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

h1 {
  font-size: x-large;
  font-weight: 600;
}

ul {
  margin: 0;
  padding: 0;
}

button,
a {
  color: var(--text-color);
  cursor: pointer;
}

input,
button {
  border: none;
}

.container {
  width: 100%;
}

@media (min-width: 720px) {
  .container {
    max-width: 500px;
  }
}

.app {
  width: 100%;
}

.to-do {
  background: var(--todo-color);
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #ffffff25;
}

.to-do:last-of-type {
  border-bottom: none;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.to-do:hover {
  transform: scale(1.01);
}

.done-button,
.delete-button {
  padding: 0.3rem;
  border-radius: var(--border-radius);
}

.done-button {
  background-color: var(--done-bg-color);
  margin-inline-start: auto;
}

.delete-button {
  background-color: var(--delete-bg-color);
  margin-inline-start: 0.5rem;
}

#todo-form {
  display: flex;
  gap: 0.5 rem;
  margin-top: 1rem;
}

.new-todo,
.submit-button {
  padding: 0.75rem;
  border-radius: var(--border-radius);
}

.new-todo {
  flex: 1;
}

.submit-button {
  background-color: var(--todo-color);
}

.attribution {
  padding: 2rem;
}
