html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* Brand styling */
.brand {
  font-size: 2rem;
  font-weight: 600;
  padding-left: 2rem;
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  position: fixed;
  width: 610px;
  height: 56px;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  text-decoration: none;
  color: #606060;
  font-weight: 400;
}

.navbar-auth {
  display: flex;
  gap: 1rem;
}

.navbar-auth .sign-in {
  text-decoration: none;
  color: #606060;
  font-weight: 400;
  padding-top: 0.5rem;
}

.navbar-auth .sign-in:hover {
  text-decoration: underline;
}

.navbar-auth .sign-up {
  text-decoration: none;
  color: #ffffff;
  background-color: black;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 500;
  border: none;
}

/* Hamburger menu styling */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: 0.4s;
}

/* Main container */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8rem; /* Space between navbar and main content */
  background-color: #ffffff;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Duration container styling */
.duration-container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
  flex-wrap: wrap;
  width: 100%;
  font-size: 1rem;
  background-color: #ffffff;
  color: #333333;
  box-sizing: border-box;
}

.duration-select {
  flex: 1;
  min-width: 200px;
}

.duration-select label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333333;
  font-weight: 600;
}

/* Input styling */
.input {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #ffffff;
  color: #333333;
  box-sizing: border-box;
}

/* Button container styling */
.button-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#startButton,
#endButton,
#pauseButton {
  text-decoration: none;
  color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* Start button styling */
#startButton {
  background-color: black;
}

#startButton:hover {
  background-color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#startButton:disabled {
  background-color: #999999;
  color: #cccccc;
}

#startButton:disabled:hover {
  cursor: not-allowed;
}

/* End button styling */
#endButton {
  background-color: red;
}

#endButton:hover {
  background-color: #ff7471;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#endButton:disabled {
  background-color: #ff9593;
  color: #999999;
}

#endButton:disabled:hover {
  cursor: not-allowed;
}

/* Pause button styling */
#pauseButton {
  background-color: #666666;
}

#pauseButton:hover {
  background-color: #808080;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pauseButton:disabled {
  background-color: #cccccc;
  color: #999999;
}

#pauseButton:disabled:hover {
  cursor: not-allowed;
}

/* Timer circle styling */
.circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 350px;
  height: 350px;
  border: 8px solid black;
  border-radius: 50%;
  margin: 20px auto;
}

#countdownDisplay {
  font-size: 5.5rem;
}

/* Task list container */
.tasks-container {
  width: 100%;
  max-width: 600px;
  margin: 3rem auto;
  padding: 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tasks-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 1rem;
}

/* Task input form */
#taskForm {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

#taskInput {
  flex: 1;
  padding: 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  margin-right: 0.5rem;
  font-size: 1rem;
}

#taskForm button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: black;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

#taskForm button:hover {
  background-color: #333333;
}

/* Task list items */
#taskList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8e8e8;
  transition: background-color 0.3s ease;
  margin-left: -2.5rem;
}

#taskList li:last-child {
  border-bottom: none;
}

#taskList li:hover {
  background-color: #f1f1f1;
}

/* Task text styling */
#taskList span {
  flex: 1;
  margin-left: 0.5rem;
}

/* Fade-out animation for deleted tasks */
.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Hero section */
.hero {
  text-align: center;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 1200px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: black;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #333;
}

.cta-button {
  text-decoration: none;
  color: #fff;
  background-color: black;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #333;
}

/* Features section */
.features {
  text-align: center;
  padding: 5rem 1rem;
  background-color: #ffffff;
  margin: auto;
  max-width: 1200px;
}

.features h2 {
  font-size: 2rem;
  color: black;
  margin-bottom: 3rem;
}

.features-grid {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  max-width: 250px;
  text-align: center;
}

.feature-item img {
  width: 60px;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.5rem;
  color: black;
  margin-bottom: 1rem;
}

.feature-item p {
  font-size: 1.2rem;
  color: #666;
}

/* Testimonials section */
.testimonials {
  text-align: center;
  padding: 5rem 1rem;
  background-color: #f5f5f5;
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 1200px;
}

.testimonials h2 {
  font-size: 2rem;
  color: black;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.testimonial-item {
  max-width: 350px;
  text-align: left;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-item p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1rem;
}

.testimonial-item h4 {
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
}

/* Call to Action section */
.cta-section {
  text-align: center;
  padding: 5rem 1rem;
  background-color: #ffffff;
  border-radius: 16px;
  margin: 2rem auto 4rem;
  max-width: 1200px;
  width: 85%;
}

.cta-section h2 {
  font-size: 2rem;
  color: black;
  margin-bottom: 2rem;
}

.cta-section p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 4rem;
}

/* Footer styling */
footer {
  background-color: #ffffff;
  padding: 2rem;
  text-align: left;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.footer-content .brand-name {
  width: 150px;
  height: 150px;
  margin-top: -2.5rem;
}

.footer-content div {
  flex: 1;
  padding: 0 1rem;
}

.footer-content p {
  font-size: 1rem;
  font-weight: 600;
}

.footer-content .footer-text {
  font-size: 0.9rem;
  color: #666666;
  font-weight: 400;
}

.footer-content ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.footer-content li {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666666;
}

.footer-content li a {
  text-decoration: none;
  color: inherit;
}

.footer-content li a:hover {
  text-decoration: underline;
}

/* Mobile Adaptation for devices with width <= 768px */
@media (max-width: 768px) {
  .hero {
    margin: 1rem;
    padding: 0.5rem;
  }

  .navbar {
    width: 85%;
    height: auto;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .navbar-menu li {
    width: 100%;
    margin-left: 1px; /* Fix design thingy */
  }

  .sign-in {
    margin-left: 1px; /* Shift the Sign In button 1px to the left (fix eye design thingy) */
  }

  .navbar-menu li a {
    display: block;
    width: 100%;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu li:first-child {
    margin-top: 1rem; /* Increase space between the first list item and the title */
  }

  .navbar-auth {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
    padding-top: 1rem;
  }

  .navbar-auth.active {
    display: flex;
  }

  .hamburger-menu {
    display: flex;
    position: absolute;
    right: 1rem;
  }

  /* Hamburger menu toggle animation */
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(60deg);
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-60deg);
  }

  .duration-container {
    flex-direction: column;
    align-items: center;
  }

  .duration-select {
    width: 100%;
  }

  .circle {
    width: 200px;
    height: 200px;
  }

  #countdownDisplay {
    font-size: 3rem;
    font-family: "Inter", monospace;
  }

  .tasks-container {
    width: 80%;
  }

  .hero {
    width: 85%;
  }

  .testimonials {
    width: 80%;
  }

  footer {
    padding: 1rem;
    text-align: center;
  }
}
