@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

html {
  box-sizing: border-box;
  cursor: url("pawprint.png"), auto;
  font-family: "Poppins";
}
*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
:root {
  --pomodoro: hsl(223, 25%, 40%);
  --shortBreak: hsl(48, 23%, 40%);
  --longBreak: hsl(105, 16%, 40%);
}
/* Add this to your existing CSS file */

:root {
  --pomodoro-background: url("bg1.png");
  --shortBreak-background: url("bg2.png");
  --longBreak-background: url("bg3.png");
}

body {
  transition: background-image 0.5s ease-in-out; /* Add transition */
}

body.pomodoro {
  background-image: var(--pomodoro-background);
  background-size: cover;
}

body.shortBreak {
  background-image: var(--shortBreak-background);
  background-size: cover;
}

body.longBreak {
  background-image: var(--longBreak-background);
  background-size: cover;
}

body {
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  transition: background-color 1s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}
progress {
  border-radius: 2px;
  width: 100%;
  height: 12px;
  position: fixed;
  top: 0;
}
progress::-webkit-progress-bar {
  background-color: rgba(0, 0, 0, 0.1);
}
progress::-webkit-progress-value {
  background-color: #fff;
}
.timer {
  text-align: center;
  padding: 70px;
  background-color: rgba(17, 14, 14, 0.8);
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.heading {
  font-size: 2rem;
  color: white;
  font-family: "Poppins", cursive;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.clock {
  margin: 15px 0;
  font-size: 15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  color: white;
}

.mode-buttons {
  margin-bottom: 20px;
}

.mode-button {
  font-size: 18px;
  height: 48px;
  cursor: pointer;
  box-shadow: none;
  font-weight: 600;
  color: #fff;
  border: 1px solid transparent;
  margin: 0 5px;
  border-radius: 30px;
  padding: 2px 12px 0 12px;
  background: none;
}

.mode-button.active {
  border-color: rgba(129, 129, 129, 0.555);
}
.mode-button:hover {
  background-color: rgba(250, 250, 250, 0.329);
  cursor: url("pawprint.png"), pointer;
}

.main-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.adjust-button,
.main-button {
  cursor: pointer;
  font-size: 22px;
  height: 55px;
  text-transform: uppercase;
  font-weight: bold;
  width: 55px;
  background-color: white;
  border-width: initial;
  border-style: none;
  margin: 0 10px;
  border-radius: 4px;
  transition: color 0.5s ease-in-out;
}
.adjust-button:hover,
.main-button:hover {
  background-color: #b4b4b4;
  cursor: url("pawprint.png"), pointer;
}
.main-button {
  width: 200px;
}

button:focus,
button:active {
  outline: none;
}

.main-button.active {
  transform: translateY(6px);
  box-shadow: none;
  outline: none;
}

.fullscreen-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  transition: color 0.3s ease;
}

.fullscreen-button:hover {
  color: rgba(207, 201, 201, 0.925);
  cursor: url("pawprint.png"), pointer;
}

/* Styles for To-Do List */
/* Styles for To-Do List and Digital Clock */
.todo-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  text-align: left;
}

.todo-header {
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  text-align: center;
  width: 212px;
}
.todo-header:hover {
  background-color: #111111;
}
.todo-list input {
  background-color: rgba(255, 255, 255, 0.973);
  border: none;
  outline: none;
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 4px;
  font-family: "Poppins";
}

::placeholder {
  color: black;
  font-family: "Poppins";
  font-size: 13px;
  font-weight: 500;
}
.todo-list {
  display: none;
  background-color: rgba(17, 14, 14, 0.8);
  padding: 15px;
  border-radius: 5px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

#tasks {
  list-style: none;
  padding: 0;
}

#tasks li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
  color: white;
}

#tasks li .task-text {
  flex: 1;
}

#tasks li .task-checkbox {
  margin-left: 1rem;
}

#tasks li .delete-task {
  background: none;
  border: none;
  color: #ef476f;
  cursor: pointer;
}

#tasks li .delete-task:hover {
  color: #d43b61;
}

