*{
    background-color: var(--Light-grey);
}

body{
    font-family: "Poppins",sans-serif;
    display: flex;
    min-height: 100vh;
}

: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%);
}

main {
    width: max-content;
    margin: auto;
    height: fit-content;
    background-color: var(--White);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 6rem;
    padding: 3rem;
}

 .date-container {
    background-color: var(--White);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap:  2rem;
    padding-inline-end: 5rem;
}

.date-container>*{
    background-color: var(--White);
    height: 6rem;
}

.day-container {
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.month-container {
    display: grid;
    grid-template-rows: 1fr 1fr;
    background-color: var(--White);
}

.year-container {
    display: grid;
    grid-template-rows: 1fr 1fr;
    background-color: var(--White);
}

input {
    width: 7rem;
    background-color: var(--White);
    border: 2px solid var(--Off-white);
    border-radius: 0.5rem;
    height: 3rem;
    font-size: 1.5rem;
    text-align: left;
    text-indent: 1rem;
    color: var(--Off-black);
}

label {
    background-color: var(--White);
    color: var(--Smokey-grey);
    font-weight: 700;
    height: max-content;
}

img {
    background-color: var(--Purple);
    border-radius: 50%;
    padding: 0.5rem;
    width: 2.5rem;
}

.arrow{
    display: flex;
    background-color: var(--White);
    margin-top: 0.5rem;
}
hr {
    width: 100%;
    height: 1px;
    align-self: center;
    border-width: 0;
    color: var(--Smokey-grey);
}

.result-container{
    max-width: fit-content;
}

.result-container>*{
    background-color: var(--White);
    font-size: 3rem;
    display: flex;
    padding: 0;
    margin: 0;
}

h2 {
    background-color: transparent;
    padding: 0;
    margin: 0;
    line-height: 120%;
    font-weight: 800;
    font-size: larger;
}

p {
    background-color: var(--White);
}

.under-day,.under-month,.under-year {
    color: var(--Light-red);
    font-size: 0.6rem;
}

button{
    border: none;
    background-color: transparent;
    border-radius: 50%;
    padding: 0px;
}

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

.days,.months,.years {
    color: var(--Purple);
}

/*Mobile Responsive*/
@media screen and (max-width:40rem) {
    main{
        width: 100vw;
        padding: 2rem;
    }

    .date-container{
        column-gap: 1rem;
        padding-inline-end: 0;
    }

    .arrow{
        position: relative;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .button{
        position: absolute;
        align-self: center;
        display: flex;
        left: 44%;
    }

    input{
        width: 5.5rem;
        text-indent: .5rem;
    }

    h2{
        font-weight: 700;
    }
}