@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Regular.ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Italic.ttf");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Bold.ttf");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-BoldItalic.ttf");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-ExtraBold.ttf");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-ExtraBoldItalic.ttf");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

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

body {
  font-family: "Poppins", sans-serif;
}

#main-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: hsl(0, 0%, 86%);
}

#content {
  height: 470px;
  width: 540px;
  display: flex;
  flex-direction: column;
  background-color: hsl(0, 100%, 100%);
  position: relative;
  padding: 30px;
  border-radius: 15px 15px 120px 15px;
}

#age-form {
  display: flex;
  flex-direction: column;
}

#form-container {
  display: flex;
  gap: 25px;
}

#submit-div {
  display: flex;
  align-items: center;
}

#submit-div hr {
  width: 100%;
}

#btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50%;
  padding: 14px;
  background-color: hsl(259, 100%, 65%);
  cursor: pointer;
}

#btn:hover {
  background-color: hsl(0, 0%, 0%);
}

label {
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: hsl(0, 1%, 44%);
}

.input-div {
  display: flex;
  flex-direction: column;
}

input {
  width: 100px;
  height: 45px;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid hsl(0, 0%, 86%);
  font-weight: 750;
  font-size: large;
  letter-spacing: 1px;
  border-radius: 5px;
  padding: 16px 8px;
}

input:focus {
  outline: 1px solid hsl(259, 100%, 65%);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

hr {
  border-top: 1px;
  border-color: hsl(0, 0%, 86%);
}

img {
  height: 30px;
}

p {
  font-size: 64px;
  font-style: italic;
  font-weight: 800;
}

span {
  color: hsl(259, 100%, 65%);
  font-style: italic;
  font-weight: 800;
  margin-right: 2px;
}

#day-error {
  color: hsl(0, 100%, 67%);
  font-size: xx-small;
  font-style: italic;
  font-weight: 400;
}

#month-error {
  color: hsl(0, 100%, 67%);
  font-size: xx-small;
  font-style: italic;
  font-weight: 400;
}

#year-error {
  color: hsl(0, 100%, 67%);
  font-size: xx-small;
  font-style: italic;
  font-weight: 400;
}

@media screen and (max-width: 600px) {
  #content {
    width: 360px;
  }

  label {
    font-size: 8px;
  }

  input {
    width: 80px;
    font-size: medium;
  }

  p{
    font-size: 56px;
  }

  #form-container{
    margin-bottom: 40px;
    gap: 0;
    justify-content: space-between;
  }

  #submit-div{
    position: relative;
  }

  #btn{
    position: absolute;
    padding: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }

  #output{
    margin-top: 40px;
  }

}
