
/* Layout */
html {
  display: flex;
  flex-direction: column;
} 

body {
  display: flex; /* crée un contexte flex pour ses enfants */
  flex-direction: column; /* affichage vertical */
  min-height: 100vh; /* toute la hauteur du viewport (compatible IE9+) */
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 0px;
  background: black;
}



/*HEADER*/

header {
  
  background: linear-gradient( 45deg, #9b251e, #390007); 
  border-radius:30px 30px 0px 0px; 
  text-align: left;
}

#gridheader {
  display: grid;
  grid-template-columns: auto 300px;
  grid-template-rows: 100px 40px;
  
}

#bandeaugauche {
	
	grid-column-start:1;
	grid-column-end: 2;
	grid-row-start: 1;
	grid-row-end: 2;
	z-index: 1;
}

#bandeaudroite {
	grid-column-start:2;
	grid-column-end: 3;
	grid-row-start: 1;
	grid-row-end: 2;
	z-index: 1;
}

#menu {
	grid-column-start:1;
	grid-column-end: 3;
	grid-row-start: 2;
	grid-row-end: 3;
	background-color: #22231B;
    display: flex;
    color: white;
    justify-content: end ;
    position: relative;
    z-index: 3;  
}

#menu a{
    margin-right: 1%;
    margin-left: 1%;
    padding: 10px;
    width: 10%;
    text-align: center;
    justify-content: center;
	display: flex;
	white-space: nowrap;
}


#menu a :nth-child(1){
	padding-right: 10%;
}

#menu a p {
	margin-top: 0px;
}
#menu :hover {
    color: black;
    background-color: white;
	transition-duration: 0.2s;
	cursor:pointer;
}

h1 {
    margin: 10px;
	margin-left: 30px;
	margin-bottom: 0px;
    font-family: 'BioRhyme', serif;
    color: white;
	text-shadow: -1px 0 black, 0 2px black,
      1px 0 black, 0 -2px black; 
	  white-space:nowrap;
	
    
}

h2 {
    margin: 2px;
	margin-left: 30px;
    color: #8C7800;
    font-style: italic;
}

#carte {
    width: 150px;
    height: 130px;
    position: absolute;
    top: 5.5%;
    right: 2%;
    z-index: 2;
}

/*FOOTER*/

#gridfooter {
  display: grid;
  grid-template-columns: auto 300px;
}

#footergauche {
	grid-column-start:1;
	grid-column-end: 2;
	height:auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	
}

#footerdroite {
	grid-column-start:2;
	grid-column-end: 3;
	height:auto;
	display: flex;
}

#logo {
    width: 100px;
    height: 80px;
	margin-left:190px;
	position:center;
    z-index: 2;
}

/*PARTIE CENTRALE*/

.wrapper {
	display: flex; 
	flex: 1 1 auto; /* occupe la hauteur restante correspond à flex-grow, flex-shrink, flex-basis*/
	display: flex; /* crée un contexte flex pour ses enfants */
	flex-direction: row; /* affichage horizontal on place la partie section à droite de partie nav*/
}


/*partie de gauche*/

#partiegauche {
	
	display:grid;
	grid-template-rows: 470px 48px;
	background-color: #4b5320;
}

.action {
	
  grid-row-start: 1;
  grid-row-end: 2;

}
li {
	display: flex;
	justify-content: start;
	padding-left: 20%;
	padding-top: 5%;
	padding-bottom: 5%;
}
/*element pair*/

li:nth-child(even) { /* Selects only even elements */
    color: white; 
}
/*element impair*/

li:nth-child(odd) { /* Selects only odd elements */
    color: black;   
	background-color:#D2B48C;
}

/*barre de défilement verticale*/

.scroller {
  width: 200px;
  overflow-y: scroll;
  scrollbar-color: #DCDCDC #808080;

}

/*partie bas de la partie de gauche*/

.partiegauchebas {
  grid-row-start: 2;
  grid-row-end: 3;
}


