@charset "UTF-8";
:root {
  --invert: #37404f0a;
  --secondary-text: #667085;
  --gray-lighter: #4e5766;
  --gray-border: #e0e4eb;
  --panel-bg: #f5f5f5;
  --bg-primary: #ffffff;
}
.darkMode {
  --invert: #e0e4eb;
  --secondary-text: #bfc6d4;
  --gray-lighter: #d1d6e0;
  --gray-border: #37404f;
  --panel-bg: #202531;
  --bg-primary: #0a0e15;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Outfit";
}
main,
.switch,
.container,
.input-container,
ul li img {
  transition: all 1.75s ease;
}
main {
  background: var(--bg-primary);
  color: var(--gray-lighter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.switch {
  display: flex;
  align-items: center;
  border: 2px solid var(--secondary-text);
  padding: 0.5em;
  margin-bottom: 2em;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  transition: background 0.5s ease;
}
.switch:hover {
  background: var(--gray-border);
}
/* ICON SWITCHING STARTS HERE */
.switch .icon:first-child {
  display: none;
}
.darkMode .switch .icon:first-child {
  display: flex;
}
.darkMode .switch .icon:last-child {
  display: none;
}

/* ICON SWITCHING ENDS HERE */

.icon {
  height: 2em;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;

  background: var(--panel-bg);
  width: 20em;
  padding: 1.2em 0.9em;
  border-radius: 1.5em;
  box-shadow: 0 1.25em 1.6em hsla(0, 1%, 21%, 0.3);
}
.container h1 {
  text-align: center;
  font-size: 2em;
}
.input-container {
  background-color: var(--bg-primary);
  width: 100%;
  border-radius: 1.25em;
  padding: 0.5em;

  display: flex;
  justify-content: space-between;
  position: relative;
}
input {
  font-size: 0.7em;
  flex: 1;
  border: none;
  outline: none;
  padding: 0.3em 0;
  background: transparent;
  color: var(--gray-lighter);
}
.input-container .btn {
  border: none;
  background: none;
  position: absolute;
  top: 3px;
  right: 3px;
}
.input-container img {
  border: none;
  height: 2.3em;
  width: 2.3em;
  padding: 0.1em;
  border-radius: 50%;
  cursor: pointer;
}
li {
  background: var(--gray-border);
  width: 100%;
  border-radius: 1.2em;
  margin-bottom: 0.5em;
  padding: 0.75em 2.5em;

  list-style: none;
  font-size: 0.8em;
  font-weight: 600;
  user-select: none;
  cursor: pointer;
  position: relative;
}
ul li::before {
  content: "";
  position: absolute;
  height: 1.25em;
  width: 1.25em;
  border-radius: 50%;
  background: url("./assets/icons8-circle-50.png");
  background-size: cover;
  background-position: center;
  left: 0.5em;
  top: 0.75em;
}
ul li.checked {
  color: var(--secondary-text);
  text-decoration: line-through;
}
ul li.checked::before {
  background: url("./assets/check-mark-48.png");
  background-size: cover;
  background-position: center;
  height: 1.5em;
  width: 1.5em;
  left: 0.5em;
  top: 0.6em;
}
ul li img {
  position: absolute;
  right: 0.625em;
  top: 0.36em;
  height: 2em;
  width: 2em;
  line-height: 2.5em;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
  background: var(--invert);
  transition: background 0.75s ease-out;
}
ul li img:hover {
  background: #edeef0;
}
@media (max-width: 35em) {
  .container {
    width: 24em;
  }
  .input-container img {
    border: none;
    height: 4em;
    width: 4em;
    padding: 0.1em;
  }
  .input-container {
    padding: 1em;
    border-radius: 2em;
  }
  .input-container .btn {
    top: .4em;
    right: 3px;
  }
input, li {
  font-size: 1em;
}
}
