@font-face {
    font-family: 'sunshine';
    src: url('fonts/sunshine.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'msyi';
    src: url('fonts/msyi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*
peche : #ea997e

*/


body,
h1,
h2,
h3,
h4,
h5,
h6,
button {
    font-family: 'msyi', sans-serif;
    color: white
}

body,
html {
    height: 100%;
}

body {
    background-color: #ea997e;
    font-size: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#mainContainer {

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.5em;
    justify-content: space-around;
    width: 90%;
    height: 90%;
}

#name {
    background-color: white;
    width: 900px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;


}

#name span {
    color: #ea997e;
    font-size: 5em;
    font-family: 'sunshine';
}

#profession {
    height: 15%;
    font-size: 7em;

}

#punchline {
    height: 20%;
    font-size: 4em;
    display: flex;
    align-items: center;
}

#infos {
    justify-self: flex-end;
    height: 30%;
    width: 80%;
    display: flex;
    justify-content: space-around;
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 40px;
}

#infos #places .places {
    text-decoration: underline;
    cursor: pointer;
}


#infos #contact a {
    color: white;

}

/* Minimum aspect ratio */
@media (min-aspect-ratio: 16/9) {
    #infos {
        flex-direction: row;
    }
}

/* Maximum aspect ratio */
@media (max-aspect-ratio: 2/3) {
    #infos {
        flex-direction: column;
    }
}

/* Exact aspect ratio, put it at the bottom to avoid override*/
@media (aspect-ratio: 1/1) {
    #infos {
        flex-direction: row;
    }
}

@media screen and (max-width: 1700px) {
    #profession {
        font-size: 4.8em;
    }



}

@media screen and (max-width: 1500px) {


    #infos {
        width: 90%;
        font-size: 1.8em;
        margin-top: 20px;
    }

}

@media screen and (max-width: 1200px) {

    #name {
        height: 100;


    }

    #name span {

        font-size: 4em;
    }

    #profession {
        font-size: 3.9em;
    }

    #infos {
        width: 90%;
        font-size: 1.4em;
        margin-top: 10px;
    }

}

@media screen and (max-width: 910px) {

    #mainContainer {
        width: 95%;
    }

    #name {
        height: 100;
        width: 90%
    }

    #name span {

        font-size: 3.5em;
    }

    #profession {
        font-size: 3em;
    }

    #infos {
        width: 90%;
        font-size: 1.3em;
    }

}

@media screen and (max-width: 750px) {


    #profession {
        font-size: 2.5em;
    }

    #infos {
        width: 90%;
        font-size: 1.2em;
    }

}

@media screen and (max-width: 630px) {


    #profession {
        font-size: 2.0em;
    }


}

@media screen and (max-width: 500px) {

    #name {
        height: 85px;
        width: 95%
    }

    #name span {

        font-size: 2.5em;
    }

    #profession {
        font-size: 1.5em;
    }

    #infos {
        width: 90%;
        font-size: 1em;
        margin-top: 0px;
    }

}