/*bouton effacer*/

#effacer {
  text-align:center;
}

#effacer button{
	height: 48px;
	width: 150px;
   	margin: auto;
   	cursor:pointer;
	background: white;
	border-radius:5px 5px 5px 5px;
	box-shadow: 2px 2px #A9A9A9;
	text-align:center;
	font-size: 25px;
	font-family: 'BioRhyme', serif;
}

/*partie de droite*/

section {
  display: block; 
  flex: auto; /* occupe la largeur restante */
  z-index: 3;
  background: no-repeat url(../img/Tapis.jpg) center;
  background-size: cover;
}

/*Dans la partie de droite*/

.wrapperpartiejeu {
  display: grid;
  grid-template-columns: 45% 40% 15%;  
  grid-template-rows: 20% 75% 15%;

}

.haut {
	grid-column-start:1;
	grid-column-end: 4;
	grid-row-start: 1;
	grid-row-end: 2;
	z-index: 3; 
	display:flex;
	flex-direction: row;
	justify-content: center;
}

#Ornement1 {
	margin-top:25px;
	margin-bottom:25px;
    width: 250px;
    height: 20px;
    z-index: 2;
}

h3 {
	margin-top:15px;
	margin-bottom:20px;
	margin-left: 0px;
	margin-right: 0px;
    font-family: 'BioRhyme', serif;
    color: #FFD700;
	text-transform: uppercase;
	font-size:30px;
	white-space:nowrap;
}

#Ornement2 {
	margin-top:25px;
	margin-bottom:25px;
    width: 250px;
    height: 20px;
    z-index: 2;
}

.milieugauche {
	grid-column-start:1;
	grid-column-end: 2;
	grid-row-start: 2;
	grid-row-end: 3;
}

.milieugauchecol {
  display: grid;
  grid-template-columns: 100px auto;
}

.milieugauchecol1 {
	grid-column-start:1;
	grid-column-end: 2;
	
}
/*espace à gauche des dés*/

.milieugauchecol2 {
	grid-column-start:2;
	grid-column-end: 3;
	height: 55vh;
	border-radius:5px 5px 5px 5px;
	border: solid 4px red;
	background-color: #797950;
}

#rectangle {
    height: 50%;
    width: auto;
	top:50%;
	position:relative;
    background: black;
	z-index: 1;
}

#ovale {
    width: auto;
    height: 20%;
	top: -10%;
	position:relative;
    border-radius: 200px / 40px;
    background: #696969;
	z-index: 2;
}

.Des1 {
	cursor:pointer;
	height:39px;
	margin-top:15px;
	width:135px;
	transform : scale(1.5);
}

#Des1 {
	height: 64px;
	width: 64px;
	background: no-repeat url(../img/Des1.png)center;
	top: -40%;
	left: 45%;
	position:relative;
	z-index: 3;
	
	
}

@keyframes des {
	0% { transform: scale(1.5); }
	33% { height: 64px;
	width: 64px;
	background: no-repeat url(../img/Des2.png)center;
	top: -40%;
	left: 45%;
	position:relative;
	z-index: 3;  }
	40% {
		transform: rotateZ(45deg) scale(1.5);
		
	}
	50% { height: 64px;
	width: 64px;
	background: no-repeat url(../img/Des3.png)center;
	top: -40%;
	left: 45%;
	position:relative;
	z-index: 3;  }
	56% {
		transform: rotateZ(135deg) scale(1.5);
		
	}
	63% { height: 64px;
	width: 64px;
	background: no-repeat url(../img/Des4.png)center;
	top: -40%;
	left: 45%;
	position:relative;
	z-index: 3;  }
	70% {
		transform: rotateZ(45deg) scale(1.5);
		
	}
	83% {
		height: 64px;
	width: 64px;
	background: no-repeat url(../img/Des5.png)center;
	top: -40%;
	left: 45%;
	position:relative;
	z-index: 3;  }
	90% {
		transform: rotateZ(135deg) scale(1.5);
		
	}
	 100% {
	height: 64px;
	width: 64px;
	background: no-repeat url(../img/Des6.png)center;
	top: -40%;
	left: 45%;
	position:relative;
	z-index: 3; 
	
	}

}

