@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  content: "";

  --primary-color: rgb(44, 62, 122);

  --secondary-color: rgb(89, 126, 250);

  --tertiary-color: rgb(165, 185, 251);

  --gray-color: rgb(81, 90, 122);

  --alt-color: rgb(72, 101, 199);
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: Roboto, sans-serif;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background-color: var(--gray-color);
}

.main {
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.header {
  width: 60%;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  text-decoration: underline;
  text-align: center;
}

.header #funcionamento {
  font-style: italic;
  text-align: center;
  z-index: 2;
  line-height: 30px;
}

.text-completed {
  font-style: italic;
  color: black;
  font-weight: 300;
  font-size: 1.2rem;
  position: relative;
  padding: 2.5px;
  width: 100%;
  height: 100%;
  background-color: gray;
  z-index: -2;
}

.article {
  display: flex;
  max-width: 90%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  border-top: 5px double var(--tertiary-color);
  border-radius: 15px;
  box-shadow: 0 10px 5px rgba(0, 0, 0, 0.25);
}

.section-inputs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px;
  min-width: 100%;
}

.inputs {
  display: flex;
  align-items: center;
}

.section-tasks {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#label-texto-tarefa {
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
  background-color: grey;
  padding: 20px;
  color: white;
  text-shadow: 2px 2px 2px darkslategrey;
  border-radius: 25px;
}

#texto-tarefa {
  border-radius: 5px;
  padding: 0 20px;
  border: none;
  margin: 5px 20px;
  width: 100%;
  height: 60px;
  transition: all 0.25s ease;
}

#texto-tarefa:placeholder-shown {
  text-align: center;
}

#texto-tarefa:focus {
  background-color: var(--gray-color);
  color: white;
  transition: all 0.5s ease;
}

.buttons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.buttons button {
  border-radius: 15px;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: rgb(129, 129, 129);
  text-shadow: 0;
  width: 100%;
  height: 50px;
  cursor: pointer;
  border: none;
  padding: 5px;
  margin: 5px 0;
  transform: scale(1);
  transition: text-shadow 1s ease, font-size 1.5s ease, box-shadow 5s ease, color 1s ease-in-out,
    background-color 0.5s ease-in;
  background-color: rgb(26, 26, 26);
}

.buttons button:hover {
  color: white;
  background-color: rgb(120, 120, 120);
  box-shadow: 2px 12px 5px rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 5px black;
  transition: all 1.5s ease;
}

#criar-tarefa {
  border-top: 5px solid green;
  border-bottom: 5px solid green;
}

#salvar-tarefas {
  border-top: 5px solid rgb(0, 128, 21);
  border-bottom: 5px solid rgb(0, 128, 21);
}

.buttons div:nth-of-type(3) {
  grid-column: span 2;
}

#apaga-tudo {
  border-top: 5px solid rgb(102, 0, 0);
  border-bottom: 5px solid rgb(102, 0, 0);
}

#remover-finalizados {
  border-top: 5px solid rgb(102, 102, 102);
  border-bottom: 5px solid rgb(102, 102, 102);
}

#remover-selecionado {
  border-top: 5px solid rgb(43, 9, 9);
  border-bottom: 5px solid rgb(43, 9, 9);
}

#mover-cima {
  border-top: 5px solid royalblue;
}

#mover-baixo {
  border-bottom: 5px solid royalblue;
}

#lista-tarefas {
  background-color: var(--tertiary-color);
  padding: 25px;
  width: 90%;
  height: 400px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: var(--secondary-color) inset 15px;
  border-radius: 5px;
}

#lista-tarefas li {
  background-color: var(--alt-color);
  padding: 10px;
  color: white;
  box-shadow: 2px 2px 5px var(--gray-color);
  transition: margin 1s ease;
  margin: 5px 0;
}

.selected {
  background-color: gray !important;
  transition: margin 1s ease;
  margin: 15px 0 !important;
  position: relative;
}

.completed {
  text-decoration: line-through solid black;
  transition: all 2s;
  background-color: gray;
}

@media (min-width: 600px) {
  .header {
    flex-direction: row;
    height: 80px;
  }

  .header > * {
    margin-inline: 5px;
    width: 100%;
    /* padding: 2px; */
  }

  .article {
    padding: 50px;
    flex-direction: row;
    width: 100%;
  }

  .section-inputs {
    min-width: unset;
    width: 500px;
  }


}
