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;
}

.higlight {
    font-family: 'Ibarra Real Nova', serif;
    color: orange;
    font-size: 300%;
    text-shadow: 0;
    text-shadow: 0 0 0.5em orange;
}
#presentation {
    width: auto;
    padding: 10px;
    justify-content: space-around;
    margin: 35px 5%;
@media screen and (max-width: 470px) {
    flex-direction: column;
}
}
#leximg:hover {
    cursor: pointer;
}
.question {
    color: red;
    font-size: 300%;
    text-shadow: 0;
    text-shadow: 0 0 0.5em red;
}
.affiche {
    margin-top: 15px;
}
label {
    display: inline-block;
    min-width: 10em;
}
.image{
    max-height:622px !important;
    max-width:450px !important;
    margin: 30px;
    width: 70% !important;
    transition: transform .25s;
    border-radius: 10px;
}

.image:hover{
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.piece {
    width: auto;
    margin: 40px 10px;
    background-color: #cf0000;
    border-radius: 10px;
    box-shadow: 0px 0px 20px 10px #cf0000;
    padding: 10px;
    text-align: center;
    position: relative;
}

#myDialog {
    max-width: 70% !important;
    min-width: 70% !important;
}
#myDialog>#lextable {
    border-radius: 10px;
}

#lextable tr:nth-child(odd) {
    color: gold !important;
}
#lextable tr:nth-child(even) {
    color: goldenrod !important;
}
#lextable>tbody>tr {
    vertical-align: top;
}

@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;
}
.encart img{
    transition: transform .2s;
    position: relative;
}
.encart img:hover {
    -ms-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

a {
    color: lightsalmon;
    transition: all .5s ease 0s;
}
a:hover{
    color:lightblue;
}

button[disabled=disabled], button:disabled {
    color: yellow !important;
    background-color: lightgrey !important;
}

table tr td button a:hover {
    color: black !important;
}

button {
    background-color: black;
    color: white;
    font-size: 250%;
    margin-top: 20px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: all .5s ease 0s;
}
button:hover{
    background-color:white;
    color:black
}

input[type=text] {
    min-width: 10em;
    width: 20em;
}
input[type=number] {
    min-width: 10em;
    width: 20em;
}

input[type=submit] {
    background-color: black;
    color: white;
    font-size: 150%;
    margin-top: 20px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: all .5s ease 0s;
}

input[type=submit]:hover{
    background-color:white;
    color:black
}

input,
textarea {
    border-radius: 5px;
}
#accueil {
    width: 40% !important;
}
#compteur {
    font-size:150%;
    position: absolute;
    top: -20px;
    left: 5px;
}

@media screen and (max-width: 450px) {
    .affiche {
        display: inline;
        align-items: center;
    }
    body {
        margin: 0;
    }

    .piece {
        margin: 20%
    }

    #food {
        width: 80%;
        height: auto;
    }
    .encart img{
        width: auto;
    }
    #synopsis,image {
        width:100%;
        clear: both;
    }
    #cekoi1{
        width: 75%;
        max-width: 500px;
        font-size: xx-small;
    }
    #leximg>img {
        height: 200px !important;
    }
    #accueil {
        width: 70% !important;
    }
    .image {
        margin: 10px;
        width: 90% !important;
        transition: transform .25s;
        border-radius: 7px;
    }
    .piece {
        margin: 25px;
    }
    #myDialog {
        max-width: 85% !important;
        min-width: 85% !important;
    }
}
#cekoi1{
    width: 75%;
    max-width: 500px;
    font-size: xxx-large;
}


@media screen and (min-width: 450px) {
    #synopsis {
        min-height: 200px;
    }

    .piece {
        margin: 50px;
    }

    .encart img{
        width: 70%;
    }
}

@media screen and (min-width: 750px) {
    .affiche {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
        grid-column-gap: 25px;
        grid-row-gap: 25px;
        grid-template-areas:
            "a a a"
            "c d e"
            "f g h"
            "i j k"
            "l m n"
            "o o o" !important;
    }

    h1 {
        font-size: xxx-large;
        overflow: auto;
    }
    .piece {
        margin: 10px;
    }

    #ouverture {
        grid-area: a !important;
    }
    #pieceOverture {
        grid-area: b !important;
    }
    #piece0{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: 25px;
        grid-row-gap: 25px;
        grid-template-areas:'a b b';
        grid-area: a;
    }

    #piece2 {
        grid-area: c !important;
    }

    #piece3 {
        grid-area: d !important;
    }

    #piece4 {
        grid-area: e !important;
    }

    #piece5 {
        grid-area: f !important;
    }

    #piece6 {
        grid-area: g;
    }

    #piece7 {
        grid-area: h;
    }

    #piece8 {
        grid-area: i;
    }

    #piece9 {
        grid-area: j;
    }
    #piece10 {
        grid-area: k;
    }
    #piece11 {
        grid-area: l;
    }
    #piece12 {
        grid-area: m;
    }
    #piece13 {
        grid-area: n;
    }
    #piece14 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: 25px;
        grid-row-gap: 25px;
        grid-template-areas: 'o o o';
        grid-area: o;
    }

    #spect1 {
        grid-area: o !important;
        background-color: black !important;
    }
    #cekoi {
        grid-area: o !important;
    }

    .lexique {
        display: inline;
    }
}

div#perspective {
    transform: perspective(800px) rotateY(25deg) scale(0.9) rotateX(30deg);

    opacity: 1;
    transition: 0.6s ease all;
}

div#perspective:hover {
     transform:
             perspective(800px)
             rotateY(-15deg)
             translateY(-50px)
             rotateX(10deg)
             scale(1);
     filter: blur(0);
     opacity: 1;
 }
