/**
 * Minimal TodoMVC styling for the RedShield S4 AngularJS 1.8.2 origin.
 */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #4d4d4d;
  line-height: 1.4;
  min-width: 230px;
  max-width: 550px;
  margin: 0 auto;
  padding: 1rem;
}

.todoapp {
  background: #fff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

.header {
  padding: 1rem;
}

.header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 100;
  text-align: center;
  color: rgba(175, 47, 47, 0.15);
}

.new-todo,
.edit {
  position: relative;
  width: 100%;
  font-size: 1.5rem;
  font-family: inherit;
  font-weight: inherit;
  line-height: 1.4em;
  color: inherit;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid #ededed;
  box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03);
}

.new-todo::placeholder {
  color: #d9d9d9;
  font-style: italic;
}

.main {
  position: relative;
  border-top: 1px solid #e6e6e6;
}

.toggle-all {
  width: 1px;
  height: 1px;
  border: none;
  position: absolute;
  opacity: 0;
}

.toggle-all + label {
  display: block;
  padding: 0.75rem 1rem;
  color: #737373;
  font-size: 0.85rem;
  cursor: pointer;
}

.todo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo-list li {
  position: relative;
  font-size: 1.5rem;
  border-bottom: 1px solid #ededed;
}

.todo-list li.editing .view {
  display: none;
}

.todo-list li.editing .edit {
  display: block;
}

.todo-list li .edit {
  display: none;
}

.todo-list li .toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  left: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
}

.todo-list li label {
  display: block;
  padding: 1rem 1rem 1rem 4rem;
  word-break: break-all;
  transition: color 0.4s;
  cursor: pointer;
}

.todo-list li.completed label {
  color: #d9d9d9;
  text-decoration: line-through;
}

.todo-list li .destroy {
  display: none;
  position: absolute;
  top: 0;
  right: 0.5rem;
  bottom: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin: auto 0;
  font-size: 1.5rem;
  color: #cc9a9a;
  background: none;
  border: none;
  cursor: pointer;
}

.todo-list li .destroy:hover {
  color: #af5b5b;
}

.todo-list li .destroy::after {
  content: "×";
}

.todo-list li:hover .destroy {
  display: block;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #777;
  font-size: 0.85rem;
  border-top: 1px solid #e6e6e6;
}

.todo-count strong {
  font-weight: 600;
}

.filters {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.filters li a {
  color: inherit;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

.filters li a.selected {
  border-color: rgba(175, 47, 47, 0.2);
}

.clear-completed {
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.clear-completed:hover {
  text-decoration: underline;
}

.info {
  margin: 2rem 0;
  text-align: center;
  color: #777;
  font-size: 0.85rem;
}

.info p {
  margin: 0.25rem 0;
}

.ng-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #b91c1c;
}