.task-text {
  flex: 1;
  font-size: 18px;
  text-decoration: none;
}

.task-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-right: 10px;
  margin-top: 4px;
}

.task-checkbox:checked {
  background: #4caf50;
  border-color: #4caf50;
}

.task-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.delete-task {
  border: none;
  background: none;
  color: #ff5722;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.delete-task i {
  margin: 0;
  padding: 0;
}

.delete-task:hover {
  color: #ff0000;
  cursor: url("pawprint.png"), pointer;
}

.clear-tasks-button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: "Poppins";
}

.clear-tasks-button:hover {
  background-color: rgba(255, 0, 0, 0.9);
}

.todo-list::-webkit-scrollbar {
  width: -29px; /* Width of the scrollbar */
}

.todo-list::-webkit-scrollbar-track {
  background: #333; /* Background of the scrollbar track */
  border-radius: 10px;
}

.todo-list::-webkit-scrollbar-thumb {
  background-color: #888; /* Scrollbar thumb color */
  border-radius: 10px;
  border: 3px solid #333; /* Padding around thumb */
}

.todo-list::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Hover color for the scrollbar thumb */
}
.clear-tasks-button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: "Poppins";
}

.clear-tasks-button:hover {
  background-color: rgba(255, 0, 0, 0.9);
}
#addTaskButton {
  width: 20px;
  font-size: 18px;
  margin-left: 9px;
  background: none;
  border: none;
  padding: 2px;
  color: white;
}
#addTaskButton:hover {
  color: #ccc;
}
#digital-clock {
  font-size: 4rem;
  font-weight: 200;
  color: white;
  text-align: left;
  margin: 10px;
  position: fixed;
  top: 10px;
  left: 10px;
  background: none;
  font-family: "Titillium Web";
}

#digital-clock span {
  display: inline-block;
  vertical-align: middle;
}

#digital-clock .time {
  font-size: 2.7rem;
}

#digital-clock .ampm {
  font-size: 2rem;
  margin-left: -4px;
  margin-bottom: 5px;
}

#digital-clock .day-date {
  display: block;
  font-size: 1.4rem;
  margin-bottom: -60px;
}
@media (max-width: 768px) {
  .timer {
    padding: 30px;
  }

  .heading {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .clock {
    font-size: 10rem;
    margin: 10px 0;
  }

  .mode-button {
    font-size: 16px;
    height: 40px;
    padding: 2px 10px 0 10px;
  }

  .adjust-button,
  .main-button {
    font-size: 20px;
    height: 45px;
    width: 45px;
  }

  .main-button {
    width: 150px;
  }

  .fullscreen-button {
    font-size: 25px;
  }

  .todo-header {
    font-size: 16px;
    width: 290px;
  }

  .todo-toggle {
    width: 160px;
    height: 35px;
    font-size: 14px;
  }
  #digital-clock {
    font-size: 3rem;
  }

  #digital-clock .time {
    font-size: 2rem;
  }

  #digital-clock .ampm {
    font-size: 1.5rem;
    margin-left: -5px;
  }

  #digital-clock .day-date {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .timer {
    padding: 20px;
  }

  .heading {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .clock {
    font-size: 7rem;
    margin: 5px 0;
  }

  .mode-button {
    font-size: 14px;
    height: 35px;
    padding: 2px 8px 0 8px;
  }

  .adjust-button,
  .main-button {
    font-size: 18px;
    height: 40px;
    width: 40px;
  }

  .main-button {
    width: 120px;
  }

  .fullscreen-button {
    font-size: 20px;
  }

  .todo-header {
    font-size: 14px;
    width: 160px;
  }

  .todo-toggle {
    width: 140px;
    height: 30px;
    font-size: 12px;
  }

  #digital-clock {
    font-size: 2.5rem;
  }

  #digital-clock .time {
    font-size: 1.8rem;
  }

  #digital-clock .ampm {
    font-size: 1.2rem;
    margin-left: -3px;
  }

  #digital-clock .day-date {
    font-size: 1rem;
  }
}
