body {
  font-family: Arial, sans-serif;
  /* background: #4caf50; */ /* green */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  transition:
    background-color 0.3s,
    color 0.3s;
}
body.break {
  background-color: #fff3eb; /* soft peach */ /*#f44336;*/ /* red */
}
body.work {
  background: #f6f7f2; /* warm off-white */ /* #4caf50; */ /* green */
}
body.long-break {
  background-color: #b3d9ff; /* dark green */
}
.wrapper {
  /* background-color: rgba(
    0,
    0,
    0,
    0.3
  ); semi-transparent black, adjust alpha as needed */
  padding: 20px 70px; /* adjust padding as desired */
  border-radius: 8px; /* optional: rounded corners */
  display: inline-block; /* optional: shrink-wrap the content */
  text-align: center; /* center text inside */
  min-width: 300px;
  max-width: 580px;
  width: min(92vw, 980px);
  box-sizing: border-box;
  margin: 32px auto;
}
.work-color-wrapper {
  background-color: #153d2b; /* deep forest green */
}
.work-color-hero-tagline {
  color: #153d2b;
}

.break-color-wrapper {
  background-color: #743a32; /* deep forest green */
}
.break-color-hero-tagline {
  color: #743a32;
}
.timer-panel {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 15px;
}
.note {
  font-size: 15px;
}
.hero-tagline {
  text-align: center;
  margin: 0 auto 1.5rem;
}

.hero-tagline h1 {
  margin: 0;
  /* color: #153d2b; */
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 250px;
  margin: 0 auto;
  text-align: center;
  font-family: "Inter", Arial, sans-serif;
}

.hero-tagline p {
  margin: 0.5rem 0 0;
  /* color: #153d2b; */
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  line-height: 1.5;
  font-weight: 400;
}

.page-tagline {
  max-width: 30rem;
  margin: 0 auto 1.25rem;
  color: #f1f7f0;
  font:
    400 1.05rem/1.6 system-ui,
    sans-serif;
  text-align: center;
}
.page-tagline strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  padding-bottom: 10px;
}
@media (max-width: 480px) {
  .page-tagline {
    max-width: 24rem;
    font-size: 0.95rem;
  }

  .page-tagline strong {
    font-size: 1.15rem;
  }
}

.seo-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  background: rgba(12, 26, 18, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: clamp(1.25rem, 2vw, 2rem);
  margin: 0 auto;
  display: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.seo-content h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1.2;
  color: #ffffff;
}

.seo-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  color: #ffffff;
}

.seo-content p,
.seo-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
}

.seo-content p {
  margin: 0 0 1rem;
}

.seo-content ol {
  margin: 0;
  padding-left: 1.2rem;
}

.seo-content li {
  margin-bottom: 0.55rem;
}

h1 {
  margin-bottom: 10px;
}
#timer {
  font-size: 80px;
  margin: 20px 0;
  font-weight: bold; /* optional for emphasis */
}
#counter {
  font-size: 20px;
  margin-bottom: 20px;
}
/* .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
} */

button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
}
#phase {
  font-size: 23px;
  margin-bottom: 10px;
}
#pauseBtn {
  display: none;
}
#buttonContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.start-control {
  /*background-color: #f2d36b;*/ /* warm yellow for the main button */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
/*
.start-control:hover {
  background-color: #c49a2c;*/ /* slightly darker warm yellow on hover */
/*}*/

.wide-start {
  width: 90%;
  margin: 0 auto;
  height: 90px;
  border-radius: 10px;
}

.wide-start .play-button,
.wide-start .pause-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 90px;
}

.wide-start .play-icon,
.wide-start .pause-button .pause-bars {
  margin: 0;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.wide-start .play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 6px;
}

.secondary-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.start-label,
.pause-label {
  /*color: #153d2b;*/
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
  line-height: 1;
  margin: 0;
  min-width: 200px;
}

button {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}
button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
/* Style for the play button */
.play-button {
  width: 90px;
  height: 110px;

  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  /* width: 220px;
  min-height: 64px;
   padding: 12px 20px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;*/

  color: #fff;
  /* background: #2e7d32;*/
  /* border: 1px solid #256628;*/
  border-radius: 12px;
  box-shadow: 0 4px 0 #373b37;

  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 100ms ease,
    box-shadow 100ms ease;
}
.play-button:hover,
.pause-button:hover {
  background-color: transparent;
  /*background: #388e3c;*/
}
.play-button:active {
  transform: translateY(3px);
  /* box-shadow: 0 1px 0 #1b5120;*/
}
.play-button:focus-visible {
  /*  outline: 3px solid #9ccc65;*/
  outline-offset: 3px;
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  margin: 0 auto;
  margin-bottom: 10px;
}

