:root {
    --color_x: rgba(255, 88, 255, 0.308);
    --color_o: rgba(255, 217, 0, 0.308);
    --color_p: rgba(0, 4, 255, 0.308);
    --color_z: rgba(255, 0, 0, 0.308);
    --color_g: rgba(255, 136, 0, 0.308);
    --color_h: rgba(238, 255, 0, 0.308);
    --color_i: rgba(153, 0, 255, 0.308);
    --cellsize: 40px;
}
body {
    font-family: 'Anton' , sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    /* background-color: rgb(0, 0, 0) */
}
.fullpage {
    display: flex;
    flex-direction: column;
    width: 100vW;
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
    z-index: 2;
}
.fullpage h1 {
    margin: 0;
    padding: 0;
    text-align: center;
}
.fullpage p {
    margin: 0;
    padding: 0;
}
.fullpage .plateau {
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    width: 400px;
    height: 400px;
    margin: 0;
    padding: 0;
}
.fullpage .plateau .case {
    display: flex;
    justify-content: center;
    /* width: calc( 100% / 3 ); */
    background-size: cover;
    background-color: rgb(255, 255, 255);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, .3);
    /* margin:5px; */
    display: flex;
    /* align-items: center;
    justify-content: center; */
    font-size: .1rem;
    line-height: .1rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
    /* text-shadow: rgb(0, 0, 0) 0px 0px 2px; */
    /* box-shadow: 1px 1px 3px rgba(94, 255, 0, 0.658); */
    /* outline: 1px solid rgba(255, 238, 0, 0.2); */
}
.fullpage .plateau .case:hover {
    box-shadow: none;
    box-shadow: 0px 0px 3px rgba(122, 122, 122, 0.507);
}
.fullpage .plateau .case.p0 {
    background-image: url(../img/x.png);
    background-color: var(--color_x);
}
.fullpage .plateau .case.p1 {
    background-image: url(../img/o.png);
    background-color: var(--color_o);
}
.fullpage .plateau .case.p2 {
    background-image: url(../img/p.png);
    background-color: var(--color_p);
}
.fullpage .plateau .case.p3 {
    background-image: url(../img/z.png);
    background-color: var(--color_z);
}
.fullpage .plateau .case.p4 {
    background-image: url(../img/g.png);
    background-color: var(--color_g);
}
.fullpage .plateau .case.p5 {
    background-image: url(../img/h.png);
    background-color: var(--color_h);
}
.fullpage .plateau .case.p6 {
    background-image: url(../img/i.png);
    background-color: var(--color_i);
}
/* ------------------------------------ */
#Game_Over {
    z-index: 20;
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
    /* height:auto; */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.666);
}
#restart {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
    /* height:auto; */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.666);
}
#restart h2 {
    font-size: 3rem;
    font-weight: 600;
    color: white
}
#restart p {
    font-size: 1.5rem;
    font-weight: 600;
    color: white
}
#restart button {
    /* z-index: 4; */
}
#version {
    z-index: 10;
    position: absolute;
    top: 0;
    right: 0;
}
/* ------------------------------------ */
.partiesfaites {
    width: 100vW;
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 1;
}
.partiesfaites .item {
    max-width: 100%;
    margin: 2px 5px;
    text-align: center;
    /* z-index: 5; */
    /* width: calc( 100% / 3 ); */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
    /* align-items: center;
    justify-content: center; */
    font-size: 1rem;
    line-height: 1rem;
    color: rgba(0, 0, 0, 0.42);
    display: flex;
    flex-wrap: wrap;
    border-radius: 9px;
    padding: 0;
}
.partiesfaites .item .start {
    padding: 2px 5px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 9px 0 0 9px;
    padding-right: 5px;
    color: white;
    background-color: rgb(0, 0, 0);
}
.partiesfaites .item .end {
    padding: 2px 5px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 0 9px 9px 0;
    padding-right: 5px;
    color: black;
    background-color: rgb(255, 255, 255);
    overflow: hidden;
}
/* .partiesfaites .item.ia {
    color: rgba(0, 0, 0, 0.666);
    background-color: rgba(255, 0, 242, 0.123);
}
.partiesfaites .item.player {
    color: rgba(0, 0, 0, 0.666);
    background-color: rgba(17, 0, 255, 0.123);
}
.partiesfaites .item.ip {
    color: rgba(0, 0, 0, 0.829);
    font-weight: bold;
    background-color: rgba(21, 255, 0, 0.226);
}
.partiesfaites .item:hover .end {
    color: rgba(0, 0, 0, 0.666);
    background-color: rgba(247, 247, 247, 0.836);
} */
.partiesfaites .item.player {
    color: rgba(255, 255, 255, 1);
    background-color: rgb(0, 0, 0);
}
.partiesfaites .item.ia {
    color: rgba(0, 0, 0, 1);
    background-color: rgba(255, 0, 0, 0.356);
}
.partiesfaites .item.ip {
    color: rgba(255, 255, 255, 1);
    background-color: rgb(55, 0, 255);
}
.partiesfaites .item.player .start,
.partiesfaites .item.player .end {
    border: 1px solid rgb(0, 0, 0)
}
/* .partiesfaites .item.ia .start, .partiesfaites .item.ia .end  {
} */
.partiesfaites .item.player .start,
.partiesfaites .item.player .end {
    border: 1px solid rgb(255, 0, 0)
}
/* 
.partiesfaites .item.player .start {
    color: rgba(255, 255, 255, 1);
    background-color: rgb(0, 0, 0); 
}
.partiesfaites .item.ia .start {
    color: rgba(0, 0, 0, 1);
    background-color: rgb(255, 255, 255);
}
*/
/* ------------------------------------ */
/* ------------------------------------ */
/* @media (max-width:1200px){
    .fullpage .plateau {
        width: 500px;
        height: 500px;
    }
} 
@media (max-width:800px){
     .fullpage .plateau {
        width: 400px;
        height: 400px;
    } 
    #restart h2 {
        font-size: 2rem;
        font-weight: 600;
        color:white
    }
    #restart p {
        font-size: 1rem;
        font-weight: 600;
        color:white
    } 
}
@media (max-width:500px){
    .fullpage .plateau {
        width: 300px;
        height: 300px;
    }
    .fullpage .plateau .case {
       
    }
}
@media (max-width:400px){
    .fullpage .plateau {
        width: 250px;
        height: 250px;
    }
}
@media (max-width:300px){
    .fullpage .plateau {
        width: 250px;
        height: 250px;
    }
}
@media (max-height:400px){
    .fullpage .plateau {
        width: 250px;
        height: 250px;
    }
}
@media (max-height:200px){
    .fullpage .plateau {
        width: 100px;
        height: 100px;
    }
}
@media (max-height:100px){
    .fullpage .plateau {
        width: 50px;
        height: 50px;
    }
} @media (min-width:1201px){
    .fullpage .plateau {
        width: 500px;
        height: 500px;
    }
} */
.navlateral {
    position: absolute;
    height: 100vh;
    width: 300px;
    left: -365px;
    background-color: rgba(26, 155, 0, 0.856);
    z-index: 10;
    background-image: url(../img/open_nav.svg);
    background-repeat: no-repeat;
    background-position: center right;
    display: flex;
    justify-content: center;
    align-self: center;
    text-align: center;
    padding: 0 40px;
}
.navlateral .navigation {
    width: 100%;
}
.navlateral .navigation .ajax {
    width: 95%;
    background-color: rgb(136, 39, 0);
}
.navlateral .navigation .ajax .cartouche {
    width: 95%;
    display: block;
    background-color: rgb(136, 255, 0);
}
.navlateral .navigation .ajax .cartouche span {
    overflow: hidden;
    flex-direction: column;
    height: 25px;
    /* justify-content: center;
    align-self: center;
    text-align: center; */
    font-size: 1rem;
    line-height: 1rem;
    padding: 0;
}
.navlateral .navigation .ajax .cartouche .on {
    width: 30%;
    background-color: rgb(136, 0, 0);
    color: rgb(255, 255, 255);
    border-radius: 9px 0 0 9px;
}
.navlateral .navigation .ajax .cartouche .off {
    width: 70%;
    background-color: rgb(0, 105, 5);
    color: rgb(255, 255, 255);
    border-radius: 0 9px 9px 0;
}
.navlateral .navigation .ajax .cartouche .on:hover {
    width: 80%;
}
.navlateral .navigation .ajax .cartouche .on:hover .off {
    width: 20%;
}
.navlateral .navigation .ajax .cartouche .off:hover {
    width: 80%;
}
.navlateral .navigation .ajax .cartouche .on:hover .on {
    width: 20%;
}
.kbd {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid#b4b4b4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
    color: #333;
    display: inline-block;
    font-size: .85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}
