* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    min-height: 100vh;
    font-family: Georgia, serif;
    background: #eee9e2;
    color: #2f2a26;
}

.app {
    width: min(680px, 90%);
    margin: 0 auto;
    padding: 76px 0 96px;
}

.hero {
    text-align: center;
    margin-bottom: 42px;
}

.hero h1 {
  margin: 0;
  font-size: 58px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
}

.hero p {
  margin-top: 15px;
  color: #7b7167;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.form {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

#inputHabit {
  width: 100%;
  height: 58px;

  padding: 0 22px;

  border: 1.5px solid rgba(80,70,60,0.22);
  border-radius: 999px;

  background: rgba(255,255,255,0.45);

  font-size: 17px;
  font-family: inherit;
  color: #2f2a26;

  outline: none;
  box-sizing: border-box;

  line-height: 1;
}
#inputHabit:focus {
  border-color: rgba(47,42,38,0.32);
}

#addHabit {
  height: 54px;
  padding: 0 28px;
  border: 1px solid #2f2a26;
  border-radius: 999px;
  background: #3b312c;
  color: #eee9e2;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  
  
}

#addHabit {
    transition: 
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

#addHabit:hover {
    transform: translateY(-1px);
    background: transparent;
    color: #2f2a26;
}

#addHabit:active {
    background: rgb(103, 94, 94)
}

#count {
  margin: 0 0 16px;
  padding-left: 4px;
  color: #746b61;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#habitsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.habit-card {
  display: grid;
  grid-template-columns: 1fr 32px auto;
  align-items: center;
  gap: 12px;

  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(47, 42, 38, 0.06);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(47, 42, 38, 0.035);
}
.habit-card {
  transition: 0.2s ease;
}

.habit-card:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.72);
}

.habitTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.toggleBtn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #e3d8c9;
  color: #2f2a26;
  font-family: inherit;
  cursor: pointer;
}

.toggleBtn:hover {
  background: #d5c6b4;
}

.toggleBtn {
  transition: 0.2s ease;
}

.deleteBtn {
  padding: 0;
  border: none;
  background: transparent;
  color: #9a9085;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.deleteBtn:hover {
  color: #2f2a26;
}

.habit-card.completed {
  background: rgba(214, 205, 194, 0.45);
  
}
.habit-card.completed .habitTitle {
  text-decoration: line-through;
  color: #756B63;
   text-decoration-thickness: 1px;
   text-decoration-color: rgba(47, 42, 38, 0.45);
}
.habit-card.completed .toggleBtn {
  background: #8A7D72;
  color: #F5F1EB;
}
@media (max-width: 560px) {
  .app {
    width: 90%;
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .form {
    flex-direction: column;
  }

  #addHabit {
    width: 100%;
  }

  .habit-card {
    padding: 18px 16px;
  }

  #inputHabit {
    height: px;
  }

  #addHabit {
  height: 50px;
  font-size: 11px;
  letter-spacing: 0.18em;
}
}