body{
    width:100%;
    min-height: 100vh;
    position: relative;
}
img{
    max-width: 100%;
}
section{
    width:100%;
    height:100vh;
}
p{
    padding:5%;
}
section.accueil{
    width:100%;
    height:100vh;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
}
div.accueil{
    margin-right: auto;
    margin-left: auto;
    width:auto;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
div.bg{
    position: absolute;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
}

#play{
    position: relative;
}
#play>h2, #infos h3{
    padding-top: 3%;
    margin:0;
    width: 100%;
    display: block;
    text-align: center;
}
#play>div.content{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
}
div.choix{
    position: relative;
    width:400px;
    height:600px;
}
nav{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
}
nav>img{
    width:50px;
    height: 50px;
    cursor: pointer;
    z-index: 1;
}
nav>img:first-of-type{
    width:0;
}
div.choix>ul{
    position: absolute;
    bottom:0;
    width:100%;
    height: 100%;
    padding:0;
    margin:0;
    text-align: center;
    overflow: hidden;
}
div.choix li{
    width:100%;
    position: absolute;
    left:100%;
    transition: ease 0.5s;
}
div.choix li.active{
    left:0;
}
div.choix li>img{
    width:90%;
    height:auto;
}
.content>aside{
    width:500px;
    height:100%;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}
aside>img{
    margin-bottom:5vh;
    margin-top:5vh;
}
@media all and (max-width: 900px) {
    div.choix{
        height: 400px;
    }
    .content>aside{
        flex-flow: column-reverse;
        justify-content: flex-end;
        margin-top:5%;
    }
    img#logo{
        height:6vh;
        width:auto;
    }
}

div.background, #infos{
    visibility: hidden;
}
div.background{
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
}
#infos{
    position: absolute;
    top:10%;
    right:10%;
    width:80%;
    height:80%;
    max-width: 500px;
}
div#infos>div, div#infos>form{
    display: none;
}
div#infos > form.active, div#infos > div.active{
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    align-items: center;
    height: 80%;
    width: 80%;
    margin-right: auto;
    margin-left: auto;
}
#infos >form>div{
    display: flex;
    flex-flow: row wrap-reverse;
    justify-content: space-around;
    align-items: center;
}

iframe{
    width:100%;
    height:100vh;
    background-color: #101010;
}
section.choix{
    display: none;
    position: fixed;
    top:0;
    left:0;
    z-index: 1;
    background: #101010;
    width:100%;
    height: 100vh;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
}
section.choix form{
    height:100%;
    margin:0;
    overflow: hidden;
}
section.choix figure{
    position: relative;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
}
section.choix figure>img{
    width: 100%;
    height:auto;
    opacity: 0.5;
}
section.choix figure>figcaption {
    text-align: center;
    position: absolute;
    font-family: "Futura", sans-serif;
    font-size:2rem;
}
section.choix button{
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height:100%;
    opacity: 0;
    z-index: 2;
    padding:0;
    border:none;
}
div.infos, section.choix input, div#fin{
    display: none;
}
aside p{
    padding:0;
}

/*stats*/
body#fin {
    width: 100vw;
    margin: 0;
    background-color: #101010;
    color: white;
    font-family: "Futura", sans-serif;
}
#stats{
    z-index: 2;
    display: flex;
    background-color: #101010;
    width: 100vw;
    margin: 0;
    justify-content: space-between;
}
body#fin aside > h3 {
    font-size: 3em;
    margin-left: 30px
}

body#fin aside > p {
    padding: 20px;
    margin-left: 50px;
}
body#fin p{
    padding-bottom:0;
}

body#fin aside {
    float: left;
    width: 50vw;
    align-self: center;
}

body#fin aside > img {
    width: 60%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body#fin .stats {
    display: flex;
    flex-direction: column;
    height: 60vh;
    width: 40vw;
    align-self: center;
}

body#fin section.stats > div.box {
    align-self: center;
    width: 70%;
    line-height: 40px;
    text-align: left;
    padding-right: 30px;
    background-color: rgba(102, 24, 88, 0.84);
}

body#fin section.stats > div.box > .progress-bar {
    align-self: center;
    height: 100%;
    background-color: #CC37B3;
    color: white;
    text-align: left;
    padding-left: 30px;
}

body#fin .progress-bar > .info {
    display: none;
}

body#fin .stats > h3 {
    font-size: 1.8em;
    transform: translate(-20%, -10%);
}
body#fin button{
    background-color: #CC37B3;
    color: white;
    text-decoration: white;
    width: auto;
    border-radius: 50px;
    text-align: center;
    padding: 20px;
    border:none;
    display: block;
    margin: 10% auto;
}

#logo {
    position: absolute;
    right: 2vw;
    top: 4vh;
    width: 10vw;
}
@media screen and (max-width: 1400px) {
    body#fin .stats {
        align-self: center;
    }
}


@media screen and (max-width: 1000px) {
    div#stats {
        flex-wrap: wrap;
    }

    body#fin aside, body#fin .stats {
        margin-top:5vh;
        width: 100vw;
    }

    body#fin .stats > h3 {
        font-size: 1.5em;
        transform: translate(0, 0);
    }

    body#fin .stats > p {
        margin-left: 30px;
    }
}
