/* -------------------------------------------- */
/* GENERAL										*/
/* -------------------------------------------- */
body
{
	margin: 0;
	font-family: Helvetica, Arial, "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", "sans-serif";
	overflow-x: hidden;
    position: relative;
	background-image: url(/images/games/differenceJunior/background.jpg);
	background-color: black;
	background-size: 100%;
	background-repeat: no-repeat;
	background-attachment: fixed;
}
h2 {
	text-align: center;
	margin-top: 5px;
	margin-bottom: 20px;
	font-size: 2.5em;
}
a
{
	color: #24626B;
	text-decoration: none;
}
a:hover
{
	color: #1EA5A5;
}


/* -------------------------------------------- */
/* HEADER										*/
/* -------------------------------------------- */
#logo_box {
	text-align: center;
	padding: 50px 0;
}
#logo
{
	color: white;
	width: 500px;
	max-width: 100%;
	font-size: 5em;
	font-weight: normal;
	position: relative;
	z-index: 3;
}
#menu {
	position: relative;
	display: flex;
	width: 1500px;
	justify-content: center;
	max-width: 80%;
	margin: auto;
	font-size: 1.4em;
	padding: 0 1%;
	background-color: #62BB51;
}
#menu>a {
	background-color: #62BB51;
	display: block;
	width: 100%;
	text-align: center;
	color: white;
	padding: 10px;
	text-decoration: none;
	cursor: pointer;
}
#menu a:hover
{
	background-color: #49AE48;
}
#choix_langue {
	background-color: #62BB51;
	position: absolute;
	right: 1%;
	top: 45px;
	font-size: 1em;
	padding: 0;
	display: none;
	z-index: 4;
}
#choix_langue a {
	display: block;
	padding: 10px 30px;
	cursor: pointer;
	color: #FFFFFF;
	border-top: #368943 solid 1px;
}
#choix_langue div:first-child a {
	border-top: none;
}
.drapeau_carre_langue {
	width: 30px;
	height: 20px;
	margin-left: 10px;
}
.drapeau_cube_langue {
	display: none;
}
#auteur {
	font-family: 'ARIALN', 'HELVETICANEUELTSTD-CN', Helvetica, Gotham, "Helvetica Neue", Arial, sans-serif;
	font-weight: bold;
	position: absolute;
	top: 10px;
	right: 20px;
}
#difference_original {
	position: absolute;
	top: 5px;
	left: 10px;
}
#logo_original {
	width: 150px;
}

/* -------------------------------------------- */
/* PAGE											*/
/* -------------------------------------------- */
#main
{
	max-width: 80%;
	width: 1500px;
	margin: auto;
	padding: 1%;
	background-color: rgba(255,255,255,0.9);
	position: relative;
	z-index: 1;
}
.piece_deco
{
	position: absolute;
	top : 300px;
}
#piece-deco-T {
	top: 450px;
	left: 3vw;
}

#piece-deco-L {
	top: 650px;
	left: 1vw;
}

#piece-deco-U {
	top: 300px;
	left: 1vw;
}

#piece-deco-S {
	top: 500px;
	right: 3vw;
}

#piece-deco-I {
	top: 700px;
	right: 2vw;
}

#piece-deco-VW {
	top: 250px;
	right: 1vw;
}


