* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  background: hsl(0, 0%, 94%);
  height: 100vh;
  position: relative;
}

.container {
  width: 45%;
  padding: 3rem 2.5rem;
  background: hsl(0, 0%, 100%);
  border-radius: 2rem 2rem 10rem 2rem;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#ageForm{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

.ageForm__item {
  display: flex;
  align-items: center;
}

.ageForm__item label {
  display: block;
  font-size: 1rem;
  color: hsl(0, 1%, 44%);
  text-transform: uppercase;
  font-weight: 700;
}

.ageForm__item .ageForm__group {
  margin: 0 1rem;
}

.ageForm__group input {
  width: 10rem;
  padding: 0.8rem;
  font-size: 1.8rem;
  color: #000000;
  font-weight: 600;
  border-radius: 0.5rem;
  outline-color: hsl(259, 100%, 65%);
  border: 0.1rem solid hsl(0, 0%, 86%);
}

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

input[type='number'] {
  -moz-appearance: textfield;
}

.ageForm__group input::placeholder {
  font-size: 1.7rem;
  font-weight: 700;
  color: hsl(0, 2%, 64%);
}

.ageForm__item--submit {
  height: 7rem;
}

.ageForm__item--icon-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  height: 80%;
  border-radius: 50%;
  background-color: hsl(259, 100%, 65%);
  cursor: pointer;
}

.ageForm__item--icon-arrow button {
  border: 0;
  background: transparent;
}

hr {
  width: 100%;
  border: none;
  height: 0.01rem;
  background-color: hsl(0, 0%, 86%);
}

/* hr */
.leftHorizon {
  display: none;
}

.display h2 {
  font-size: 4.5rem;
  font-style: italic;
  white-space: nowrap;
  font-weight: 900;
}

.yearDisplay,
.monthDisplay,
.dayDisplay {
  color: hsl(259, 100%, 65%);
  margin-right: 1rem;
}

.author{
  position: absolute;
  bottom: 5px;
}

/* screens 320 pexels */
@media (max-width: 320px) {
  .display h2{
    font-size: 2.5rem;
  }
}
/* screens 799 pexels */
@media (max-width: 799px) {

  body {
    margin: 0 0.8rem;
  }

  .container {
    width: 100%;
    padding: 3rem 1.8rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  }

  #ageForm {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ageForm__item .ageForm__group {
    margin: 0 0.5rem;
    text-align: start;
  }

  .ageForm__item label {
    color: hsl(0, 0%, 45%);
    font-weight: 700;
  }

  .ageForm__group input {
    width: 5rem;
  }

  .ageForm__group input::placeholder {
    font-size: 1.2rem;
    color: hsl(0, 2%, 64%);
    font-weight: 700;
  }

  .ageForm__item--submit{
    width: 100%;
  }

  .ageForm__item--icon-arrow {
    width: 20%;
    height: 50%;
    padding: 2.2rem;
  }

  .display h2 {
    font-size: 2rem;
  }

  .leftHorizon {
    display: block;
  }

  .author{
    display: none;
  }
}

/* screens desktop 1399 pexels */
@media (max-width: 1399px) {
 
  #ageForm {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ageForm__item .ageForm__group {
    margin: 0 0.2rem;
  }

  .ageForm__item--submit{
    width: 100%;
  }

  .ageForm__item--icon-arrow {
    width: 20%;
    height: 50%;
    padding: 2rem;
  }

  .leftHorizon {
    display: block;
  }
}

/* screens desktop 1104 pexels */
@media (max-width: 1104px) {
  .ageForm__group input{
    width: 5rem;
  }

  .display h2 {
    font-size: 3rem;
  }
}
