body{
  box-sizing:border-box;
  min-height:100vh;
  display:grid;
  padding: 0 2.5vmin 2.5vmin 0 ;
}
.bg_game{
	
	background: url('../../images/bg_game.webp') no-repeat top  ; 
  margin:0;
  padding:0;
 
  -webkit-background-size: cover; /* pour anciens Chrome et Safari */
  background-size: cover; /* version standardisée */
	
}
section {grid-row:1;grid-column:1;
  float:right;
  display:grid;
  grid-template-columns:repeat(8,1fr);
  grid-template-rows:repeat(8,1fr);
  aspect-ratio:1;
  width:100vmin;
  border:solid 5px;
  margin:auto auto;
  gap:8px;
}
section div {
  box-shadow: 0 0 0 0px;
 display:grid;
  border-radius:5px;
}
section div :is(b,i) {
  margin:auto .25em .25em auto;
  font-size:clamp(8px,3vmin,14px)
}
section div>* {
  grid-row:1;
  grid-column:1;
}
.case{
	
	background: url('../../images/qm.png') no-repeat top  ; 
	background-size: 100%;
	
  
  margin-bottom: max(10px,1vh);
  margin-right: max(10px,1vh);
}
.casedoublef{
	
	background: url('../../images/doublef.png') no-repeat top  ; 
	background-size: 100%;
	
  margin-bottom: max(10px,1vh);
  margin-right: max(10px,1vh);
}
.casedoubleh{
	
	background: url('../../images/doubleh.png') no-repeat top  ; 
	background-size: 100%;
	
  margin-bottom: max(10px,1vh);
  margin-right: max(10px,1vh);
}
.case_arr{
	
	background: url('../../images/arrivee.png') no-repeat top  ; 
	background-size: 100%;
	opacity:0.8;
	
  
  
}

/*img:first-of-type{
  filter:hue-rotate(0deg);
  animation: win 20s  infinite ease-in;
  z-index:2;
}*/
img.pionf {
  /* recallage image selon aspect ecran*/
  padding-right: calc(100vw - 250vmin);
  padding-bottom:  calc(50vmin - 50vh);
  /*  clip-path:polygon(calc(100% - 8%) calc(100% - 8%), calc(100% - 8%) 100%, 100%  100%,  100% 0  );
 fin recallage */
  top:0;
  left:0;
  width:8%;
  height:auto;
  filter:hue-rotate(0deg);
  transition: left 7s ease-in-out, top 2s ease-in-out;
  /*animation: win 20s  infinite ease-in;*/
  position: absolute;
  z-index:3;
  background:url('../../images/pion_femme.png') 100% 100% /contain no-repeat ;
}
img.pionh {
  /* recallage image selon aspect ecran*/
  padding-right: calc(100vw - 240vmin);
  padding-bottom:  calc(50vmin - 50vh);
 /* clip-path:polygon(calc(100% - 8%) calc(100% - 8%), calc(100% - 8%) 100%, 100%  100%,  100% 0  );
   fin recallage */
  top:0;
  left:0;
  width:8%;
  height:auto;
   filter:hue-rotate(0deg);
  transition: left 8s ease-in-out, top 2s ease-in-out;
  /*animation: win 20s  infinite ease-in;*/
  position: absolute;
  z-index:2;
  background:url('../../images/pion_homme.png') 100% 100% /contain no-repeat ;
}
@keyframes win {
  0%,3% {left :15vmin;}
  6.25%  {left :85vmin; top:calc( 100vh - 12vmin);}
  12.50% {left :85vmin;top:calc( 100vh - 82vmin);}
  18.75% {left :15vmin;top:calc( 100vh - 82vmin);}
  25% {left :15vmin;top:calc( 100vh - 22vmin);}
  31.25% {left :75vmin;top:calc( 100vh - 22vmin);}
  37.5% {left :75vmin;top:calc( 100vh - 72vmin);}
  43.75% {left :25vmin;top:calc( 100vh - 72vmin);}
  50% {left :25vmin;top:calc( 100vh - 32vmin);}
  56.25% {left :65vmin;top:calc( 100vh - 32vmin);}
  62.5% {left :65vmin;top:calc( 100vh - 62vmin);}
  68.75% {left :35vmin;top:calc( 100vh - 62vmin);}
  75% {left :35vmin;top:calc( 100vh - 42vmin);}
  81.25% {left :55vmin;top:calc( 100vh - 42vmin);}
  87.5% {left :55vmin;top:calc( 100vh - 52vmin);}
  93.75% {left :45vmin;top:calc( 100vh - 52vmin);}
}

