@import url(./font.css);

:root {
    --Purple: hsl(259, 100%, 65%);
    --Light-red: hsl(0, 100%, 67%);
    --White: hsl(0, 0%, 100%);
    --Off-white: hsl(0, 0%, 94%);
    --Light-grey: hsl(0, 0%, 86%);
    --Smokey-grey: hsl(0, 1%, 44%);
    --Off-black: hsl(0, 0%, 8%)
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins';
}

.age-calculator-box {
    position: relative;
    top: 8rem;
    left: 30rem;
    width: 50%;
    padding: 2rem;
    border-radius: 20px 20px 10rem 20px;
    box-shadow: 20px 20px 10px var(--Off-white);
}

label {
    font-weight: 700;
    color: var(--Smokey-grey);
    letter-spacing: .5rem;
}

input {
    display: block;
    width: 10rem;
    height: 4rem;
    font-size: 32px;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 2px solid hsla(0, 1%, 44%, 0.405);
    border-radius: 10px;
    font-family: 'Poppins exbold';
}

input:focus, input:hover {
    outline-color: var(--Purple);
}

p {
    color: var(--Light-red);
    font-size: 14px;
    margin-top: .5rem;
    font-style: italic;
    display: none;

}

.header {
    display: flex;
    justify-content: start;
    border-bottom: 2px solid hsla(0, 1%, 44%, 0.405);
    margin: 0 3rem;
}

.input-box {
    margin: 3rem;
}

.day-header {
    margin: 3rem 3rem 3rem 0;
}

.arrow {
    background-color: var(--Purple);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    position: relative;
    left: 53rem;
    bottom: 2.5rem;
}

.arrow:hover {
    cursor: pointer;
    background-color: var(--Off-black);
}

.arrow img {
    padding: 1rem;
    width: 3rem;
    height: 3rem;
}

.result {
    margin: 0 3rem 0 3rem;
}

.result h1 {
    font-size: 5rem;
    font-family: 'Poppins exbold';
    font-style: italic;
}

span {
    font-family: 'Poppins exbold';
    color: var(--Purple);
}


@media screen and (max-width: 375px) {
    * {
        max-width: 375px;
    }

    .age-calculator-box {
        top: 10rem;
        left: 0;
        width: 370px;
        margin: .1rem;
        padding: 0;
    }

    .header {
        margin: 0;
        padding: 1rem 0 5rem 0;
    }

    .input-box {
        margin: .5rem;
    }

    input {
        width: 6rem;
        padding: 0 0 0 .5rem;
        font-size: 24px;
    }

    .arrow {
        left: 9rem;
        bottom: 2.5rem;
    }

    .result {
        margin: 0 2rem 0 2rem;
    }

    .result h1 {
        font-size: 3.5rem;
    }
}