* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #fff;
  line-height: 1.55;
  background-color: hsl(235, 21%, 11%);
  font-family: "Josefin Sans", sans-serif;
}

:root {
  /*========== Index ==========*/
  --index: calc(1vw + 1vh);

  /*========== Colors ==========*/
  --hue-color: 230;

  /* HSL color mode */
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

/*==================== PARALLAX ====================*/

.main-header {
  position: relative;
}

.main-header::after {
  content: "";
  width: 100%;
  z-index: 100;
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: calc(var(--index) * 1);
  bottom: calc(var(--index) * -5);
  background-image: url("../assets/img/ground.jpg");
}

.layers {
  height: 100vh;
  display: flex;
  overflow: hidden;
  text-align: center;
  position: relative;
  align-items: center;
  justify-content: center;
}

.layer__header {
  z-index: 1;
  font-weight: 700;
  will-change: transform;
  text-transform: uppercase;
  text-shadow: 0 0 15px #ecd4ac;
  transform: translate3d(0, calc(var(--scrollTop) / 2), 0);
}

.layers__title {
  font-size: calc(var(--index) * 2.5);
  letter-spacing: calc(var(--index) / 2);
}

.layers__caption {
  font-size: calc(var(--index) / 1.175);
  margin-top: calc(var(--index) * -0.75);
  letter-spacing: calc(var(--index) / 3.5);
}

.layer {
  z-index: 2;
  width: 100%;
  height: 100%;
  position: absolute;
  will-change: transform;
  background-size: cover;
  background-position: center;
}

.layers__base {
  z-index: 0;
  transform: translate3d(0, calc(var(--scrollTop) / 1.6), 0);
}

.layers__middle {
  transform: translate3d(0, calc(var(--scrollTop) / 2.5), 0);
}

.layers__front {
  transform: translate3d(0, calc(var(--scrollTop) / 5.7), 0);
}

/*==================== ARTICLE ====================*/

.main-article {
  display: flex;
  min-height: 100vh;
  position: relative;
  text-align: center;
  align-items: center;
  font-size: 1.125rem;
  padding-bottom: 1rem;
  background-size: cover;
  justify-content: center;
  background-position: center;
  color: hsl(234, 39%, 85%);
  --main-article-transform: translate3d(0, calc(var(--scrollTop) / -7.5), 0);
}

.main-article__content {
  width: 90%;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__title {
  color: #fff;
  font-weight: 700;
  font-size: 4.375rem;
  letter-spacing: 0.625rem;
  text-shadow: 0 0 15px #ecd4ac;
}

/*==================== TODO ====================*/
.new-todo {
  height: 70px;
  display: flex;
  margin-top: 3.125rem;
  border-radius: 0.375rem;
  background-color: hsl(235, 24%, 19%);
}

.check {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check__mark {
  width: 30px;
  height: 30px;
  display: flex;
  cursor: pointer;
  border-radius: 50%;
  align-items: center;
  transition: all 0.25s;
  justify-content: center;
  border: 2px solid hsl(237, 14%, 26%);
}

.check__mark:hover {
  background: linear-gradient(135deg, #ff5945 0%, #c058f3 100%);
}

.new-todo__input {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.row {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding-right: 0.75rem;
}

.new-todo__input input {
  width: 100%;
  border: none;
  outline: none;
  padding: 0.625rem 0rem;
  color: hsl(234, 39%, 85%);
  background-color: transparent;
  font-size: 1.125rem;
}

.new-todo__input input::placeholder {
  color: hsl(234, 28%, 66%);
}

.hidden {
  display: none;
}

.todo-items__wrapper {
  overflow: hidden;
  border-radius: 6px;
  margin-top: 1.875rem;
  background-color: hsl(235, 24%, 19%);
  box-shadow: 0px 2px 30px 0px rgba(0, 0, 0, 0.4);
}

.todo-items__info {
  width: 100%;
  height: 70px;
  display: flex;
  padding: 0 1.875rem;
  align-items: center;
  color: hsl(234, 28%, 66%);
  justify-content: space-between;
  font-size: 1.125rem;
}

.items-clear:hover {
  color: #c058f3;
}

.items-clear {
  cursor: pointer;
  text-align: end;
}

.input__button {
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  padding: 16px 35px;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  background-color: #c058f3;
  font-family: "Josefin Sans", sans-serif;
}

ul li {
  width: 100%;
  display: flex;
  cursor: pointer;
  height: 4.375rem;
  list-style: none;
  user-select: none;
  position: relative;
  align-items: center;
  color: hsl(234, 39%, 85%);
  padding: 12px 8px 8px 60px;
  font-size: 1.125rem;
  background-color: hsl(235, 24%, 19%);
  border-bottom: 1px solid hsl(237, 14%, 26%);
}

ul li:hover {
  transform: translateY(-2px);
  border-color: hsl(235, 24%, 19%);
  box-shadow: 0 0px 7px 0px hsl(235, 21%, 11%);
}

ul li::before {
  content: "";
  top: 20px;
  left: 15px;
  width: 28px;
  height: 28px;
  position: absolute;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-image: url(../assets/img/unchecked.png);
}

ul li.checked {
  color: #555;
  text-decoration: line-through;
}

ul li.checked::before {
  background-image: url(../assets/img/checked.png);
}

ul li span {
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  color: #555;
  font-size: 22px;
  text-align: center;
  border-radius: 50%;
  position: absolute;
  align-items: center;
  justify-content: center;
}

ul li span:hover {
  background: hsl(234, 24%, 26%);
}

/*==================== SCROLL BAR ====================*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*==================== MEDIA QUERIES ====================*/
/* For medium devices */
@media screen and (max-width: 768px) {
  ul li {
    font-size: calc(var(--index) * 1);
  }
  .input__button {
    font-size: calc(var(--index) * 1.125);
  }
  .todo-items__info {
    font-size: calc(var(--index) * 1);
  }
  .new-todo__input input {
    font-size: calc(var(--index) * 1);
  }
}
