:root {
  /* theme */
  --li-bg: hsl(235, 24%, 19%);
  --li-color: hsl(236, 33%, 92%);
  --span-color: hsl(234, 11%, 52%);
  --body-bg: hsl(235, 21%, 11%);
}
.attribution {
  padding-top: 30px;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  font-weight: bold;
  color: hsl(228, 45%, 44%);
}
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--body-bg);
  position: relative;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Josefin Sans", sans-serif;
}
h1 {
  color: hsl(0, 0%, 98%);
  letter-spacing: 15px;
}
.image {
  position: absolute;
  background-image: url(images/bg-desktop-dark.jpg);
  background-size: cover;
  height: 250px;
  width: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}
ul {
  list-style-type: none;
}
input[type="checkbox"] {
  appearance: none;
}
input[type="text"] {
  background-color: transparent;
  border: none;
  outline: none;
  caret-color: hsl(220, 98%, 61%);
  color: var(--li-color);
  width: 90%;
}
ul li:first-of-type {
  margin-bottom: 20px;
  border-radius: 5px;
  border: none;
}
ul li:nth-of-type(2) {
  border-radius: 5px 5px 0 0;
}
ul li {
  display: flex;
  align-items: center;
  background-color: var(--li-bg);
  border-bottom: 1px solid var(--span-color);
  padding: 10px 15px;
  color: var(--li-color);
  font-size: 12px;
  transition: 0.3s;
}
.remove {
  margin-left: auto;
  width: 10px;
}
.container {
  width: 350px;
  margin: 0 auto;
}
.container header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(234, 39%, 85%);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.container header img {
  width: 20px;
}
footer {
  background-color: var(--li-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--span-color);
  padding: 10px 15px;
  border-radius: 0 0 5px 5px;
}
.filter {
  font-weight: bold;
}
.filter span:not(span:last-of-type) {
  margin-right: 10px;
}

.filter span:hover,
.clear:hover {
  color: var(--li-color);
  cursor: pointer;
}
.check {
  width: 15px;
  height: 15px;
  background: var(--span-color);
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}
.check > span {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--li-bg);
  background-size: cover;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.check > span > img {
  display: none;
}
.check:hover {
  background: linear-gradient(hsl(192, 100%, 67%), hsl(280, 87%, 65%));
}
.gradient-check > span {
  background-image: url(images/icon-check.svg);
  background: linear-gradient(hsl(192, 100%, 67%), hsl(280, 87%, 65%));
}
.click {
  color: hsl(220, 98%, 61%);
}
@media (width<400px) {
  .filter {
    display: block;
    margin-top: 20px;
    background-color: hsl(235, 24%, 19%);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    color: hsl(234, 11%, 52%);
  }
}
@keyframes remove {
  0% {
    height: auto;
    opacity: 1;
    left: auto;
  }
  50% {
    height: 50%;
    opacity: 0.5;
    transform: translateX(-50%);
  }
  100% {
    height: 0;
    opacity: 0;
    transform: translateX(-100%);
    display: none;
  }
}
