@import url(reset.css);
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
}

header {
  padding: 3rem 1rem;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
}

header ion-icon {
  font-size: 3rem;
  margin-right: 0.8rem;
}

h1 {
  font-size: 4rem;
  font-weight: 400;
}

h2 {
  font-size: 2.3rem;
  font-weight: 400;
  display: inline-block;
  border-bottom: 2px solid #bdad91;
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  margin-left: 1.4rem;
  display: none;
  color: #e0e0e0;
}

h2:nth-of-type(2) {
  margin-top: 2.5rem;
}

hr.breaker {
  height: 3px;
  border: 2px solid black;
  width: 60%;
  margin: 0 auto;
  border-radius: 50%;
  margin-bottom: 3rem;
}

main.container {
  max-width: 1100px;
  margin: 0 auto;
  /* background-color: rgba(66, 82, 110, 0.582); */
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  min-height: 100vh;
  background: linear-gradient(
      0deg,
      rgba(66, 82, 110, 0.582),
      rgba(66, 82, 110, 0.582)
    ),
    url(../img/ballons.jpg);
  background-size: cover;
}

section.section-input {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

input#task {
  width: 85%;
  padding: 1.1rem 2rem;
  background-color: rgba(255, 255, 255, 0.411);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  outline: none;
  font-size: 2.1rem;
}

::placeholder {
  color: #333;
  opacity: 0.6;
  font-size: 2.1rem;
}

.buttons {
  margin: 2rem 1rem;
  padding: 1rem;
  display: flex;
  gap: 1.3rem;
}

.btn {
  padding: 1rem 2rem;
  font-size: 1.6rem;
  background-color: #bdad91;
  border-radius: 10px;
}

.todo-item {
  background-color: rgba(255, 255, 255, 0.411);
  backdrop-filter: blur(5px);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  padding: 1.8rem 1.2rem;
  border-radius: 15px;
  width: 90%;
  margin: 0 auto;
  font-size: 1.6rem;
}

.top-task {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: inherit;
}

textarea {
  outline: none;
  border: none;
  resize: none;
  width: 90%;
  text-decoration: inherit;
}

.in-progress,
.completed-section {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin: 2rem 0;
}

.item-completed {
  text-decoration: line-through;
}

.darken {
  background-color: rgba(51, 51, 51, 0.431);
}

@media screen and (min-width: 768px) {
  .buttons {
    justify-content: center;
  }
}
