/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:wght@700&family=Montserrat:ital,wght@0,100;0,200;1,100&display=swap');

body {
    background-image: url("Images/fond.jpg");
    background-color: black;
    background-size: 100%;
    background-repeat: no-repeat;
    color: white;
    margin: 50px;
    text-align: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-family: 'Ibarra Real Nova', serif;
}

#presentation {
    width: auto;
    padding: 10px;
    justify-content: space-around;
    margin: 20px 5%;

    @media screen and (max-width: 470px) {
        flex-direction: column;
    }

}

.question {
    color: red;
    font-size: 300%;
    text-shadow: 0;
    text-shadow: 0 0 0.5em red;
}

.affiche {
    margin-top: 15px;
}

.restau{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas:
        'a b b';
}
.restau1{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas:
        'a a b';
}
.rest1{
    width: 100%;
    grid-area: a;
}
.rest2{
    width: 100%;
    grid-area: b;
}

.restau{
    margin: auto;
}

.image{
	background-size : contain;
	height:350px;
	width:250px;
	margin: 30px;
}

.piece {
    width: auto;
    margin: 40px 10px;
    background-color: #cf0000;
    border-radius: 10px;
    box-shadow: 0px 0px 20px 10px #cf0000;
    padding: 10px;
    text-align: center;
}

#image {
    width: 80%;
    border-radius: 10px;
    position: relative;
}

.piece{
   position: relative;
}

#esp{
    background: linear-gradient(blue,violet);
    border: 0 ;
    border-radius: 15px ;
    width: 50%;
    padding: 5% 0;
    transition: transform .15s;
    font-size: 150%;
    grid-area: c;
}
#esp:hover {
    -ms-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    transform: scale(1.5);}

.jeux {
    position:absolute;
    top:0px;
    left:0px;
    width: 50%;
    animation-duration: 7s;
    animation-name: slidein;
    animation-iteration-count: infinite;
    transition: transform .15s;
  }
.jeux:hover{
    -ms-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
}
  @keyframes slidein {
    from {
        margin-left:50%;
    }
    25% {
        margin-left: 0%;
      }
    50% {
        margin-left:50%;
        margin-top:90% ;
    }
    75%{
        margin-left:0%;
        margin-top:0% ;
    }
    to{
        margin-left:50%;
    }
  }

.encart {
    margin: 40px 10px;
    padding: 10px;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 3px 5px #fff;
}
.encart img{
    transition: transform .2s;
    border-radius: 20px;
    position: relative;
}
.encart img:hover {
    -ms-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

a {
    color: red;
    transition: all .5s ease 0s; 
}

a:hover{
    color:blue
}

#surprise {
    background-color: black;
    color: white;
    font-size: 250%;
    margin-top: 20px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: all .5s ease 0s; 
}
#surprise:hover{
    background-color:white;
    color:black
}

input,
textarea {
    border-radius: 5px;
}

#piece0{
    position: relative;
    margin: auto;
}

#ouverture {
    position: relative;
    margin: auto;
    display: grid;
    grid-template-columns:2 ;
    grid-template-rows: 2;
    grid-template-areas: 'a b';
}
#ouv1{
    grid-area:a ;
}
#ouv2{
    grid-area:b ;
}
@media screen and (max-width: 450px) {
    .affiche {
        display: inline;
        align-items: center;
    }
    #piece0 {
        margin: 20px;
    }
    body {
        margin: 0;
    }

    .piece {
        margin: 20%
    }

    #food {
        width: 80%;
        height: auto;
    }
    .encart img{
        width: auto;
    }
}
#cekoi1{
    width: 75%;
    max-width: 500px;
}

@media screen and (min-width: 450px) {
    /* .affiche {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        grid-column-gap: 25px;
        grid-row-gap: 25px;
        grid-template-areas:
            'a b'
            'c d'
            'e f'
            'g h'
            'i j';
    } */

    .piece {
        margin: 50px;
    }

    #piece0 {
        width: auto;
    }
    
    .encart img{
        width: 70%;
}}

@media screen and (min-width: 750px) {
    .affiche {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 25px;
        grid-row-gap: 25px;
        grid-template-areas:
            'a b c'
            'd e f'
            'g h i';
    }
    
    .piece {
        margin: 10px;
    }
    #piece1 {
        grid-area: a;
    }

    #piece2 {
        grid-area: b;
    }

    #piece3 {
        grid-area: c;
    }

    #piece4 {
        grid-area: d;
    }

    #piece5 {
        grid-area: e;
    }

    #piece6 {
        grid-area: f;
    }

    #piece7 {
        grid-area: g;
    }

    #piece8 {
        grid-area: h;
    }

    #piece9 {
        grid-area: i;
    }
    #piece10 {
        margin: 30px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 25px;
        grid-row-gap: 25px;
        grid-template-areas:
            'j k k';
    }
    #spect {
        grid-area: j;
    }
    #cekoi{
        grid-area: k;
    }
    #piece0 {
        width: 60%;
        margin: 50px auto;
    }
    .encart img{
        width: 40%;
    }
}