/* Base font size setup using rem units for scalability */
html {
  font-size: 100%; /* 16px default browser font size */
  line-height: 1.5;
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in iOS */
}

/* Body and common text styling */
body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  color: #222;
  background-color: #fff;
  margin: 0;
  padding: 0;
  font-size: 1rem; /* 16px */
}

/* Headings with relative font sizes */
h1 {
  font-size: 5vmin; /* ~36px */
}
h2 {
  font-size: 4vmin; /* ~30px */
}
h3 {
  font-size: 3vmin; /* ~24px */
}
h4 {
  font-size: 2vmin; /* ~20px */
}
h5 {
  font-size: 1vmin; /* ~18px */
}
h6 {
  font-size: 0.85vmin; /* ~16px */
}

/* Paragraphs and text */
p {
  font-size: 2vmin;
  margin: 1em 0;
}

/* Responsive text adjustments with media queries */
@media (max-width: 768px) {
  html {
    font-size: 93.75%; /* ~15px */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.375rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 87.5%; /* ~14px */
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}
  
  #stopwatch {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  #counter {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  input[type="number"] {
    font-size: 16px;
    padding: 5px;
    margin-right: 10px;
  }
  
  button {
    font-size: 16px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
  }
  
  button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  