/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  background-image: url("summer.jpg"); /* Default to summer */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column; /* Change to column layout */
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 30px;
  flex: 1; /* Allow container to grow and push footer down */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.pomodoro-timer, .project-manager, .quote-container {
  background-color: rgba(255, 255, 255, 0.8); /* White with transparency */
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  padding: 20px;
  margin-bottom: 20px; /* Add margin for vertical spacing */
  transition: background-color 0.3s ease, max-height 0.3s ease, padding 0.3s ease, left 0.3s ease, transform 0.3s ease; /* Added transition for left and transform */
  position: relative; /* Necessary for absolute positioning of child elements */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Center horizontally */
}

.quote-container {
  background-color: rgba(0, 0, 0, 0.6); /* Black with transparency */
  color: #fff;
  text-align: center;
  font-size: 18px; /* Increased font size */
}

.pomodoro-timer.pomodoro {
  background-color: rgba(160, 44, 44, 0.8); /* Adjust transparency here */
}

.pomodoro-timer.short-break,
.pomodoro-timer.long-break {
  background-color: rgba(44, 122, 44, 0.8); /* Adjust transparency here */
}

.project-manager h1 {
  color: #000; /* Change title color to black */
}

h1, h2 {
  margin-top: 0;
  color: #fff;
  text-align: center;
}

.project-input, .task-input {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.timer {
  font-size: 72px;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}

.task-list {
  text-align: left;
  margin-top: 20px;
}

.task-list ul {
  list-style-type: none;
  padding: 0;
}

.task-list li {
  margin-bottom: 10px;
  color: #333;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 5px;
  counter-increment: task-counter;
}

.task-list li.not-started {
  background-color: #ffcccb;
  color: #000;
}

.task-list li.in-progress {
  background-color: #fff2cc;
  color: #000;
}

.task-list li.completed {
  background-color: #d4edda;
  color: #000;
}

.task-list li span {
  margin-left: 10px;
  word-wrap: break-word;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  text-align: left;
}

.task-list li select {
  margin-right: 10px;
  padding: 5px;
  border-radius: 5px;
  flex-shrink: 0;
}

.buttons {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.buttons button {
  font-size: 18px;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buttons button:hover {
  background-color: #f0f0f0;
}

#add-task, #reset-project {
  display: block;
  width: 100%;
  font-size: 16px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #28a745;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
}

#add-task:hover, #reset-project:hover {
  background-color: #218838;
}

.project-progress {
  margin-bottom: 20px;
}

.project-progress .progress-bar {
  background-color: #e0e0e0;
  height: 20px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.project-progress .progress {
  background-color: #28a745;
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-progress .progress span {
  color: #fff;
  font-weight: bold;
}

.reward-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#reward-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

#reward-button {
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #28a745;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#reward-button:hover {
  background-color: #218838;
}

.question-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #007bff;
  color: #fff;
  text-align: center;
  line-height: 20px;
  margin-left: 10px;
  cursor: pointer;
}

#reward-text {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #fff;
  border-radius: 5px;
  word-wrap: break-word;
}

#reward-text.completed {
  background-color: #d4edda;
  color: #155724;
}

.task-list li::before {
  content: counter(task-counter) ". ";
  font-weight: bold;
  margin-right: 10px;
}

#instructions {
  margin-bottom: 20px;
  line-height: 1.5;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.lightbox-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
}

.lightbox-content h3 {
  margin-top: 0;
}

.lightbox-content button {
  margin-top: 10px;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.background-select {
  position: absolute;
  top: 10px;
  right: 60px;
  display: inline-block;
}

.background-select select {
  padding: 8px; /* Adjusted padding for thinner vertical size */
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1.6 4.6c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0L6 6.2 9 3.2c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4L6 9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

.settings {
  position: absolute;
  top: 10px;
  right: 10px;
}

.settings-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

.settings-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 50%;
  right: 10%; /* Adjust this value to position the modal more to the right */
  transform: translateY(-50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.settings-modal-content {
  padding: 20px;
  text-align: left;
}

.settings-modal h3 {
  margin-top: 0;
  font-size: 24px;
  text-align: center;
  color: #333;
}

.settings-modal label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.settings-modal input[type="number"], .settings-modal select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.settings-modal button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #28a745;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px; /* Add margin-top for spacing */
  transition: background-color 0.3s ease;
}

.settings-modal button:hover {
  background-color: #218838;
}

.hamburger-menu {
  display: none;
  position: absolute;
  top: 10px;
  right: 100px;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.season-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 999;
}

.season-dropdown a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: #333;
}

.season-dropdown a:hover {
  background-color: #f0f0f0;
}

footer {
  background-color: transparent; /* Transparent background */
  color: #fff; /* White text */
  padding: 20px;
  text-align: center;
  width: 100%;
  margin-top: auto; /* Push footer to the bottom */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

footer nav ul li {
  margin: 0 10px;
}

footer nav ul li a {
  color: #fff; /* White text */
  text-decoration: none;
}

footer nav ul li a:hover {
  text-decoration: underline;
}

.fullscreen-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  height: 40px;
  border: 2px dashed #fff; /* White slotted border */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  background-color: transparent; /* Fully transparent background */
  border-radius: 5px;
}

.fullscreen-box p {
  margin: 0;
  font-size: 14px;
  color: #fff; /* White text */
}

.minimize-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.quote-container .minimize-button, .pomodoro-timer .minimize-button {
  color: #fff; /* White color for visibility against dark background */
}

.project-manager .minimize-button {
  color: #000; /* Black color for visibility against light background */
}

.minimized {
  max-height: 30px;
  overflow: hidden;
  padding: 10px;
  opacity: 0.7;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  width: 90%;
  max-width: 400px;
}

.pomodoro-timer.maximized, .project-manager.maximized, .quote-container.maximized {
  max-height: 100vh;
  padding: 20px;
  opacity: 1;
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .pomodoro-timer, .project-manager, .quote-container {
    width: 100%;
    max-width: none;
    padding: 15px;
    left: 50%;
    transform: translateX(-50%);
  }

  .timer {
    font-size: 48px;
  }

  .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .buttons button {
    font-size: 16px;
    padding: 8px 16px;
  }

  #add-task, #reset-project {
    font-size: 14px;
    padding: 8px;
  }

  .task-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .task-list li span {
    font-size: 14px;
  }

  .fullscreen-box {
    width: 80px;
    height: 30px;
  }

  .fullscreen-box p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .background-select {
    display: none;
  }

  .hamburger-menu {
    display: none; /* Hide hamburger menu */
  }

  .container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .pomodoro-timer, .project-manager, .quote-container {
    padding: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .timer {
    font-size: 36px;
  }

  .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .buttons button {
    font-size: 14px;
    padding: 6px 12px;
  }

  #add-task, #reset-project {
    font-size: 12px;
    padding: 6px;
  }

  .task-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .task-list li span {
    font-size: 12px;
  }

  .fullscreen-box {
    display: none; /* Hide fullscreen box on mobile */
  }

  .fullscreen-box p {
    font-size: 10px;
  }
}