/*animation du dé lorsque on passe la souris dessus*/

#Des1:hover {
	animation: des 2s infinite ;
	
}




/* Partie affichage joueur */

.milieucentre {
	grid-column-start:2;
	grid-column-end: 3;
	grid-row-start: 2;
	grid-row-end: 3;
	height: 55vh;
}

.milieucentrejoueur {	
	display: grid; 
	grid-template-rows: 200px 200px;
	align-items: center;
}

.J1{
	display:flex;
	flex-direction: row;
	align-items: center;
	 justify-content: center;
}

#joueur1 {
	grid-row-start: 1;
	grid-row-end: 2;
	
}

.joueurtxt {
    color: black;
	font-size: 40px;
	text-shadow: -0.5px 0 white, 0 0.5px white,
    0.5px 0 white, 0 -0.5px white;
	text-align: center;
	margin: 0;
	 
	
}

.resultat1{
	justify-content: center;
	display: flex;
	
}
.resultat1 p {
	font-size:70px;             
	text-decoration: underline;
	text-shadow: -0.5px 0 white, 0 0.5px white,
      0.5px 0 white, 0 -0.5px white;
	margin: 0;
}


.J2{
	display:flex;
	flex-direction: row;
	align-items: center;
	 justify-content: center;
}

#joueur2 {
	grid-row-start: 2;
	grid-row-end: 3;

}

.joueurtxt2 {
    color: white;
	font-size:40px;
	text-shadow: -0.5px 0 black, 0 0.5px black,
      0.5px 0 black, 0 -0.5px black;
	text-align: center;
	margin: 0;

}

.resultat2{
	justify-content: center;
	display: flex;
}

.resultat2 p {
	font-size:70px;             
	margin: 0;
	color: white;
	text-shadow: -3px 0 black, 0 0.5px black,
      5px 0 black, 0 -3px black;
}

.edit {
	background-color: white;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	cursor:pointer;
}



/* Partie bouton de jeu */

.milieudroite {
	grid-column-start:3;
	grid-column-end: 4;
	grid-row-start: 2;
	grid-row-end: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	
}

.boutonjeu{
	height: 15%;
	width: 50%;
	cursor:pointer;
   	justify-content: end;
	margin-bottom: 10%;
	background: white;
	border-radius:5px 5px 5px 5px;
	box-shadow: 2px 2px #A9A9A9;
	text-align:center;
	font-size: 200%;
}


.bas {
	grid-column-start:1;
	grid-column-end: 4;
	grid-row-start: 3;
	grid-row-end: 4;	
}
	
#separateur {
	height: 10px;
	background-color: #1E2907;
}



/* Decoration */



a {
    text-decoration: none;
    color: white;
}


footer {
  background: linear-gradient(to right,#390007, #9b251e ); 
  font-family: 'BioRhyme', serif;
  font-style: italic;
  font-size: 20px;
  color: #88970B;

}

#footergauche p {
	margin : 0;
	display: flex;
	margin-left: 3%;
	white-space: nowrap;
}



ul {
	list-style:none;
	padding:0;
	text-align:center;
}

#Rectanglescore {
	position: absolute;
	width: 50%;
	height: 70%;
	top: 20%;
	bottom: 25%;
	left: 25%;
	right: 25%;
	background-color: #390007;
	border: #9b251e solid 3px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	display: none; /* DEsactiver pour voir la page */
}

#Rectanglescore button {
	height: 48px;
	width: 150px;
   	margin-left: auto;
	margin-right: auto;
   	cursor:pointer;
	background: white;
	border-radius:5px 5px 5px 5px;
	box-shadow: 2px 2px #A9A9A9;
	text-align:center;
	font-size: 25px;
	font-family: 'BioRhyme', serif;
}