@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&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
  /* Primary Colors */
  --purple-500: hsl(259, 100%, 65%);
  --red-400: hsl(0, 100%, 67%);

  /* Neutral Colors */
  --white: hsl(0, 100%, 100%);
  --grey-100: hsl(0, 0%, 94%);
  --grey-200: hsl(0, 0%, 86%);
  --grey-500: hsl(0, 1%, 44%);
  --black: hsl(0, 0%, 0%);
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body{
    background-color: var(--grey-100);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container{
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    height: 400px;
    width: 500px;
    border-radius: 1.5rem 1.5rem 10rem 1.5rem;
    padding: 2.5rem;
}

form{
    position: relative;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--grey-200);
    padding-bottom: 1.5rem;
}

label{
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    padding-bottom: 4px;
    font-weight: bold;
}

.date-input{
    width: 85px;
    height: 35px;
    outline: none;
    border: 1px solid var(--grey-200);
    padding-left: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.date-input::placeholder{
    font-weight: 200;
}

.date-input:active{
    border: 1px solid var(--grey-500);
}

.submit-btn{
    position: absolute;
    right: 0;
    bottom: -1.5rem;
    border: none;
    border-radius: 50%;
    padding: 10px;
    background-color: var(--purple-500);
    cursor: pointer;
}

.submit-btn:active{
    background-color: black;
}

.submit-btn img{
    width: 30px;
    height: 27px;
}

.age-results{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 50px;
    padding-top: 2rem;
}

.result-value{
    color: var(--purple-500);
    font-size: 60px;
    font-weight: 800;
    font-style: italic;
}
.result-label{
    font-size: 50px;
    font-weight: 800;
    font-style: italic;
}

.error-msg{
    padding-top: 5px;
}
@media (max-width: 400px){
    .submit-btn{
        right: 40%;
    }
    form{
        padding-bottom: 3rem;
    }
}

