/**************
GENERAL 
**************/


body{
	/*background-image:url("../img/fond.svg");*/
}

#lejeu{
	font-family: "DIN Regular";

}

#jeu-01 #liens a{
	color:#00829a;
}

/**************
AIDE 
**************/

#aide{

}

#liens{
	
}
/**************
ENTETE 
**************/

#entete{

}

.page-jeu #infos{
	z-index: 1000000000;
}
/**************
JEU 
**************/
.planche{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}


.planche .carte {
	width:170px;
	height:252px;
	margin: 0.2rem 0.2rem;
	color: #ffffff;
	border-radius: 25px;
	cursor: pointer;
	display:flex;
	justify-content: center;
	align-items: center;
	transform:scale(1);
	transition: transform 0.3s, box-shadow 0.3s;

}

.planche .carte .contenu{
	width:100%;
	height:100%;
	border:1px solid black;
	border-radius: 25px;
	overflow: hidden;
	
	background-color: #00a29a;
	box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
	/*-webkit-backface-visibility: hidden !important;
	backface-visibility: hidden !important;*/
	position:relative;

}
.planche .carte .recto{
	width:100%;
	height:100%;
	overflow: hidden;
	border:1px solid black;
	
	position:absolute;
	border-radius: 25px;
	box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
	
}


.recto_image{
	background : transparent url('../data/img/recto_image.svg') center center no-repeat !important;
}
.recto_texte{
	background : transparent url('../data/img/recto_texte.svg') center center no-repeat !important;
}

/* Carte image */
.planche .carte *{
	-webkit-user-select: none;  /* Chrome all / Safari all */
	-moz-user-select: none;     /* Firefox all */
	-ms-user-select: none;      /* IE 10+ */
	user-select: none;
}
.planche .carte[data-type="image"] .contenu{
	padding:10px;
	justify-content: center;
	display: flex;
    	flex-direction: column;
}
.planche .carte[data-type="image"] img{
	width:100%;
	max-width:100%;
	max-height:180px;
	border: 3px solid white;
}
.planche .carte[data-type="image"] h5{
	font-size:12px;
	color:#dddc0d;
	text-transform:uppercase;
	text-align:left;
	position:relative;
	top:5px;
}
.planche .carte[data-type="image"] h6{
	font-size:12px;
	color:white;
	font-style: italic;
	text-align:right;
	margin-top:5px;
}

.planche .carte[data-type="image"] h6::before{
	font-size:12px;
	color:#dddc0d;
	content:"●";
	margin-right:2px;
	display:inline-block;
}


/* Carte texte */

.planche .carte[data-type="texte"]{
	color:black;
	font-size:12px;
	text-align:left;
	
}
.planche .carte[data-type="texte"] .contenu{
	width:100%;
	height:100%;
}
.planche .carte[data-type="texte"] .haut{
	background-color:white;
	height:50%;
	padding-bottom:10px;
	display:flex;
	flex-direction: column;
	justify-content:flex-end;
}
.planche .carte[data-type="texte"] .bas{
	background-color:#dddc0d;
	height:50%;
	padding-top:10px;
}
.planche .carte[data-type="texte"] p, .planche .carte[data-type="texte"] h5, .planche .carte[data-type="texte"] h6{
	padding:0 10px;
	margin:0;
	text-align:left;
	line-height: 1.2em;
	margin-bottom:4px;
}
.planche .carte[data-type="texte"] h5{
	font-size:12px;
	color:#dddc0d;
	text-transform:uppercase;
	padding-bottom:5px;
}
.planche .carte[data-type="texte"] h6{
	font-size:12px;
	font-style: italic;
	margin-bottom:0px;
}
.planche .carte[data-type="texte"] h6::before{
	font-size:12px;
	color:#dddc0d;
	content:"●";
	margin-right:2px;
	display:inline-block;

}
.planche .carte[data-type="texte"] .bas p{
	font-family: "Verdana";
	font-weight: bold;
	font-size:9px;
}
.planche .carte[data-type="texte"] .bas span{
	font-family: "Verdana";
	font-weight: 100;
	font-size:9px;
}









/* Style des cartes retournées, annulées, ... */

.planche .open {
	transform: rotateY(0deg);
	background: #02b3e4;
	cursor: default;
	animation-name: flipInY;
	-webkit-backface-visibility: hidden !important;
	backface-visibility: hidden !important;
	animation-duration: .75s;
	z-index:100;
}
.planche .close {
	transform: rotateY(180deg);
	background: #02b3e4;
	cursor: default;
	animation-name: flipOutY;
	-webkit-backface-visibility: hidden !important;
	backface-visibility: hidden !important;
	animation-duration: .75s;
	z-index:50;
}
.planche .show {
	transform:scale(1.12);
	box-shadow: 8px 8px 50px 12px rgba(46, 61, 73, 1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.planche .carte.match {
	cursor: default;
	animation-name: accepte;
	/*-webkit-backface-visibility: visible !important;
	backface-visibility: visible !important;*/
	animation-duration: 1s;
}

.planche .carte.unmatched {
	animation-name: refuse;
	/*-webkit-backface-visibility: visible !important;
	backface-visibility: visible !important;*/
	animation-duration: .35s;
}

.planche .carte.disabled {
	pointer-events: none;
	animation-name:disparait;
	animation-duration: 0.15s;	
}



/* animations */
@keyframes flipInY {
	from {
		transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
		animation-timing-function: ease-in;
		/*opacity: 0;*/
	}

	40% {
		transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
		animation-timing-function: ease-in;
	}

	60% {
		transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
		/*opacity: 1;*/
	}

	80% {
		transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
	}

	to {
		transform: perspective(400px);
	}
}
@keyframes flipOutY {
	from {
		transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
		animation-timing-function: ease-in;
		/*opacity: 0;*/
	}

	40% {
		transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
		animation-timing-function: ease-in;
	}

	60% {
		transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
		/*opacity: 1;*/
	}

	80% {
		transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
	}

	to {
		transform: perspective(400px);
	}
}
@keyframes accepte {
	from {
		transform: scaleX(1) scaleY(1);
	}

	30% {
		transform: scaleX(1.25) scaleY(0.75);
	}

	40% {
		transform: scaleX(0.75) scaleY(1.25);

	}

	50% {
		transform: scaleX(1.15) scaleY(0.85);
		/*opacity:100;*/
	}

	75% {
		transform: scaleX(0.95) scaleY(1.05);

	}

	to {
		transform: scaleX(1) scaleY(1);
		
	}

	/*to {
		transform: scaleX(0) scaleY(0);
		
	}*/
}

@keyframes refuse {
	
	25%{
		transform: scale(1.12) rotate(2deg);
	}
	50%{
		transform: scale(1.12) rotate(-2deg);
	}
	75%{
		transform: scale(1.12) rotate(2deg);
	}
	100%{
		transform: scale(1.12) rotate(0deg);
	}
}


@keyframes disparait {
	from {
		transform: scale(1);
	}

	
	to {
		transform: scale(0);
	}
}
@keyframes touche {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.12);
	}
}




/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) { 
	


	
	
}



