:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #f3f4f6;
  --font: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f3f4f6;
  min-height: 100vh;
  display: grid;
  place-items: center; /* centers everything horizontally and vertically */
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  width: 350px;
}

h1 {
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.length-controls {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem; 
  margin-bottom: 2rem;
}


.control-group h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.controls button {
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.controls button:hover {
  background: var(--primary-light);
}

#break-length,
#session-length {
  font-weight: 600;
  font-size: 1.2rem;
}

.timer {
  margin-bottom: 2rem;
}

.circle-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: auto;
}

svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

circle {
  fill: none;
  stroke-width: 12;
}

.bg {
  stroke: #e5e7eb;
}

.progress {
  stroke: var(--primary);
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#timer-label {
  margin: 0;
  font-size: 1.2rem;
}

#time-left {
  font-size: 2rem;
  font-weight: 600;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.timer-controls button {
  background: var(--success);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

#reset {
  background: var(--danger);
}

.timer-controls button:hover {
  opacity: 0.9;
}
.footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

.footer a {
  color: #4f46e5; /* matches primary color */
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f3f4f6;
}

main.container {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  width: 350px;
}

footer.footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 1rem;
}

.footer a {
  color: #4f46e5;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}


