*,
*::before,
*::after {
  box-sizing: border-box; /* Modern box-sizing */
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  -webkit-font-smoothing: antialiased; /* For smoother font rendering on macOS */
  -moz-osx-font-smoothing: grayscale; /* For smoother font rendering on Firefox macOS */
  display: flex; /* Modern flexbox layout */
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  justify-content: center; /* Center items vertically */
}

body,
input {
  display: flex; /* Use flexbox for alignment within these elements if needed */
  font-family: 'Avenir', 'helvetica neue', helvetica, arial, sans-serif;
}

.age-label {
  color: #b0b5b9;
  font-size: 1.2rem;
  line-height: 1;
  margin-left: 2px; /* More consistent margin shorthand */
  margin-top: 0;
  margin-bottom: 0;
}

.count {
  color: #494949;
  margin: 0;
  font-size: 6rem;
  line-height: 1;
  font-weight: 600;
}

.count sup {
  font-size: 2.4rem;
  margin-left: 0.4375rem; /* Converted 7px to rem for better scalability */
}

label {
  display: block;
}

input,
button {
  padding: 0.375rem 0.75rem; /* Using rem for better scalability */
  font-size: 1.5rem; /* Using rem for better scalability */
  appearance: none; /* Standard way to remove default appearance */
  -webkit-appearance: none; /* For older Safari/Chrome */
}

input {
  margin-right: 0.5rem; /* Using rem for better scalability */
  box-sizing: border-box;
  border: 1px solid #ccc; /* More concise border declaration */
  border-radius: 0.25rem; /* Using rem for better scalability */
  background-color: #fff;
  text-transform: uppercase;
}

button {
  outline: none;
  display: block;
  cursor: pointer;
  color: #fff;
  border: none;
  text-transform: uppercase;
  border-radius: 0.25rem; /* Using rem for better scalability */
  background: #FF9419;
  background: linear-gradient(207deg,rgba(255, 148, 25, 1) 1%, rgba(255, 2, 29, 1) 44%, rgba(230, 0, 255, 1) 99%);
  transition: all ease-in-out 0.5s;
}

.form-row {
  padding-top: 0.5rem; /* Using rem for better scalability */
  display: flex; /* Modern flexbox layout */
  flex-direction: row; /* Arrange items horizontally */
  justify-content: center; /* Center items horizontally */
}

.hidden {
  display: none;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #060606;
  }

  .age-label {
    color: #cbcbcb;
  }

  .count {
    color: #ffffff;
  }
}