.work-color,
.long-break-color {
  background-color: #f2d36b;
}
.work-color:hover,
.long-break-color:hover {
  background-color: #c49a2c;
}
.work-color::before,
.play-icon.play-button.work-color::before {
  border-left-color: #4caf50;
}
/*.pause-work-color {*/
.bar-pause-work-color {
  background-color: #4caf50;
}

.break-color {
  border-left-color: #f44336;
  background-color: #e58a6f; /* soft coral */
  color: #ffffff;
}
.break-color:hover {
  background-color: #d46b5c;
}
.break-color::before,
.wide-start .play-icon.break-color::before {
  /*border-left: 30px solid #f44336;*/ /* color of the triangle */
  border-left-color: #f44336;
}
.long-break-color {
  border-left-color: #b3d9ff;
}
.long-break-color::before,
.play-icon.play-button.long-break-color::before {
  border-left-color: #b3d9ff; /* dark green */
}
.long-break-color-wrapper {
  background-color: #91b4d7; /* dark green */
}
.long-break-color-hero-tagline {
  color: #ffffff; /* white text for contrast */
}
/*.pause-break-color {*/
.bar-pause-break-color {
  background-color: #f44336;
}

.bar-pause-long-break-color {
  background-color: #b3d9ff; /* dark green */
}

/* Hover effect: change to grey */
.play-button:hover .play-icon,
.play-button:hover .start-label {
  opacity: 0.85;
}

.pause-button {
  width: 90px;
  height: 110px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
  position: relative;
  padding: 0;
}

/* The two vertical bars of pause */
.pause-bars {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

/* .pause-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  line-height: 1;
} */

/* Each bar */
.bar {
  width: 7px;
  height: 20px;
  /* background-color: white; */
  border-radius: 3px;
  /* Optional: add a slight hover effect */
  transition: background-color 0.2s;
}

/* Optional: change color on hover */
.pause-button:hover .bar {
  background-color: #f0f0f0;
}
.skip-button {
  width: 150px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}
/* The Triangle (Play Shape) */
.skip-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0; /* Reduced width slightly to make room for the bar */
  border-left: 30px solid #e3dac9;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  position: absolute;
  top: 50%; /* Shifted slightly left of center to balance the bar on the right */
  left: 35%;
  transform: translate(-50%, -50%);
}

/* The Vertical Bar (|) */
.skip-button::after {
  content: "";
  display: block;
  width: 6px; /* Thickness of the bar */
  height: 30px; /* Height matching the triangle's total height */
  background-color: #e3dac9;
  position: absolute;
  top: 50%; /* Positioned to the right of the triangle */
  left: 49%;
  transform: translate(-50%, -50%);
}

.restart-button {
  width: 150px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

/* Create the circular arc */
.restart-button::before {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The circular arc */
.restart-icon {
  width: 20px;
  height: 20px;
  border: 6px solid#e3dac9;
  border-top-color: transparent; /* Creates the gap for the arrow */
  border-radius: 50%;
  position: relative;
  transform: rotate(45deg); /* Rotates the gap to the top-right */
  display: block;
}

/* The Arrowhead */
.restart-icon::before {
  content: "";
  position: absolute;
  top: -9px;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 15px solid#e3dac9;
  transform: rotate(52deg);
}
.skip-label {
  margin-left: 52px;
}

/* Right Panel Styles */
.topbar {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  box-sizing: border-box;
}

.brand-mark {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #ffffff;
  margin-left: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: all 0.2s ease;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.right-panel {
  position: fixed;
  top: 0;
  right: -400px; /* Hidden on RIGHT side */
  left: auto; /* Override left positioning */
  width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #689669 0%, #f6f7f2 100%);
  color: white;
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3); /* Shadow on left side */
  overflow-y: auto;
}

.right-panel.open {
  right: 0; /* Slides in from RIGHT */
  padding: 0 10px 0 10px;
}

.panel-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-panel-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-panel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.panel-content {
  padding: 20px;
}

.setting {
  margin-bottom: 20px;
}

.setting label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.setting input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(15, 23, 42, 0.22);
  color: #f8fafc;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.setting input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.setting input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.setting input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.setting input[type="number"]::-webkit-inner-spin-button,
.setting input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#saveSettingsBtn {
  width: 100%;
  padding: 14px 16px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f4f5 0%, #dfe7ff 100%);
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

#saveSettingsBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

#saveSettingsBtn:active {
  transform: translateY(0);
}

/* Overlay */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Settings Button */
.settings-button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #edeef5 0%, #e7e6e8 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.settings-button::before {
  content: "⚙️";
  font-size: 25px;
}

.settings-button:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Main content adjustments */
.main-content {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding: 80px 20px 20px; /* Increased top padding to make room for button */
  transition: margin-left 0.3s ease;
}

/* .wrapper {
        position: relative;
        min-height: 100vh;
      }*/

/* Responsive adjustments */
@media (max-width: 480px) {
  .header-actions {
    top: 15px;
    right: 15px;
  }

  .main-content {
    padding: 70px 15px 20px;
  }
}
