*{
    margin: 0;
    padding: 0;
}

body{
    background-color: lightgray;
}

#main{
    width: 100%;
    display: flex;
    justify-content: center;
}

header{
    width: 40%;
    background-color: white;
    margin-top: 75px;
    margin-bottom: 75px;
    padding: 50px;
    border-radius: 25px 25px 100px 25px;
}

#birth{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

#birth div{
    margin-right: 50px;
    margin-bottom: 50px;
}

#birth p{
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: hsl(0, 1%, 44%);
    letter-spacing: 2px;
}

#birth #error{
    color: red;
    font-size: 10px;
    font-weight: normal;
    padding-top: 5px;
    text-align: center;
}

form input{
    width: 75px;
    height: 60px;
    border: 1px;
    border-radius: 10px;
    border-color: hsla(0, 1%, 44%, 0.358) ;
    border-style: solid;
    font-size: 28px;
    font-weight: bolder;
    margin-top: 5px;
    padding-left: 20px;
    padding-right: 20px;
}

form input:focus{
    outline: none;
    border-color: hsl(259, 100%, 65%);
}

#bouton{
    display: flex;
    justify-content: flex-end;
    margin-top: -37px;
}

.valider{
    background-color: hsl(259, 100%, 65%);
    border-radius: 100%;
    width: 75px;
    height: 75px;
    z-index: 100;  
}

.valider:hover{
    background-color: black;
    cursor: pointer;
}

.valider img{
    margin-left: 14px;
    margin-top: 14px;
}

.ligne{
    background-color: hsla(0, 1%, 44%, 0.358);
    height: 1px;
    width: 95%;
    border-radius: 100%;
}

.calculed{
    display: flex;
    justify-content: flex-start;
}

.calculed p{
    font-family: "Poppins", sans-serif;
    font-size: 78px;
    font-weight: bolder;
}

.purple{
    color: hsl(259, 100%, 65%);
    text-wrap: nowrap;
}

.attribution{
     font-size: 11px; text-align: center; 
}

.attribution a{ 
    color: hsl(228, 45%, 44%); 
}

@media only screen and (max-width:1000px){
    header{
        width: 75%;
    }

    #birth p{
        font-size: 12px;
    }

    form input{
        margin-right: -30px;
        width: 40px;
        height: 50px;
        font-size: 14px;
    }

    #birth #error{
        text-align: left;
        padding-left: 0;
        font-size: 8px;
        padding-left: 5px;
    }

    #bouton{
        justify-content: center;
    } 

    .calculed p{
        font-size: 50px;
    }
}