@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
body {
  box-sizing: border-box;
  font-family: "Poppins-Regular", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: hsl(0, 0%, 94%);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "YoungSerif", sans-serif;
}

hr {
  height: 1px;
  border: none;
}

a {
  text-decoration: none;
}

.bold {
  font-weight: bold;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  min-height: 100vh;
  overflow-y: hidden; /* Prevent horizontal scrolling */
  padding-inline: 3.125rem;
}
@media (max-width: 767px) {
  body {
    padding-inline: 1.875rem;
  }
}
@media (max-width: 600px) {
  body {
    padding-inline: 1.25rem;
  }
}

.error-message {
  color: rgb(255, 87, 87);
  font-family: "Poppins", sans-serif;
  font-style: italic;
  position: absolute;
  font-size: 0.6875rem;
  bottom: 1.5625rem;
}
@media (max-width: 767px) {
  .error-message {
    bottom: 2.5rem;
    font-size: 0.5rem;
  }
}
@media (max-width: 600px) {
  .error-message {
    bottom: 2.1875rem;
    font-size: 0.4375rem;
  }
}

.age-calc-box {
  width: 52.5rem;
  height: 40rem;
  background-color: hsl(0, 0%, 100%);
  border-radius: 25px;
  border-bottom-right-radius: 25%;
  padding: 3.125rem;
  overflow: hidden;
}
@media (max-width: 767px) {
  .age-calc-box {
    width: 31.25rem;
    height: 31.25rem;
    padding: 1.25rem 2.5rem;
  }
}
@media (max-width: 600px) {
  .age-calc-box {
    width: 23.75rem;
    height: 21.875rem;
    padding: 0rem 1.875rem;
  }
}
.age-calc-box .dob__form {
  position: relative;
  height: 11.875rem;
  border-bottom: 1px solid hsl(0, 0%, 86%);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
}
@media (max-width: 767px) {
  .age-calc-box .dob__form {
    height: 11.25rem;
  }
}
@media (max-width: 600px) {
  .age-calc-box .dob__form {
    height: 10rem;
  }
}
.age-calc-box .dob__form .dob__form-fields-container {
  width: 100%;
  display: flex;
  gap: 1.25rem;
}
.age-calc-box .dob__form .dob-form__field {
  display: flex;
  flex-direction: column;
}
.age-calc-box .dob__form .dob-form__field .dob-form__label {
  text-transform: uppercase;
  letter-spacing: 0.1875rem;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 0.8125rem;
  color: hsl(0, 1%, 44%);
  padding-bottom: 0.5rem;
}
.age-calc-box .dob__form .dob-form__field .dob-form__label.label-error {
  color: rgb(255, 87, 87);
}
.age-calc-box .dob__form .dob-form__field .dob-form__input {
  position: relative;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  padding: 0.75rem;
  height: 4.375rem;
  width: 9.375rem;
  outline: none;
  border: 1px solid hsl(0, 0%, 86%);
  font-size: 1.5625rem;
  border-radius: 5px;
}
@media (max-width: 767px) {
  .age-calc-box .dob__form .dob-form__field .dob-form__input {
    font-size: 1.25rem;
    height: 3.75rem;
    width: 7.1875rem;
  }
}
@media (max-width: 600px) {
  .age-calc-box .dob__form .dob-form__field .dob-form__input {
    height: 3.4375rem;
    width: 5rem;
  }
}
.age-calc-box .dob__form .dob-form__field .dob-form__input.error {
  border-color: rgb(255, 87, 87);
}
.age-calc-box .dob__form .dob-form__submit {
  display: inline-block;
  position: absolute;
  right: 0;
  bottom: -1.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.age-calc-box .dob__form .dob-form__submit:hover {
  transform: translateY(5px);
}
.age-calc-box .dob__form .dob-form__submit-icon {
  width: 3.125rem;
}
.age-calc-box .time-counter {
  font-size: 5rem;
  font-weight: 900;
  font-style: italic;
  font-family: "Poppins", sans-serif;
  margin-top: 0.625rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 767px) {
  .age-calc-box .time-counter {
    font-size: 2.5rem;
    height: 50%;
  }
}
@media (max-width: 600px) {
  .age-calc-box .time-counter {
    font-size: 1.875rem;
    height: 50%;
  }
}
.age-calc-box .time-counter .time-counter__unit .time-counter__value {
  color: #854dff;
  transition: all 0.5s ease-in-out;
}/*# sourceMappingURL=style.css.map */