/* -------------------------------------------- */
/* REGLES										*/
/* -------------------------------------------- */
#video {
	text-align: center;
	margin-top: 10px;
	width: 100%!important;
	min-height: 31vw;
}
#video > * {
	max-width: 100%;
	border: 0;
	width: 55.1vw;
	height: 31vw;
	-webkit-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
}
.title_section {
	background-color: #6CCFF6;
	color: white;
}
#introduction, #fin_partie, #test_game {
	text-align: center;
}
#difference_card_castle, #difference_card_cirque, #difference_card_dragon, #difference_card_marais {
	width: 200px;
	border-radius: 10px;
	position: relative;
}
#difference_card_castle {
	left: -5px;
	transform: rotate(-8deg);
}
#difference_card_cirque {
	left: 3px;
	transform: rotate(6deg);
}
#difference_card_dragon {
	left: 0px;
	transform: rotate(-5deg);
}
#difference_card_marais {
	left: 2px;
	transform: rotate(1deg);
	border: solid 4px #D93740;
}
#difference_carte_centre {
	border-radius: 20px;
	max-width: 70%;
	max-height: 70%;
}
#difference_cartes_cache, #difference_cartes_visible, #difference_declare_diff, #difference_reponse_fausse, #difference_reponse_vrai {
	max-width: 100%;
	max-height: 100%;
}
.image_bd {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
}
.cercle_diff {
	border: 2px black dotted;
	border-radius: 50%;
	width: 25px;
	height: 25px;
	position: absolute;
	overflow: hidden;
}
.croix {
	width: 100%;
	height: 100%;
	position: relative;
}
.croix::before {
	content: '';
	width: 150%;
	height: 2px;
	background-color: red;
	transform: rotate(-45deg);
	position: absolute;
	top: 49%;
	left: -25%;
}
.croix::after {
	content: '';
	width: 150%;
	height: 2px;
	background-color: red;
	transform: rotate(45deg);
	position: absolute;
	top: 44%;
	left: -25%;
}
.case_bd {
	background-color: #ccd5d2;
	box-shadow: inset 30px -20px 40px 0px #e8f1ee;
}
.btn_demo {
	background-color: #3FA549;
	color: white;
	display: inline-block;
	margin: auto;
	font-size: 2em;
	text-decoration: none;
	padding: 10px 20px;
	transition: all 0.1s;
}
.btn_demo:hover {
	background-color: #368943;
	color: white;
}
.btn_demo:active {
	box-shadow: inset 0px 0px 15px 0px rgba(0,0,0,0.40);
}


/* -------------------------------------------- */
/* SOLUTIONS									*/
/* -------------------------------------------- */
.num_difference {
	background-color: #60BA48;
	border-radius: 50%;
	position: absolute;
	width: 2vw;
	height: 2vw;
	text-align: center;
	font-size: 2vw;
	color: white;
}


/* -------------------------------------------- */
/* DEMO											*/
/* -------------------------------------------- */
.carte_jeu {
	border-radius: 30px;
	width: 100%;
}
.carte_demo {
	width: 50%;
	margin: auto;
	position: relative;
	-webkit-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}
.hitbox {
	/*border: dotted #F001FF 2px;*/
	position: absolute;
}
.hitboxclique {
	border: dotted black 2px;
	border-radius: 50%;
}
#demo {
	position: relative;
}
#game {
	text-align: center;
}
.carte_joueur {
	position: absolute;
	top: 50%;
	left: 25%; 
}
@media (max-width: 499px){
	.carte_demo {
		width: 100%;
	}
	.carte_joueur {
		left: 0%; 
	}
}

/* -------------------------------------------- */
/* FOOTER										*/
/* -------------------------------------------- */
footer 
{
	background-color: #62BB51;
	max-width: 80%;
	width: 1500px;
	margin: auto;
	padding: 1%;
	position: relative;
	z-index: 1;
	color: white;
	margin-bottom: 50px;
}
.conteneur_cols
{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-pack: distribute;
	    justify-content: space-around;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
}
.titre_col_footer
{
	font-size: 1.1em;
}
footer a
{
	font-weight: bold;
	color: #E5E5E5;
	text-decoration: none;
}
footer a:hover
{
	color: #FFFFFF;
} 
.mentionslegales {
	text-align: center;
	padding: 20px 0 5px 0;
	color: white;
}
.footer_col 
{
	margin: 20px 0;
	min-width: 209px;
}
#footer_sites, #footer_reseaux, #footer_adresse
{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}
footer p, footer a {
	margin: 2px 0;
}
.reseaux_footer {
	width: 70px;
}
.reseaux_footer:hover {
	-webkit-box-shadow: 0px 0px 5px white;
	        box-shadow: 0px 0px 5px white;
}
#bouton_point_vente {
	color: white;
	background-color: #adb614;
	border: none;
	margin: 20px 0 0 0;
	padding: 20px 10px;
	font-size: 1.1em;
	cursor: pointer;
	display: block;
}
#bouton_point_vente:hover {
	background-color: #909810;
}

/* -------------------------------------------- */
/* Tablette en paysage, petit/moyen écran		*/
/* -------------------------------------------- */
@media (max-width: 1280px){
}


