* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  font-family: "Inter", sans-serif;
  color: #fff;

  background-image: linear-gradient(135deg, #ff9d6c 10%, #bb4e75 100%);

  transition: background-color 200ms ease-in;
  height: 100vh;
}

header {
  max-width: 80%;
  margin: 30px auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a {
  color: #fff;
}

a:link {
  text-decoration: none;
}

.logo {
  font-size: 2.4rem;
  font-weight: bold;
}

.nav-links {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 5px;
  transition: transform 250ms;
}

.nav-link:hover {
  transform: scale(1.05);
}

.nav-link:active {
  transform: translateY(5px);
}

/* Progress bar */

.progressbar-container {
  max-width: 80%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 30px auto;
}

.progressbar {
  width: 0%;
  height: 3px;
  background-color: #fff;
  overflow: hidden;
  transition: width 150ms ease-in;
}

/* POMODORO TIMER */

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 600px;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.1);

  margin: 0 auto;
  border-radius: 5px;
  padding: 44px 0;
  margin-bottom: 60px;
}

.timer-btns-container {
  display: flex;
  gap: 2.4rem;
}

button {
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
}

.btn-timer {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.6rem;
  padding: 10px 28px;
  border-radius: 5px;
  transition-property: color, background-color, transform;
  transition-duration: 250ms;
}

.btn-timer:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-timer:active {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(10px);
}

.timer {
  font-family: "Roboto";
  font-size: 14.4rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-start {
  font-size: 2.4rem;
  color: #333;
  background-color: #fff;
  padding: 10px 56px;
  border-radius: 3px;
  box-shadow: 0px 5px 0px rgba(255, 255, 255, 0.6);
  transition-property: box-shadow, transform;
  transition-duration: 100ms;
}

.btn-start:active {
  transform: translateY(5px);
  box-shadow: none;
}

/* Quote */

.quote-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;
  height: 18rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 5px;
  margin: 30px auto;
}

blockquote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.7rem;
  gap: 1.4rem;
  transition: content 250ms ease-out;
}

.quote-text {
  font-weight: 400;
  max-width: 60ch;
  line-height: 1.6;
}

blockquote span {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */

footer {
  display: flex;
  justify-content: center;
  height: 80px;
}

.footer-text {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  gap: 0.3rem;
}

/* Added programmatically */

.btn-clicked {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

.started {
  transform: translateY(5px);
  box-shadow: none;
}

/* Responsive design */

@media (max-width: 769px) {
  header {
    max-width: 90%;
  }

  .nav-links {
    font-size: 1.4rem;
    gap: 1.2rem;
  }

  .progressbar-container {
    max-width: 90%;
  }

  .main-container {
    width: 90%;
    height: 360px;
    margin: 0 auto;
    padding: 34px 0;
    margin-bottom: 60px;
  }

  .timer-btns-container {
    gap: 1.2rem;
  }

  .btn-timer {
    font-size: 1.5rem;
    padding: 10px 18px;
  }

  .timer {
    font-size: 12.4rem;
    font-weight: bold;
    gap: 1rem;
  }

  .btn-start {
    font-size: 2.4rem;
    padding: 8px 56px;
  }

  .quote-container {
    width: 90%;
    height: 17rem;
    padding: 20px 10px;
  }

  blockquote {
    font-size: 1.6rem;
    gap: 1.4rem;
  }

  blockquote span {
    font-size: 1.4rem;
  }
}

@media (max-width: 426px) {
  .logo {
    font-size: 2rem;
  }

  .nav-links {
    font-size: 1.4rem;
    gap: 1.4rem;
  }

  .nav-link:active {
    transform: translateY(3px);
  }

  .progressbar-container {
    margin: 25px auto;
  }

  .main-container {
    height: 300px;
    padding: 24px 0;
    margin-bottom: 60px;
  }

  .timer-btns-container {
    gap: 1rem;
  }

  .btn-timer {
    font-size: 1.4rem;
    padding: 8px 14px;
  }

  .btn-timer:active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(5px);
  }

  .timer {
    font-size: 10rem;
    font-weight: bold;
    gap: 1rem;
  }

  .btn-start {
    font-size: 2rem;
    padding: 8px 56px;
  }

  .quote-container {
    height: 16rem;
    padding: 10px 20px;
  }

  blockquote {
    font-size: 1.5rem;
    gap: 1.4rem;
  }

  blockquote span {
    font-size: 1.3rem;
  }
}

@media (max-width: 376px) {
  header {
    width: 95%;
  }

  .logo {
    font-size: 1.8rem;
  }

  .nav-links {
    font-size: 1.2rem;
    gap: 1rem;
  }

  .main-container {
    height: 280px;
    padding: 22px 0;
    margin-bottom: 60px;
  }

  .timer-btns-container {
    gap: 1.2rem;
  }

  .btn-timer {
    font-size: 1.3rem;
    padding: 8px 14px;
  }

  .timer {
    font-size: 9rem;
  }

  .btn-start {
    font-size: 2.2rem;
    padding: 8px 44px;
  }

  .quote-container {
    width: 95%;
  }

  blockquote {
    font-size: 1.4rem;
    gap: 1.3rem;
  }

  .footer-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 321px) {
  .nav-links {
    /* font-size: 1.5rem;
    gap: 3rem; */
  }

  .main-container {
    height: 240px;
  }

  .btn-timer {
    font-size: 1.2rem;
    padding: 8px 12px;
  }

  .timer {
    font-size: 8rem;
  }

  .btn-start {
    font-size: 1.8rem;
    padding: 8px 40px;
  }

  .quote-container {
    height: 15rem;
  }

  blockquote {
    font-size: 1.4rem;
    gap: 1.2rem;
  }
}