.option {
    /* zoom:1; */
    transform: scale(1);
    margin: 12px 0px;
}
.option .btn {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid#d4d4d4;
    box-shadow: 0 1px 1px rgba(77, 77, 77, 0..5), 0 2px 0 0 rgba(255, 255, 255, 0..5) inset;
    color: #333;
    /* display: block; */
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    padding: 4px 6px;
    white-space: nowrap;
}
.option:hover .btn {
    background-color: rgba(72, 255, 0, 0.548);
    transform: rotate(-12deg) scale(1.3);
    z-index: 100;
}
.option:hover {
    transform: scale(1.5);
    cursor: pointer;
    transition: .3s cubic-bezier(0, 0, 0, 8);
}.navlateral .navigation .lesjoueurs {
    width: max-content;
}
.navlateral .navigation .lesjoueurs .player .name {
    width: 110px;
    height: 16px;
}
.navlateral .navigation .lesjoueurs .player .ia_or_not {
    /* margin-right: 0.5rem;
    transition: .3s ease;
    max-width: 100%;
    display: block; */
    display: flex;
    align-items: center;
    width: 40px;
    height: 20px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.062);
    border: 1px solid rgba(0, 0, 0, 0.24);
}
.navlateral .navigation .lesjoueurs .player .ia_or_not .on {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 12px;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 0.24);
}
.navlateral .navigation .lesjoueurs .player .ia_or_not.true {
    background-position: center right;
    justify-content: right;
    background-color: rgb(202, 45, 45);
}
.navlateral .navigation .lesjoueurs .player .ia_or_not.false {
    background-position: center left;
    justify-content: left;
    background-color: rgb(185, 204, 17);
}
.navlateral .navigation .lesjoueurs .player .ia_or_not.none {
    background-position: center center;
    justify-content: center;
    background-color: rgb(255, 145, 0);
}
.navlateral .navigation .lesjoueurs .player .true:hover {
    background-position: center left;
    justify-content: left;
    background-color: rgb(30, 255, 0);
}
.navlateral .navigation .lesjoueurs .player .false:hover {
    background-position: center right;
    justify-content: right;
    background-color: rgb(245, 0, 0);
}
.navlateral .navigation .lesjoueurs .player .btn {
    width: 15px;
    height: 15px;
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid#b4b4b4;
    box-shadow: 0 1px 1px rgba(77, 77, 77, 0.2), 0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
    color: #333;
    /* display: block; */
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    margin-right: 5px;
    white-space: nowrap;
}
.navlateral .navigation .lesjoueurs .player:hover .btn {
    transform: translate(-10px);
    /* zoom: 200%; */
    transform: rotate(-12deg) scale(1.4);
    cursor: pointer;
    transition: .3s cubic-bezier(0, 2, 0, 8);
}
.navlateral .navigation .lesjoueurs .player {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    max-width: 100%;
    min-width: max-content;
    margin: 2px 5px;
    padding: 2px 5px;
    text-align: center;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
    font-size: 1rem;
    line-height: 1.2rem;
    color: rgb(12, 2, 2);
    border-radius: 9px;
    background-color: rgb(255, 255, 255);
    text-transform: uppercase;
}
.navlateral .navigation .lesjoueurs .player.me {
    box-shadow: 0px 0px 2px rgba(0, 0, 0, .3);
    color: rgb(255, 255, 255);
    background-color: rgb(24, 14, 2);
}
.navlateral .navigation .lesjoueurs .player .marque {
    width: 15px;
    height: 15px;
    background-size: cover;
}
.navlateral:hover {
    width: 200px;
    left: 0;
    background-image: url(../img/close_nav_green.svg);
    background-position: center left;
    background-color: rgba(255, 255, 255, 0.856);
    padding: 0;
}
/* ------------------------------------ */
.players {
    width: 100vW;
    display: flex;
    align-content: center;
    justify-content: center;
    margin-bottom: 20px;
}
.players .playersturn {
    width: 100vW;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 1;
}
.players .playersturn .player {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    max-width: 100%;
    min-width: max-content;
    margin: 2px 5px;
    padding: 2px 5px;
    text-align: center;
    /* z-index: 5; */
    /* width: calc( 100% / 3 ); */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
    /* align-items: center;
    justify-content: center; */
    font-size: 1rem;
    line-height: 1.2rem;
    color: rgb(12, 2, 2);
    border-radius: 9px;
    background-color: rgb(255, 255, 255);
    text-transform: uppercase;
}
.players .playersturn .player.me {
    box-shadow: 0px 0px 2px rgba(0, 0, 0, .3);
    color: rgb(255, 255, 255);
    background-color: rgb(24, 14, 2);
}
.players .playersturn .player .marque {
    width: 15px;
    height: 15px;
    background-size: cover;
}
@media (max-width:800px){
    .fullpage h1 {
        font-size: 1rem;
    }
}