@media (max-width: 600px) {
  .banner {
    height: 120px;
    margin-bottom: 30px;
    border-radius: 8px;
  }
  .banner-img {
    border-radius: 8px;
  }
  .pfp {
    width: 60px;
    height: 60px;
    left: 8px;
    bottom: -20px;
    border-width: 2px;
  }
  .light-mode {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .light-mode button {
    width: 28px;
    height: 28px;
  }
  .light-mode img {
    width: 18px;
    height: 18px;
  }
  .welcome,
  .quote,
  .todo {
    margin: 8px;
    font-size: 14px;
    padding: 6px;
  }
  .todo {
    max-height: 220px;
    width: 95vw;
    min-width: 0;
    font-size: 14px;
  }
  .todo-header h2 {
    font-size: 1em;
    margin: 4px;
  }
  .add-task button {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 7px;
    box-shadow: 2px 2px #fafafa;
  }
  #new-task-input {
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 6px;
    margin-right: 4px;
  }
  .todo input[type="checkbox"],
  .todo label {
    margin-left: 2px;
    font-size: 0.95em;
  }
  #progress-bar {
    width: 90vw;
    min-width: 0;
    max-width: 100%;
    height: 8px;
  }
  .progress-section {
    padding: 10px;
    margin-top: 10px;
    margin-left: 0;
  }
  .progress-section label {
    font-size: 1em;
    margin-bottom: 4px;
  }
  #progress-percent {
    font-size: 14px;
    margin-top: 4px;
  }
  h2 {
    font-size: 1em;
    margin: 4px;
  }
}
body.light {
  background-color: #f7f7f7;
  color: #222;
}
.light .banner {
  background: #eaeaea;
}
.light .welcome,
.light .quote,
.light .todo {
  color: #222;
  background: #fff;
  border-color: #bbb;
}
.light .quote {
  background: #f3f3f3;
}
.light .todo {
  background: #fff;
}
.light .progress-section label {
  color: #222;
}
.light #progress-bar::-webkit-progress-bar {
  background-color: #ddd;
}
.light #progress-bar::-webkit-progress-value {
  background-color: #1b8fff;
}
.light #progress-bar::-moz-progress-bar {
  background-color: #1b8fff;
}
.light .add-task button {
  background: #f3f3f3;
  color: #222;
  border: 2px solid #222;
  box-shadow: 3px 3px #bbb;
}
.light .add-task button:hover {
  background: #e0e0e0;
}
.light .todo input[type="checkbox"]:checked {
  background-color: #1b8fff;
  border-color: #1b8fff;
}
.light .todo input[type="checkbox"]:checked + label {
  color: #bbb;
}
.light .todo input[type="checkbox"] {
  border: 2px solid #888;
}
.light .todo-header h2 {
  color: #222;
}
.light #new-task-input {
  background: #fff;
  color: #222;
  border: 1px solid #bbb;
}
.light #new-task-input:focus {
  border-color: #1b8fff;
}
.light .light-mode {
  border: 2px solid #222;
  background: #fff;
}
#progress-percent {
  color: white;
  font-size: 18px;
  margin-top: 8px;
}
.banner {
  position: relative;
  height: 250px;
  overflow: visible;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 80px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: relative;
}
.pfp {
  position: absolute;
  bottom: -50px;
  left: 40px;
  width: 150px;
  height: 150px;
  border-radius: 10%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  background-color: white;
  z-index: 10;
  transition: transform 0.3s ease;
}
.pfp:hover {
  transform: scale(1.05);
}
body {
  background-color: #1b1b1d;
  font-family: "Times New Roman", Times, serif;
}
.welcome {
  color: white;
  margin: 30px;
  font-size: 20px;
}
.quote {
  color: white;
  margin: 30px;
  border: #4b4b51 0.5px solid;
  background-color: #2f2f33;
  font-size: 20px;
}
.todo {
  color: white;
  margin: 30px;
  border: 1px solid #4b4b51;
  height: fit-content;
  width: fit-content;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
h2 {
  margin: 10px;
}
input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  color: #4b4b51;
  vertical-align: middle;
  line-height: 1.2em;
  display: inline-block;
}
input[type="checkbox"] {
  appearance: none;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #888;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  margin-right: 10px;
  vertical-align: middle;
}
input[type="checkbox"]:checked {
  background-color: #00ff88;
  border-color: #00ff88;
}
input[type="checkbox"]::after {
  content: "✓";
  color: white;
  font-size: 0.9em;
  position: absolute;
  top: 0.1em;
  left: 0.3em;
  display: none;
}
input[type="checkbox"]:checked::after {
  display: block;
}
.todo input[type="checkbox"],
.todo label {
  margin-left: 10px;
}

.todo-progress {
  display: flex;
  align-items: flex-start;
}
.progress-section {
  padding: 20px;
  margin-top: 25px;
  margin-left: 32px;
}

#progress-bar {
  width: 300px;
  height: 10px;
  appearance: none;
}
#progress-bar::-webkit-progress-bar {
  background-color: #eee;
  border-radius: 10%;
}
#progress-bar::-webkit-progress-value {
  background-color: #06e42e;
  border-radius: 10%;
}
#progress-bar::-moz-progress-bar {
  background-color: #06e42e;
}
.progress-section label {
  font-size: 25px;
  font-weight: bold;
  color: white;
  display: block;
  margin-bottom: 10px;
}

.add-task {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.add-task button {
  padding: 8px 16px;
  border-radius: 10px;
  border: 2px solid #fafafa;
  background: #252525;
  box-shadow: 3px 3px #fafafa;
  background-color: #2f2f33;
  color: white;
  cursor: pointer;
}
.add-task button:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}
.add-task button:hover {
  background-color: #4b4b51;
}
.todo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
#new-task-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #4b4b51;
  background: #23232a;
  color: #fff;
  font-size: 16px;
  outline: none;
  margin-right: 10px;
  transition: border-color 0.2s;
}
#new-task-input:focus {
  border-color: #06e42e;
}

.light-mode {
  border: 2px solid #fafafa;
  position: absolute;
  top: 20px;
  right: 20px;
  background: #e4e4eb;
  z-index: 100;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.light-mode button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.light-mode img {
  width: 28px;
  height: 28px;
  display: block;
}
.light-mode img:hover {
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .banner {
    height: 140px;
    margin-bottom: 40px;
    border-radius: 8px;
  }
  .pfp {
    width: 80px;
    height: 80px;
    left: 12px;
    bottom: -30px;
  }
  .welcome,
  .quote,
  .todo {
    margin: 10px;
    font-size: 16px;
  }
  h2 {
    font-size: 1.1em;
    margin: 6px;
  }
  .todo input[type="checkbox"],
  .todo label {
    margin-left: 4px;
    font-size: 1em;
  }
  body {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .todo-progress {
    flex-direction: column;
    align-items: center;
  }

  .progress-section {
    margin-left: 0;
    margin-top: 20px;
    width: 90%;
    text-align: center;
  }

  #progress-bar {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .todo {
    width: 80%;
  }
}
