/* Writing Sprint Page */
.sprint-page {
  width: 100%;
  padding: 2rem;
  text-align: left;
  background-color: #f0f0f0;
  z-index: 1;
  border-radius: 1%;
  margin-top: 0px;
  margin-bottom: 0px;
}


.sprint-page h1 {
  margin: 0;
  font-size: 2rem;
  color: #333;
}

.sprint-page p {
  font-size: 1rem;
  color: #555;
  margin-top: 0.5rem;
}

.attribution {
  font-style: italic;
  width: 28%;
  color: #777;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  background: none;
  padding: 0;
}

/* Layout container for settings and card */
.sprint-layout {
  display: flex;
  width: 100%;
  height: 80vh;
  background-color: #e7e7e7;
}



/* Left settings column fixed position */
.sprint-settings {
  width: 300px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #f5f5f5;
  z-index: 10;
}


.sprint-card {
  flex: 1;
  max-width: 1200px;
  height: 750px;
  background-image: url("../Images/sprints/dragonknight.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* Card content box */
.sprint-info {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem; /* use smaller padding */
  border-radius: 10px;
  text-align: center;
  width: 100%;
  font-size: 0.9rem;
}
.sprint-info h2 {
  margin: 0;
  font-size: 2.5rem;
}

#sprint-timer {
  font-size: 4rem;
  margin-top: 1rem;
  font-weight: bold;
}

/* Buttons and selects styling */
.sprint-settings label {
  font-weight: bold;
  color: #333;
}

.sprint-settings select, 
.sprint-settings button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.sprint-settings button.btn {
  margin-top: 1rem;
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 500;
  padding: 0.6rem;
  border-radius: 6px;
  transition:  0.3s ease, transform 0.2s ease;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.sprint-settings button.btn:hover {
  background-color: rgb(56, 56, 56)
}


.motivation-text {
  text-align: center;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px #ffd700; }
  50% { text-shadow: 0 0 20px #ff4500; }
}

.sprint-complete {
  font-size: 2rem;
  color: #ffd700;
  animation: glow 1.5s infinite;
  text-align: center;
  margin-top: 1rem;
}


  .modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 300px;
  text-align: center;
}


.tooltip {
  display: inline-block;
  margin-left: 5px;
  color: #414141;
  background-color: #c7baba;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 125%;
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: normal;
  width: 200px;
  font-size: 0.85rem;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s;
}

.tooltip:hover::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  z-index: 1001;
}


@media (max-width: 1024px) {
  .sprint-layout {
    flex-direction: column;
    height: auto;
  }

  .sprint-settings {
    width: 100%;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
  }

  .sprint-card {
    width: 100%;
    height: 400px;
    padding: 1.5rem;
    border-radius: 0;
  }

  .sprint-info {
    width: 100%;
    padding: 1rem;
  }

  .sprint-info h2 {
    font-size: 2rem;
  }

  #sprint-timer {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .sprint-page {
    padding: 1rem;
    text-align: left;
  }

  .sprint-page h1 {
    font-size: 1.5rem;
  }

  .sprint-page p {
    font-size: 0.95rem;
  }

  .sprint-settings {
    padding: 1rem;
    gap: 0.75rem;
  }

  .sprint-settings label,
  .sprint-settings select,
  .sprint-settings button {
    font-size: 0.9rem;
  }

  .sprint-card {
    height: 300px;
    padding: 1rem;
  }

  .sprint-info h2 {
    font-size: 1.2rem;
  }

  #sprint-timer {
    font-size: 2.2rem;
  }

  .motivation-text {
    font-size: 0.85rem;
  }
}


/* === Dark Mode Toggle Switch === */
.darkmode-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1rem 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #77946e;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* === Dark Mode Styles === */
body.dark-mode {
  background-color: #4e4e4eec;
  color: #e0e0e0;
}

body.dark-mode .sprint-page,
body.dark-mode .sprint-settings,
body.dark-mode .navbar,
body.dark-mode header,
body.dark-mode .sprint-layout { 
  background-color: #1e1e1e;
  color: white;
}

body.dark-mode .arrow-down {
  border-top: 5px solid #ffffff; /* White arrow in dark mode */
}


.dropdown:hover .arrow-down {
  transform: rotate(180deg);
}

body.dark-mode .sprint-page h1, 
body.dark-mode .sprint-page p
{
  color: #e0e0e0;
}

body.dark-mode .sprint-settings label {
  color: rgb(255, 255, 255);
}

body.dark-mode .navbar a {
  color: white;
}

body.dark-mode .dropdown-content {
  color: white;
  background-color: rgb(63, 63, 63);
}

body.dark-mode .dropdown-section-title {
  color: white;
  background-color: rgb(63, 63, 63);
}

body.dark-mode .navbar a:hover {
color: rgb(124, 121, 121);
}

body.dark-mode .btn {
  background: #1a1a1a;
  color: #ffffff;
}

body.dark-mode .btn:hover {
    background: #363636;
}

body.dark-mode select,
body.dark-mode input[type="range"] {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #555;
}

body.dark-mode .tooltip {
  background-color: #444;
  color: #fff;
}

body.dark-mode .tooltip:hover::after {
  background-color: #222;
}

body.dark-mode .attribution {
  background-color: #2d2d2d;
  color: #aaa;
}

