* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  font-size: 16px;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 500px;
}

i {
  cursor: pointer;
}

/* Styling clases */

.img-fluid {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.line-through {
  text-decoration: line-through;
  color: rgba(0, 0, 0, 0.555);
}

.no-todo-text {
  text-align: center;
  padding: 30px 0;
  font-size: 18px;
}

/* Header */

header {
  position: relative;
}

.done-todo-count {
  position: absolute;
  bottom: 20%;
  color: white;
  right: 1em;
}

.date {
  position: absolute;
  width: calc(100% - 40px);
  bottom: 10px;
  color: #fff;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.507);
}

.clear {
  position: absolute;
  right: 20px;
  top: 20px;
}

.clear i {
  color: #fff;
  font-size: 2rem;
}

.cover-img {
  max-height: 200px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* Content */

.content {
  border: 1px solid lightgray;
  border-top-color: transparent;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-top: -5px;
}

.list {
  list-style: none;
  padding-left: 0;
}

.item {
  padding: 15px;
  border-bottom: 1px solid lightgray;
}

.item i {
  font-size: 18px;
  cursor: pointer;
}

.item i:last-child {
  float: right;
}

.item input {
  font-size: 1rem;
  padding: 6px 8px;
}

/* Add todo  */

.add-item {
  display: flex;
  align-items: center;
}

.add-item i {
  cursor: pointer;
  color: DodgerBlue;
  font-size: 1.5rem;
  padding: 15px 5px 15px 15px;
}

.add-item input {
  font-size: 1rem;
  padding: 6px 8px;
  width: 100%;
  margin-right: 15px;
}
