@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 2rem;
  box-sizing: border-box;
}

h1 {
  margin-bottom: 2.5rem;
  font-weight: 600;
  color: #ffffff;
  font-size: 70px;
}

.timer-inputs {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-group input {
  width: 160px;
  padding: 1.6rem;
  font-size: 4rem;
  text-align: center;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #2c2c2c;
  color: #e0e0e0;
  font-weight: 600;
  transition: all 0.3s ease;
}

.input-group label {
  margin-top: 1.6rem;
  font-size: 1.8rem;
  color: #aaa;
  font-weight: 300;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

#start-btn,
#reset-btn,
#pause-btn,
#resume-btn,
#start-again-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-weight: 600;
}

#start-btn {
  background-color: #007bff;
}

#pause-btn {
  background-color: #ffc107;
}

#resume-btn {
  background-color: #28a745;
}

#start-again-btn {
  background-color: #17a2b8;
}

#reset-btn {
  background-color: #6c757d;
}

#start-btn:hover,
#reset-btn:hover,
#pause-btn:hover,
#resume-btn:hover,
#start-again-btn:hover {
  transform: translateY(-2px);
}

#start-btn:active,
#reset-btn:active,
#pause-btn:active,
#resume-btn:active,
#start-again-btn:active {
  transform: translateY(0);
}

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 50px;
  }
  .timer-inputs {
    gap: 1rem;
  }
  .input-group input {
    width: 100px;
    font-size: 2.5rem;
  }
  .input-group label {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  body {
    padding: 1rem;
  }
  h1 {
    font-size: 40px;
  }
  .timer-inputs {
    flex-direction: column;
    gap: 2rem;
  }
  .input-group input {
    width: 100%;
    padding: 1rem;
    font-size: 3rem;
  }
  .input-group label {
    font-size: 1.5rem;
  }
  #start-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
