h1
{
    text-align: center;
}

#all
{
    display: flex;
    flex-direction: row;
    /* justify-content: space-around; */
    width: 100%;
    height: 100%;
}

#margePlayer1, #margePlayer2
{
    position : relative;
    background-color: rgb(230, 221, 221);
    /* width: 25%; */
    /* height: auto; */
    /* min-height: 570px; */
    /* min-width: 110px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* border: 1px black solid; */
}

.fleche-tour
{
    height: 100px;
    width: 100px;
    /* border: 1px red solid; */
}


.case 
{
    width: 10%;
    border: 1px black solid;
}

.legend
{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* .caseLegend
{
    width: 50px;
    height: 50px;
} */

.mur
{
    background-color: black;
}

td img, .imgArme, .Player1 , .Player2 
{
    width: 100%;
    height: 100%;
}

#plateau
{
    /* width: 50%; */
    /* min-width: 531px; */
    display: flex;
    justify-content: center;
    /* border: 1px red solid; */
}

table
{
    border-collapse: collapse;

}

td
{
    border: 1px black solid;
    /* height: 50px;
    width: 50px; */
}

.movePossible
{
    filter: invert(20%);
}

.movePossible:hover
{
    filter: invert(40%);
}

.fight
{
    height: 50px;
    /* border: 1px red solid; */
}

.boutons
{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#formulaire
{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.introCombat
{
    position: absolute;
    font-size: 10vw;
    color: white;
    background-color: red;
    text-align: center;
    margin: auto;
    padding: auto;
    /* margin-top : -30%; */
    /* margin-top: -380px; */
}

/* ============================================= */
/* ===== Fleche indiquant tour du joueur ======= */
/* ============================================= */

@-webkit-keyframes bounce 
{
    0%, 100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
    }
    40% {
    -moz-transform: translateY(20px);
    -ms-transform: translateY(20px);
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    }
}
    
@keyframes bounce 
{
    0%, 100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
    }
    40% {
    -moz-transform: translateY(20px);
    -ms-transform: translateY(20px);
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    }
}
    
.imgFleche
{ 
    -webkit-animation-name: bounce;
    animation-name: bounce;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

/* ============================================= */
/* ========== Fenetre regle du jeu ============= */
/* ============================================= */

.divRegles
{
    display: flex;
    flex-direction: column;
}

.closeBtn
{
    display: flex;
    justify-content: flex-end;
}

button:focus
{
    box-shadow: 0 0 15px red;
}

.modal
{
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    top : 0;
    left : 0;
    height: 100%;
    width: 100%;
    background: rgba( 0 , 0 , 0 , 0.8);
    animation: fadeIn .3s both;
}

.modal-wrapper
{
    overflow: auto;
    width: 600px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding : 20px;
    background-color: white;
    animation: slideFromTop .3s both;
}

.modal[aria-hidden="true"]
{
    animation-name: fadeOut;

}

.modal[aria-hidden="true"] .modal-wrapper
{
    animation-name: slideToBotton;
}   

@keyframes fadeIn 
{
    from { opacity: 0;}
    to { opacity: 1;}
}

@keyframes fadeOut 
{
    from { opacity: 1;}
    to { opacity: 0;}
}


@keyframes slideFromTop 
{
    from { transform : translateY(-50px);}
    to { transform : translateY(0px);}
}


@keyframes slideToBotton 
{
    from { transform : translateY(0px);}
    to { transform : translateY(-50px);}
}

/* ============================================= */
/* ============ Cahier des charges ============= */
/* ============================================= */

#cahier
{
    cursor: pointer;
}

#arrow
{
    margin-left : 10%;
    min-width: 30px;
}

#consigne
{
    /* border: 1px solid red; */
    font-size: 1.5rem;
    margin: 0 10%;
    /* height: auto; */
    width: 80%;
    overflow: hidden;
    height: 0px;
    -webkit-transition: 1s height 0.3s; /* Safari, Chrome */
    -ms-transition: 1s height 0.3s; /* IE */
    -moz-transition: 1s height 0.3s; /* Firefox */
    -o-transition: 1s height 0.3s; /* Opera */
    transition: 1s height 0.3s; /* autres */
}

#dotdotdot
{
    font-size: 1.5rem;
    text-align: center;
}

/* -------------------------------------------------- */
/* ================================================== */
/* ================= Media Queries ================== */
/* ================================================== */
/* -------------------------------------------------- */

@media all and (max-width: 777px)
{
    .modal-wrapper
    {
        width: calc(100vw - 40px);
    }
}