@font-face {
    font-family:'Allura', cursive;
    src: url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
}

html {
    font-size: 62.5%;
    font-family:'Allura', cursive;
    background-color: rgb(224, 240, 216);
}

* {
    box-sizing: border-box;
}

body {
    font-size: 1.6rem;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;   
} 

main {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* mobile fisrt */
h1 {
    font-size: 4em;
    margin: 2vh auto;
    text-align: center;
}

#carte {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* le bouton changer de recette */
#change {
    line-height: 5rem;
    border: 12px double rgb(224, 240, 216);
    border-radius: 3vh;
    cursor: pointer;
    background-color: rgb(90, 115, 167);
    color:rgb(224, 240, 216);
    font-family:'Allura', cursive;
    font-size: 3.5rem;
    width: 80vw;
   
}


img {
    width: 100%;
    height: auto;
    margin-top: 3rem;
}

#texte {
    padding-left: 4vw;
    width: 90%;
}

#nomRecette {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 5rem;
    font-weight: bolder;
    text-align: center;
}

#preparation {
    width: 90%;
    margin: 4rem 0;
}

h3 {
    font-size: 3rem;
    text-decoration: underline;
    margin: 0;
}

p {
    font-size: 3rem;
    text-align: justify;
    margin: 0;
}

p:not(#preparation p) {
    padding-left: 5rem;
}

.invisible {
    display: none;
}

/* version tablette */
@media screen and (min-width: 768px) {
    #change {
        width: 50vw;
    }

    #imgText img {
        border-radius: 15%; 
    } 
}


/* version desktop  */
@media screen and (min-width: 1024px) {
    h1 {
        font-size: 5sem;
    }

    #change {
        font-size: 4rem;
        width: 20%;
    }

    #imgText {
        display: flex;
        flex-direction: row;
        margin: 2rem auto;
        width: 80%
    }

    #imgText img {
        width: 40%;
    }

    #nomRecette {
        margin-top : 3rem !important; 
        font-size: 8rem;
        text-align: left;
    }


}