@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,700;1,400;1,800&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: inherit;
  color: inherit;
}

body {
  background: hsl(0, 0%, 94%);
  display: grid;
  height: 100vh;
  margin: 0 40px;
}

main {
  background: hsl(0, 0%, 100%);
  place-self: center;
  padding: 40px;
  border-radius: 10px 10px 80px 10px;
  box-shadow: 1px 1px 5px 1px #ccc1;
  font-family: "Poppins", sans-serif;
}

img {
  max-width: 100%;
}

ul {
  display: flex;
  gap: 20px;
  margin-right: 120px;
}
form li {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

form li label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: hsl(0, 1%, 44%);
  margin-bottom: 5px;
}

form li input {
  color: hsl(0, 0%, 8%);
  font-size: 1.5rem;
  padding: 5px 10px;
  border: 1px solid hsl(0, 0%, 94%);
  border-radius: 5px;
  max-width: 150px;
  width: 100%;
}

form li input:focus {
  outline: none;
  border: 1px solid hsla(259, 100%, 65%, 0.6);
}
form li p {
  display: none;
}

.btn {
  display: flex;
  align-items: center;
}

.btn button {
  background: hsl(259, 100%, 65%);
  border: none;
  border-radius: 50%;
  padding: 15px;
  width: 62px;
  height: 60px;
  cursor: pointer;
  transition: 0.4s;
}
.btn::before {
  content: "";
  display: flex;
  background: hsl(0, 0%, 94%);
  width: 100%;
  height: 1px;
}

button:hover,
button:focus {
  background: #000;
}

.idade h1 {
  font-weight: 800;
  font-style: italic;
  font-size: 4rem;
  line-height: 1.1;
}

.idade span {
  color: hsl(259, 100%, 65%);
}
.input-invalido,
.input-null {
  position: relative;
}

.input-invalido label,
.input-null label {
  color: hsl(0, 100%, 67%);
}
.input-invalido input,
.input-null input {
  border: solid 1px hsl(0, 100%, 67%);
}

.input-invalido p,
.input-null p {
  position: absolute;
  color: hsl(0, 100%, 67%);
  top: 100%;
  font-size: 0.65rem;
  margin-top: 5px;
  width: max-content;
  font-style: italic;
  font-weight: 400;
}

.input-invalido p.ativo,
.input-null p.ativo {
  display: block;
}
