* {
  box-sizing: border-box;
}

body {
  margin: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  text-align: center;
}

#backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal {
  position: fixed;
  top: 20vh;
  left: calc(50% - 10rem);
  width: 20rem;
  background-color: #f3f3f3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 1rem;
  border-radius: 4px;
  border: none;
}

#todos {
  list-style: none;
  margin: 2rem auto;
  padding: 0;
  max-width: 20rem;
}

#todos li {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 4px;
  background-color: #dcdcdc;
}

#todos li a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #303031;
}

.btn-cta {
  text-decoration: none;
  cursor: pointer;
  background-color: #3a0080;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.35rem 1rem;
}

.btn-cta:hover {
  background-color: #4b0b9a;
}

form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
  color: #6f6f70;
}

form input {
  font: inherit;
  padding: 0.25rem;
  border-radius: 4px;
  border: none;
  width: 100%;
  background-color: #cecece;
  color: #303031;
}

.form-actions {
  text-align: right;
}

.form-actions button {
  font: inherit;
  background-color: #303031;
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.form-actions button:hover {
  background-color: #4d4d4f;
}

.form-actions .btn-alt {
  background-color: transparent;
  color: #303031;
  padding: 0;
}

.form-actions .btn-alt:hover {
  background-color: transparent;
  color: #4f4f52;
}