@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap"); /*Обнуление*/
* {
  padding: 0;
  margin: 0;
  border: 0;
}

*, *:before, *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:focus, :active {
  outline: none;
}

a:focus, a:active {
  outline: none;
}

nav, footer, header, aside {
  display: block;
}

html, body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input, button, textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a, a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*--------------------*/
html,
body {
  background: -webkit-gradient(linear, left top, right top, from(#5b34e6), to(#33c9cb));
  background: -o-linear-gradient(left, #5b34e6, #33c9cb);
  background: linear-gradient(to right, #5b34e6, #33c9cb);
  font-family: "Lato", sans-serif;
  font-size: 10px;
}

.wrapper {
  width: 70vw;
  height: 100vh;
  margin: 0 auto;
  padding: 20px 0;
}

header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0 0 20px;
}

i {
  display: inline-block;
  padding: 0 -7px;
  margin: 0 7px;
  -webkit-transition: -webkit-transform 0.2s ease-in-out;
  transition: -webkit-transform 0.2s ease-in-out;
  -o-transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
}

.title {
  width: auto;
  height: 30px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.title h1 {
  margin-left: 10px;
}
.title img {
  height: 100%;
}

button {
  background: #56595f;
  color: #fff;
  padding: 10px;
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  font-weight: 700;
}

.deleteCompleted {
  border-radius: 5px;
}
.deleteCompleted:hover {
  background: #bb1f1f;
}

.form {
  width: 350px;
  border-radius: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
}
.form__input {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
  padding: 10px;
}
.form__button:hover {
  background: #169b16;
}
@media (max-width: 400px) {
  .form {
    width: 86vw;
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.6rem;
}

.empty {
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}
.empty.none {
  display: none;
}

.task {
  width: 100%;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  margin-bottom: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.task .fa-check-square {
  color: #a8a8a8;
}
.task .fa-trash {
  color: #5f5f5f;
}
.task .fa-trash:hover {
  color: #bb1f1f;
}
.task p {
  overflow: hidden;
}
.task i:hover {
  -webkit-transform: scale(1.2);
      -ms-transform: scale(1.2);
          transform: scale(1.2);
  cursor: pointer;
}
.task:last-child {
  margin-bottom: 0;
}
.task:hover {
  -webkit-box-shadow: 0px 0px 5px #b32ee7;
          box-shadow: 0px 0px 5px #b32ee7;
}

.completed p {
  color: #a8a8a8;
}
.completed .fa-check-square {
  color: #169b16;
}

@media (max-width: 900px) {
  .wrapper {
    width: 90vw;
    height: 100vh;
    margin: 0 auto;
  }
  header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin: 0 0 20px;
    gap: 15px;
  }
  i {
    padding: -7px;
    margin: 7px;
  }
}