/* le dé*/
.dice {
  height: 60px;
  width: 60px;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-30px) rotateY(-45deg) rotateX(-45deg);
  transition: transform 1s;
}
.panel {
  border-radius: 3px;
  width: 60px;
  height: 60px;
  perspective: 120px;
  /* position: absolute;
left: 25%;*/
  
  
}
.dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 1px;
  background-color: gold;
}
.side {
  position: absolute;
  background-color: black;
  width: 60px;
  height: 60px;
  border-radius: 3px;
  line-height:60px;
}
.one {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateX(-90deg) translateZ(30px);
  z-index: 1;
}
.two {
  display: flex;
  justify-content: space-between;
  transform: rotateY(180deg) translateZ(30px);
  z-index: 2;
}
.two .dot:nth-of-type(2) {
  align-self: flex-end;
}
.three {
  display: flex;
  justify-content: space-between;
  transform: rotateY(90deg) translateZ(30px);
  z-index: 3;
}

.three .dot:nth-of-type(2) {
  align-self: center;
}

.three .dot:nth-of-type(3) {
  align-self: flex-end;
}
.four {
  z-index: 4;
  transform: rotateY(0deg) translateZ(30px);
}
.four,
.six {
  display: flex;
  justify-content: space-between;
}

.four .kolona,
.six .kolona {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.five {
  display: flex;
  justify-content: space-between;
  transform: rotateY(-90deg) translateZ(30px);
  z-index: 5;
}

.five .kolona {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.five .kolona:nth-of-type(2) {
  justify-content: center;
}
.six {
  transform: rotateX(90deg) translateZ(30px);
  z-index: 6;
}

/*ecartement des c ases effet escargot
 div:nth-child(28 ),
div:nth-child(1 )~div:not(.side, .kolona,div:nth-child(7)~div),
 div:nth-child(10)~div:not(div:nth-child(14)~div),
div:nth-child(19)~div:not(div:nth-child(21)~div),
div:nth-child(34)~div:not(div:nth-child(37)~div) ,
div:nth-child(41)~div:not(div:nth-child(46)~div) ,
div:nth-child(48)~div:not(div:nth-child(55)~div) {
border-bottom:solid 5px white;
}
div:nth-child(8n):not(:last-child,:nth-child(8)) ,
div:nth-child(8n-1):not(:nth-child(7),:nth-child(15),:nth-child(55),:nth-child(63)),
div:nth-child(8n-2):not(:nth-child(6),:nth-child(14),:nth-child(22),:nth-child(46),:nth-child(54),:nth-child(62)),
div:nth-child(8n-4):not(:nth-child(4),:nth-child(12),:nth-child(36),:nth-child(20),:nth-child(44),:nth-child(52),:nth-child(60)),
div:nth-child(8n-5):not(:nth-child(3),:nth-child(11),:nth-child(43),:nth-child(51),:nth-child(59)),
div:nth-child(8n-6):not(:nth-child(58),:nth-child(50),:nth-child(2)){
  border-left:solid 5px white; 
}*/
article{
  grid-row:1;
  grid-column:1;
  color:white;
  margin-bottom:auto;
  border-bottom:double;
}
.ml{
	margin-left:3%;
}
.mr{
	margin-right:3%;
}
.btn-miss{
	color: #fff;
  background-color: #fd0dc1;
  border-color: #f3f2f3;
}
.btn-mister{
	color: #fff;
  background-color: #2c70da;
  border-color: #8d148d;
}
.spinning {
   transition: transform 2.5s ease-in-out !important;
    transform: translateZ(-100px) rotateY(2430deg) rotateX(2160deg) !important;
}