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

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0; }

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
figure,
blockquote,
dl,
dd {
  margin: 0; }

/* Set core root defaults */
html {
  scroll-behavior: smooth; }

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5; }

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto; }

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block; }

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em; }

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit; }

/* Blur images when they have no alt attribute */
img:not([alt]) {
  filter: blur(10px); }

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important; } }

.switch input {
  display: none; }

.switch label {
  cursor: pointer; }

.toggle__dark, .toggle__light {
  transition: all 350ms linear; }

.toggle__dark {
  opacity: 0;
  height: 0; }

#toggle:checked + label > .toggle__dark {
  opacity: 1;
  height: auto;
  transform: rotate(360deg); }

#toggle:checked + label > .toggle__light {
  opacity: 0;
  height: 0;
  transform: rotate(360deg); }

.input {
  margin-top: 1.5rem;
  background-color: white;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid transparent; }
  .input__form {
    display: flex; }
  .input__check {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #e4e5f1;
    border-radius: 50%;
    margin: 0.875rem;
    cursor: pointer;
    min-width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center; }
  .input #completed {
    position: absolute;
    z-index: -1;
    top: 5rem; }
    .input #completed:checked ~ label > img {
      opacity: 1;
      height: auto;
      object-fit: cover;
      border-radius: 50%; }
    .input #completed:checked ~ label {
      background: linear-gradient(#57ddff, #c058f3);
      border: 1px solid transparent; }
  .input__item {
    outline: none;
    border: 1px solid transparent;
    flex-grow: 1; }
    .input__item::placeholder {
      color: #777a92; }
  .input:focus-within {
    border: 1px dotted red; }

.list {
  margin-top: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  padding-block: 1.1875rem;
  box-shadow: 0 5px 5px 1px rgba(22, 23, 34, 0.2); }
  .list input {
    display: none; }
  .list__items {
    list-style: none; }
  .list__item {
    display: flex;
    align-items: center;
    padding-inline: 1.1875rem;
    cursor: pointer; }
    .list__item:hover {
      color: #161722; }
      .list__item:hover .list__delete {
        opacity: 1; }
  .list__item {
    border-bottom: 1px solid #e4e5f1; }
  .list__delete {
    margin-left: auto;
    opacity: 0;
    transition: all 350ms linear; }
  .list__check {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #e4e5f1;
    border-radius: 50%;
    margin: 0.875rem;
    cursor: pointer;
    min-width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center; }
  .list input[type=checkbox] {
    position: absolute;
    z-index: -1;
    top: 5rem; }
    .list input[type=checkbox]:checked ~ label > img {
      opacity: 1;
      height: auto;
      object-fit: cover;
      border-radius: 50%; }
    .list input[type=checkbox]:checked ~ .list__value {
      color: #777a92;
      position: relative; }
      .list input[type=checkbox]:checked ~ .list__value::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 100%;
        transform: translateY(-50%);
        height: 1px;
        background-color: currentColor;
        animation: cross 350ms linear forwards; }

@keyframes cross {
  to {
    right: 0; } }
    .list input[type=checkbox]:checked ~ label {
      background: linear-gradient(#57ddff, #c058f3);
      border: 1px solid transparent; }
    .list input[type=checkbox]:not(:checked):hover ~ label {
      position: relative;
      background: linear-gradient(#57ddff, #c058f3); }
      .list input[type=checkbox]:not(:checked):hover ~ label::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: inherit;
        height: calc(1.5rem - 3px);
        width: calc(1.4rem - 3px);
        background-color: white; }

.status-bar {
  display: flex;
  justify-content: space-between;
  padding-inline: 2rem;
  padding-block: 1.1875rem 0; }
  .status-bar a {
    text-decoration: none;
    color: #777a92;
    text-transform: capitalize; }
  .status-bar__filter {
    font-weight: bold;
    list-style: none;
    display: flex;
    column-gap: 1.125rem; }
    .status-bar__filter .-active {
      color: #3a7bfd; }
  .status-bar__left {
    font-size: 0.875rem; }

.u-container {
  max-width: 90rem;
  width: 80%;
  margin-inline: auto; }

body {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.125rem; }
  body::after, body::before {
    content: "";
    position: absolute;
    inset: 0 0 58% 0;
    z-index: -1; }
  body::after {
    background: no-repeat url(../images/bg-mobile-light.jpg);
    background-size: cover; }
    @media (min-width: 45rem) {
      body::after {
        background-image: url(../images/bg-desktop-light.jpg); } }
  body::before {
    background: linear-gradient(#57ddff, #c058f3);
    mix-blend-mode: multiply; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  color: white;
  margin-block: 3rem; }
  .header__title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 6px; }
  @media (min-width: 45rem) {
    .header {
      flex-direction: initial; } }