/* -------------------------------------------- */
/* Smartphone en paysage, tablette en portrait	*/
/* -------------------------------------------- */
@media (max-width: 959px){
	body
	{
		background-position: 50% 0%
	}
	/* HEADER */
	#plateau_facing {
		position: absolute;
		top: -10px;
		right: -600px;
	}
	#logo 
	{
		width: 300px;
		font-size: 4em;
		margin-top: 40px;
		margin-bottom: 100px;
	}
	#langue
	{
		left: 10px;
	}
	#langue a {
		top: -55px;
	}
	#langue a:hover {
		top: -60px;
	}
	#btn_menu
	{
		/*display: -webkit-box;
		display: -ms-flexbox;
		display: flex;*/
	}
	#menu 
	{
		/*position: absolute;*/
		width: 100%;
		max-width: 100%;
	}
	#menu ul
	{
		z-index: 8;
		position: relative;
		right: 0px;
		top: -95px;
		margin: 0;
		font-size: 1.4em;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
		-webkit-box-align: end;
		    -ms-flex-align: end;
		        align-items: flex-end;
		overflow: hidden;
		-webkit-transition: all 0.5s;
		-o-transition: all 0.5s;
		transition: all 0.5s;
		height: 0px;
	}
	#menu li
	{
		display: block;
		max-width: 70%;
		width: 300px;
		-webkit-transition: all 0.5s;
		-o-transition: all 0.5s;
		transition: all 0.5s;
		height: 46px;
	}
	#menu li a 
	{
		top: 0px;
		padding-left: 20px;
		right: -10px;
		display: block;
		border: 1px solid #333;
	}
	#menu li a:hover
	{
		top: 0px;
		right: 0px;
	}
	#connect, #subscribe
	{
		position: relative;
		right: auto;
	}
	#choix_langue 
	{
		right: auto;
		left: 5px;
		top: 0px;
	}
	/* PAGE */
    #main
	{
		max-width: 98%;
		border: none;
	}
	.piece_deco
	{
		visibility: hidden;
		top: 0;
	}
	/* SOLUTIONS */
	#bouton_resoudre, #bouton_desselectionner
	{
		padding: 7px 25px;
		margin: 4px 0;
		font-weight: bold;
	}
	/* MES PENTAS */
	.defis
	{
		font-size: 1em;
	}
	/* FOOTER */
	footer 
	{
		max-width: 100%;
		border: none;
		margin: 0px;
	}
}
@media only screen and (max-width: 920px) {
	#video > *
	{
		width: 97vw;
		height: 54vw;
	}
	#video
	{
		min-height: 54vw;
	}
}

/* -------------------------------------------- */
/* Smartphone en portrait						*/
/* -------------------------------------------- */
@media (max-width: 479px){
	/* HEADER */
	#btn_menu
	{
		top: 92px;
	}
	#menu ul
	{
		top: -8px;
	}
	/* REGLES */
	.grille td {
		width: 5vw;
		height: 5vw;
	}
	/* SOLUTIONS */
	#bouton_resoudre, #bouton_desselectionner
	{
		padding: 5px 15px;
		margin: 4px 0;
		font-size: 1.1em;
		font-weight: normal;
	}
	.piece td 
	{
		width: 15px;
		height: 15px;
	}
	.piece table 
	{
		border-collapse: collapse;
	}
	.piece
	{
		width: 60px;
		height: 100px;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		-webkit-box-pack: center;
		    -ms-flex-pack: center;
		        justify-content: center;
		margin: 5px;
		outline : none;
	}
	#plateau
	{
		width: 92vw;
		height: 43vw;
	}
	#pieces
	{
		border-collapse: collapse;
		position: absolute;
		top: 6.1vw;
		left: 7.2vw;
		width: 71.8vw;
		height: 30vw;
	}
	#reglette {
		top: 2.9vw;
		left: 80vw;
		width: 5.5vw;
	}
	/* CONNEXION */
	#part_connexion
	{
		border-right: 0px;
		border-bottom: 1px solid #B5B5B5;
	}
	.page_connexion
	{
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}
	#part_connexion, #part_register {
		width: 100%;
		padding: 0px;
		padding-bottom: 20px;
	}
}

@media (max-width: 330px){
}


