/* ---------- Base Styles ---------- */
body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  overflow: hidden;
}

.main {
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  padding-top: 60px;
  transition: all 0.4s ease;
}

.title {
  font-size: 3rem;
  margin-top: 25px;
  margin-bottom: 2px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.title.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* ---------- Time Picker ---------- */
#target-time {
  font-size: 2rem;
  padding: 10px;
  background: #1e1e1e;
  border: none;
  color: white;
  border-radius: 8px;
  margin-bottom: 28px;
}

/* ---------- Countdown ---------- */
.countdown {
  margin-top: 5rem;
  font-size: 15rem;
  font-weight: normal;
  margin: 1px 0 1px;
  margin-bottom: 20px;
  transition: font-size 0.3s ease;
  color: #b2e4de;
}

#current-time {
  font-size: 4.5rem;
  margin-left: 3rem; /* Reduced from 5.5rem to accommodate AM/PM */
  margin-top: 0.1px;
  margin-bottom: 5px;
  color: #ccefdc;
}

/* ---------- Start/Stop Button ---------- */
.button-wrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 1000;
}

#startStopBtn {
  padding: 12px 30px;
  font-size: 1.5rem;
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.5s ease;
}

#startStopBtn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
/* ---------- Fullscreen Toggle (From Uiverse.io by catraco) ---------- */
.container {
  --color: #a5a5b0;
  --size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 20px;
  left: 20px;
  cursor: pointer;
  font-size: var(--size);
  user-select: none;
  fill: var(--color);
  z-index: 1000;
}

.container .expand {
  position: absolute;
  animation: keyframes-fill 0.5s;
}

.container .compress {
  position: absolute;
  display: none;
  animation: keyframes-fill 0.5s;
}

.container input:checked ~ .expand {
  display: none;
}

.container input:checked ~ .compress {
  display: block;
}

.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

@keyframes keyframes-fill {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
}

/* ---------- Info Box (Start Time) ---------- */
#time-info {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1rem;
  color: #ffffff;
  z-index: 1000;
  text-align: left;
}

/* ---------- Mobile Responsive Styles ---------- */
@media (max-width: 600px) {
  #current-time {
    font-size: 2rem;
    margin-left: 0;
  }
}
  #current-time {
    font-size: 2rem;
    margin-left: 0;
  }

  #target-time {
    font-size: 1.5rem;
  }

  #startStopBtn {
    font-size: 1.2rem;
    padding: 10px 20px;
  }

  .button-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    --size: 24px;
    bottom: 15px;
    left: 10px;
  }
