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

:root {
  --primary-color: hsl(259, 100%, 65%);
  font-size: 62.5%;
}

body {
  height: 100vh;
  background-color: hsl(0, 0%, 94%);
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  background-color: hsl(0, 0%, 100%);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 5rem;
}

body > main > form{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 2.0rem;
  height: 3.0rem;
  color: hsl(0, 1%, 44%);
  border-bottom: 0.1rem solid hsl(0, 0%, 86%);
  border-radius: 0.1rem;
  position: relative;
}


form div {
  display: flex;
  flex-direction: column;
}

form input {
  width: 3rem;
  border: solid 1px hsl(0, 0%, 86%);
  border-radius: 0.4rem;
  margin-top: 0.2rem;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="number"]:focus {
  outline-color: var(--primary-color);
  cursor: pointer;
}
input[type="number"]:hover {
  cursor: pointer;
}
form button {
  align-self: flex-end;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 5rem;
  background-color: var(--primary-color);
  border-style: none;

  position: relative;
  bottom: -0.7rem;
  left: 7rem;
  background-image: url(../images/icon-arrow.svg);
  background-repeat: no-repeat;
  background-size: 0.8rem;
  background-position: center;

  /* justify-self: flex-end; */
}

form button:hover {
  background-color: black;
  cursor: pointer;
}

main section {
  display: flex;
  flex-direction: column;
}

.result-birth {
  margin: 1rem;
}

.result-birth span {
  font-size: 4.0rem;
  color: var(--primary-color);
}
.result-birth h2 {
  font-weight: bold;
  font-size: 8px;
}

main {
  width: 90%;
  height: 75%;
}
form {
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: 0.1rem;
}
form button {
  bottom: -1.7rem;
  left: -6rem;
}

form input {
  padding-left: 0.5rem;
  width: 2rem;
  height: 1.5rem;
}

.error {
  border-color: red;
  color: red;
}

@media (min-width: 870px) {
  form {
    
    justify-content: flex-start;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
  form label {
    font-size: 1.5rem;
  }
  form input {
    width: 9rem;
    height: 4rem;
    font-size: 3rem;
    margin-bottom: 2rem;
    padding: 2;
  }
  form button {
    top:6.7rem;
    left: 36rem;
    height: 5.5rem;
    width: 5.5rem;
    /* background-image: ;
     */
    background-size: 3rem;
  }
  .result-birth h2, .result-birth span {
    font-size: 6.0rem;
  }
}
@media (max-width: 850px) {
  body{
    width: 100%;
    height: 100%;
    position: absolute;
  }
  main {
    width: 80%;
    height: 70%;
    position: relative;
  }
  form {
    justify-content: center;
    align-items: flex-start;
    width: 90%;
    height: 80%;
  }
  form label {
    font-size: .8rem;
  }
  form input {
    width: 4rem;
    height: 2rem;
    font-size: 1rem;
  }
  form button[type="submit"] {
    width: 3rem;
    height: 3rem;
    top: 2.5rem;
    background-size: 1.6rem;
  }

  .result-birth h2,
  .result-birth span {
    margin-top: 5px;
    font-size:2.0rem;
  }
}


@media (max-width: 375px){


  form{
    width: 80%;
  }
  form button[type='submit']{
    width: 1.8rem;
    height: 1.8rem;
    top:2rem;
    left: 2.0rem;
    justify-self: center;
    background-size: 1.2rem;

  }

  form label {
    font-size: .7rem;
  }
  form input {
    width: 4rem;
    height: 2rem;
    
  }
}
