:root {
  --white: #ffff;
  --line-color: #f4f4f4;
  --dark-grey: #1e2739;
  --medium-grey: #e6e6e6;
  --text-color: #8d8d8d;
  --body-color: #f6f8fa;
  --red: #e23333;
}
/* Task Page */
.task-page.hide {
  display: none;
}

.task-page {
  margin: auto;
  width: 100%;
  height: 75vh;
  display: block;
  overflow-y: auto;
  max-width: 1800px;
  margin-top: 30px;
  padding: 0 10px;
}

.task-page::-webkit-scrollbar {
  width: 5px;
}
.task-page::-webkit-scrollbar-track {
  border-radius: 25px;
  background: #f1f1f1;
}

.task-page::-webkit-scrollbar-thumb {
  border-radius: 25px;
  background: #e6e6e6;
}

/* Wrapper */
.wrapper {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin: auto;
  margin-top: 60px;

  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Task input */
.task-input {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.task-input input {
  margin-bottom: 20px;
  padding: 6px 10px;
  width: 90%;
  border-radius: 10px 0 0 10px;
  font-size: 1rem;
  color: var(--dark-grey);
  font-weight: 500;
  border: 2px solid var(--medium-grey);
  transition: all 0.3s ease;
  margin-right: 5px;
}

.task-input input::placeholder {
  color: var(--nav-color);
}

.task-input .add-task {
  margin-bottom: 20px;

  cursor: pointer;
  width: 10%;
  padding: 6px;
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  color: var(--dark-grey);
  font-weight: 500;
  border: 2px solid var(--medium-grey);
  transition: all 0.3s ease;
}
/* Controlls */

.controls  {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.controls button  {
  cursor: pointer;
  display: block;
  font-size: calc(17 / 16 * 1rem);
  border-radius: 7px;
  font-weight: 500;
  color: var(--red);
  width: 100px;
  border: var(--white);
  background: var(--white);
  transition: all 0.2s ease;
}


.controls button:hover {
  color: #d04134;
}

.controls .filters span {
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  font-size: calc(17 / 16 * 1rem);
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--white);
}

.controls .filters span:not(:first-child) {
  margin-left: 30px;
}

.controls .filters span.active {
  color: var(--dark-grey);
}

/* Task  */
.task-box {
  width: 100%;
}

.task-box .instructor {
  margin-top: 30px;
  text-align: center;
}

.task {
  padding: 25px 0;
  border-top: 2px solid var(--line-color);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task label {
  display: flex;
  align-items: center;
}

.task label p {
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.task label p.checked {
  opacity: 0.6;
  text-decoration: line-through;
}
.task label input[type='checkbox'] {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin-right: 15px;
  background: #1e2739;
}

/* Settings */

.task-box .settings {
  position: relative;
}
.settings :where(i, li) {
  cursor: pointer;
}
.settings .task-menu {
  z-index: 2000;
  right: 0;
  bottom: 0;
  height: auto;
  position: absolute;
  border-radius: 5px;
  transform: scale(0);
  background: var(--white);
  transition: all 0.2s ease;
  transform-origin: bottom right;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}
.task-menu.show {
  transform: scale(1);
}
.task-box .task:last-child .task-menu {
  bottom: 0;
  transform-origin: bottom right;
}
.task-box .task:first-child .task-menu {
  bottom: -65px;
  transform-origin: top right;
}

.task-menu li {
  color: var(--text-color);
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  width: auto;
  height: auto;
  padding: 10px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.3s ease;
  justify-content: flex-start;
}
.task-menu li:last-child {
  margin-bottom: 0;
}
.settings li:hover {
  background: #f5f5f5;
}
.settings li i {
  font-size: calc(15 / 16 * 1rem);
  padding-right: 8px;
}

/* Media Query */

@media (max-width: 755px) {
  .task-input input {
    padding: 8px;
    font-size: calc(14 / 16 * 1rem);
  }

  /* Controlls */
  .controls {
    margin-top: 20px;
  }

  .controls button {
    padding: 5px 0 5px 0;
    font-size: calc(13 / 16 * 1rem);
    width: 80px;
  }

  .controls .filters span {
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
  }

  .controls .filters span:not(:first-child) {
    margin-left: 20px;
  }

  .task {
    padding: 20px 0;
  }

  .task label p {
    font-size: calc(14 / 16 * 1rem);
  }

  .task label input[type='checkbox'] {
    height: 12px;
    width: 12px;
  }

  /* Settings */
  .task-menu li {
    padding: 10px;
    font-size: calc(14 / 16 * 1rem);
  }

  .settings li i {
    font-size: calc(14 / 16 * 1rem);
  }
}

@media (max-width: 578px) {
  /* Note Page */
  .note-page.show {
    margin-top: 0;
  }

  .wrapper {
    margin: 0;
  }
}

@media (max-width: 530px) {
  .controls {
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .controls .filters span:not(:first-child) {
    margin-left: 5px;
  }

  .controls .filters span {
    margin: 0px;
  }

  .controls button {
    margin-top: 20px;
    padding: 3px 0 3px 0;
    font-size: calc(13 / 16 * 1rem);
    width: 80px;
  }

  .controls .filters span {
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
  }

  .task-box span {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }


.controls button.show {
  font-size: 1rem;
}}

@media (max-width: 414px) {
  .controls button {
    margin-top: 20px;
    padding: 3px 0 3px 0;
    font-size: calc(13 / 16 * 1rem);
    width: 80px;
  }

  .controls .filters span {
    font-size: calc(15 / 16 * 1rem);
  }

  .task-box span {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .controls button.show {
    font-size: .9rem;
  }
}


@media (max-width: 400px) {
  .task-input input {
    font-size: .9rem;
    padding: 5px 8px;
  }
  .task-input .add-task {
   font-size: .9rem;
   padding: 5px;
  }
}
