@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,800&display=swap');
*, *::after, *::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
: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%);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 15px;
    background-color: var(--Off-white);
    min-height: 100vh;
    width: 100%;
}
label {
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--Smokey-grey);
    
}
h1 {
    font-size: 100px;
    font-weight: 800;
    font-style: italic;
}
input {
    font-size: 32px;
    font-weight: 700;
    width: 80%;
    height: 70px;
    padding-left: 30px;
    border-radius: 10px;
    border: 1px solid var(--Light-grey);
    cursor: pointer;
}
input:hover, input:focus {
    border: 1px solid var(--Purple);
    outline: 1px solid var(--Purple);
}
.error-msg, .valid-error, .valid-date-error {
    display: none;
    font-size: 11px;
    font-style: italic;
    font-weight: 400;
    color: var(--Light-red);
    margin-top: 5px;
}

main {
    padding: 50px;
    background-color: var(--White);
    width: 60%;
    border-radius: 20px;
    border-bottom-right-radius: 30%;
    margin-top: 80px;
}
.date {
    display: flex;
    width: 80%;
    align-items: center;
}
.d-m-y {
    display: flex;
    flex-direction: column;
}
.flex-divider-arrow {
    display: flex;
    align-items: center;
}

.divider {
    display: block;
    width: 80%;
    height: 1px;
    border: 1px solid var(--Off-white);
}
#arrow-button {
    border-radius: 50%;
    width: 95px;
    height: 95px;
    border: none;
    background-color: var(--Purple);
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
#arrow-button:hover {
    background-color: var(--Off-black);

}
.age-calculator {
    display: flex;
    flex-direction: column;
    line-height: 110px;
}
.dashes {
    color: var(--Purple);
}


.attribution { 
    font-size: 13px; 
    text-align: center; 
    margin-top: 60px;
}
.attribution a { 
    color: var(--Purple); 
}

/* media queries*/
@media screen and (max-width: 1000px) {
    h1 {
        font-size: 80px;
    }
    input {
        font-size: 28px;
        padding-left: 10px;
    }
    main {
        width: 70%;
    }
}
@media screen and (max-width: 800px) {
    h1 {
        font-size: 60px;
    }
    input {
        font-size: 24px;
       
    }
    main {
        width: 90%;
        padding: 30px;
    }
}
@media screen and (max-width: 400px) {
    h1 {
        font-size: 50px;
    }
    input {
        width: 85%;
        font-size: 20px;
        padding-left: 15px;
        height: 55px;
    }
    label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    main {
        width: 90%;
        padding: 50px 20px;
        
    }
    .date {
        width: 100%;
        margin-bottom: 15px;
    }

    #arrow-button {
       position: relative;
        width: 60px;
        height: 60px;
        z-index: 1;
       left: 40%;
    }
    .divider {
        position: absolute;
        z-index: 1;
    }
    #arrow-button img {
        width: 28px; 
    }
    .age-calculator {
        margin-top: 30px;
        line-height: 60px;
    }
}
