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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, #dceef2, #f7fafc);  /* softer, lighter gradient */
  background-attachment: fixed;
  min-height: 100vh; /* instead of fixed height */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #333;
  overflow-x: hidden; /* only hide horizontal scroll */
}

h1 {
  z-index: 2;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

#breath-container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 40px 60px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  user-select: none;
  min-width: 320px;
  text-align: center;
  backdrop-filter: blur(6px);
}

#breath-instruction {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 10px 0 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  animation: pulse 8s ease-in-out infinite;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

#countdown {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5rem;
  font-weight: normal; /* changed from 600 */
  color: #2e2e2e;
  letter-spacing: 0.04em;
  margin-top: 35px;
  opacity: 0.85;
}
#rhythm {
  font-size: 1.2rem;
  padding: 10px 16px;
  background-color: #e3e9f0;
  color: #333;
  border: none;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#rhythm:hover {
  background-color: #d2dae3;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

#start-btn, #stop-btn {
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background-color: #a6c8dd;
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

#start-btn:hover, #stop-btn:hover {
  background-color: #84b2cd;
}

#home-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #cfd8e3;
  color: #333;
  font-size: 1rem;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 3;
}

#home-btn:hover {
  background-color: #b3c4d7;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

#flower {
  width: 120px;
  height: 120px;
  margin: 30px auto 10px;
  background: radial-gradient(circle, #FFC0CB, #FF69B4);
  border-radius: 50%;
  transition: transform 4s ease-in-out;
  box-shadow: 0 0 20px rgba(255, 192, 203, 0.4);
  transform: scale(1);
}

.flower-bloom {
  transform: scale(1.3);
}

.flower-bud {
  transform: scale(0.5);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}


#cycle-select {
  font-size: 1.2rem;
  padding: 10px 16px;
  background-color: #e3e9f0;
  color: #333;
  border: none;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#cycle-select:hover {
  background-color: #d2dae3;
}

#cycle-info {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #555;
  letter-spacing: 0.02em;
}

/* Nostril breathing indicator styles */
#nostril-indicators {
  margin: 20px 0;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  user-select: none;
}

.nostril {
  font-weight: normal;
  color: #888;
  padding: 0 10px;
  transition: color 0.5s ease, font-weight 0.5s ease;
}

.nostril.active {
  color: #3a86ff; /* nice blue highlight */
  font-weight: 700;
}

@media (max-width: 480px) {
  #breath-instruction {
    font-size: 1.4rem;
    margin: 12px 0 8px; /* reduce vertical spacing */
  }

  #countdown {
    font-size: 2rem;
    margin-top: 30px; /* reduce gap below countdown */
  }

  #cycle-select {
    font-size: 0.9rem;
    margin-bottom: 0.5rem; /* reduce space below dropdown */
  }

  #cycle-info {
    font-size: 0.9rem;
    margin-top: 10px; /* reduce space above cycle info */
  }

  #breath-container {
    padding: 30px 20px; /* reduce container padding for small screens */
    min-width: auto;
    width: 90vw; /* make container width responsive */
  }
}
