/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
}

/* Body */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 1s;
  background: #f4f6f8;
}

/* Main container */
.container {
  background: #fff;
  padding: 2rem;
  border-radius: 25px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  text-align: center;
  width: 90%;
  max-width: 450px;
  transition: background 1s;
  margin: 0 auto;
}

/* Headings */
h1 {
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #111827;
}

/* Settings inputs */
.settings {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.input-group {
  margin: 0.5rem;
  flex: 1 1 30%;
}

.input-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.input-group input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  text-align: center;
  font-size: 1rem;
  transition: all 0.3s;
}

.input-group input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* Timer Circle */
.timer-circle {
  position: relative;
  width: 220px;
  max-width: 90vw; /* mobile responsive */
  aspect-ratio: 1 / 1; /* keep perfect square */
  margin: 0 auto 2rem auto;
}

.timer-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;       /* remove inline space */
  overflow: visible;    /* allow full stroke to show */
}

.timer-circle circle {
  fill: none;
  stroke-width: 12;
  stroke: #e5e7eb;
}

#progress {
  stroke: #3b82f6;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke 0.5s linear, stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: pulse 1.2s infinite;
}

#phase {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

#timer {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#round {
  font-size: 1rem;
  color: #6b7280;
}

/* Buttons */
.controls button {
  padding: 0.6rem 1.5rem;
  margin: 0.3rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#start { background-color: #3b82f6; color: #fff; }
#start:hover { background-color: #2563eb; }

#pause { background-color: #facc15; color: #111; }
#pause:hover { background-color: #eab308; }

#reset { background-color: #ef4444; color: #fff; }
#reset:hover { background-color: #dc2626; }

/* SEO Text */
.seo-text {
  max-width: 700px;
  margin: 2rem auto 0 auto;
  padding: 0 1rem;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
}

.seo-text h2 {
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.seo-text p {
  margin-bottom: 0.8rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Header */
.site-header {
  width: 100%;
  background-color: #3b82f6;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  margin: 0;
}

.site-header .logo {
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  margin: 0;
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.site-header nav a:hover {
  color: #dbeafe;
}

/* Footer */
.site-footer {
  width: 100%;
  background-color: #111827;
  color: #fff;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  margin: 0;
  margin-top: auto;
}

.site-footer p {
  margin: 0 0 0.5rem 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin: 0;
}

.site-footer nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.3rem;
  transition: color 0.3s;
}

.site-footer nav a:hover {
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 480px) {
  #timer { font-size: 2.2rem; }
  .input-group { flex: 1 1 100%; }

  /* Timer circle fully responsive on mobile */
  .timer-circle {
    width: 90vw;
    max-width: 180px;
    aspect-ratio: 1 / 1;
  }

  .timer-circle svg {
    width: 100%;
    height: 100%;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  .site-header nav {
    margin-top: 0.3rem;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 0.3rem;
  }
}
.adsbygoogle {
  margin: 1rem 0; /* spacing above and below ads */
  display: block;
}