html {
	height: 100%;
}
html,body {
	/*overscroll-behavior-y: contain;*/
}
body {
		font-family: 'Balsamiq Sans', cursive;
		scroll-behavior:smooth;
}
.root-element {
  height: 100vh;
}
body {
		font-family: 'Balsamiq Sans', cursive;	 
		
}
.root-element {
  height: 100vh;
}
body.fullpage {
	margin: 0;
	/*overflow: hidden;*/
	background: black;
}
body.deborde {
	overflow: visible !important;
}
body.vertical {
	background: white;
}
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Old versions of Firefox */
	-ms-user-select: none;
	user-select: none;
	-webkit-text-size-adjust: 100%;
}
.container {
	max-width: 1280px;
	height: 630px;
	margin: auto;
	position: relative;
	background: black;
	background-position: center;
}
.vertical .container {
	/*height: 100%;*/
}
#consigne {
	position:absolute;width:100%;top: 0;left:0;margin: auto;z-index:2000;height: 100%;
}
#consigne>div {
	background: #fff;border-radius: 20px;
	position: absolute;top: 50%;
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	left: 50%;
	display:table;
	width: auto;
	padding-right: 40px;
	box-shadow: 7px 5px 5px rgba(33, 32, 32, 0.67);
	font-size: 28px;
}
@media (max-width:768px) {
	#consigne>div {
		font-size: 18px;
	}
}
@media (max-width:500px) {
	#consigne>div {
		min-width: 0;
		max-width: 80%;
	}
	#consigne>div {
		font-size: 14px;
	}
}

img {
	max-width: 100%;
}
.navindices {
	display:flex;
}
.navindices #nbindices{
	display:flex;
	margin-right: .5em;
}

.navindices #nbindices{
	position: absolute;
	top: 23px;
	right: 13px;
	font-family: 'Anton', sans-serif;
}
#overlay,#raz {
	background-color: rgba(0, 0, 0, 0.5);
	 height: 100%;
	 width: 100%;
	 position: absolute;
	 top: 0;
	 left: 0;
	 z-index: 99999;
	 display: none;
}
#overlay .content,
#raz .content {
	background: white;
	width: 50%;
	min-width: 300px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 0px 20px 20px 20px;
	border-radius: 20px;
}
#raz .continuer
{
	text-align: center;
	margin-top:2em;
}
.indices {
	position: absolute;
	top: 10px;
	right: 0;
	bottom: 10px;
	left: 100%;
	background: #fff;
	z-index: 999999999;
	display: none;
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
	max-height: 95vh;;
	box-shadow: -7px 5px 5px rgba(33, 32, 32, 0.67);
}	
.indices.active {
	display: flex;
	flex-wrap: wrap;
}
.indices div.close {
	text-align: right;
	top: 10px;
}
.indices div.close,
#overlay div.close,
#raz div.close {
	position: relative;
	top: 5px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #c00;
	float: right;
	cursor: pointer;
}
.indices div.close,
#overlay div.close,
#raz div.close {
	position: absolute;
}
#overlay div.close:after,
.indices div.close:after,
#raz div.close:after {
	content: "";
	display: block;
	border-bottom: 2px solid #333;
	width: 24px;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	position: absolute;
	top: 50%;left: 6px;
}
#overlay div.close:before,
.indices div.close:before,
#raz div.close:before {
	content: "";
	display: block;
	border-bottom: 2px solid #333;
	width: 25px;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	position: absolute;
	top: 50%;left: 6px;
}
.indices .linkfin {
	padding: 20px 0 0 20px;
	flex: 0 0 100%;
	display: none;
	
}
.indices .linkfin.active {
	
	display: block;
	
}
.indices .linkfin p {
	display: inline-block;
	border-radius: 5px;
	padding: .25em 1em;
	color: white;
	background: #c00;
	cursor: pointer;;
}
.indices .grille-indices {
	clear: both;
	display: flex;
	padding: 20px 0 0 20px;
	flex-wrap: wrap;
	width: 75%;
	align-content: flex-start;
}
.indices .grille-indices>div {
	border: 3px solid #aa6300;
	border-radius: 20px;
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 47%;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 90% !important;
	filter: grayscale(100%);
	flex: 0 0 48%;
	margin-bottom: 2%;
	margin-right: 2%;
}
@media (max-width:768px) {
	body{
		font-size:inherit;
	}
	.indices .grille-indices>div {
		padding-bottom: 31%;
		flex: 0 0 31%;
		margin-bottom: 2%;
		margin-right: 2%;
	}
	.indices .linkfin {
		padding: 10px 0 0 20px;
		flex: 0 0 100%;
		
	}
}
.indices .grille-indices>div img {
	display: none;
}
body.smallVertical .indices .grille-indices>div {
	flex: 0 0 49%;padding-bottom: 49%;margin-right: 1%;
}
body.smallVertical .indices .linkfin {
	padding: 20px 0 0 20px;
	flex: 0 0 100%;
	
}
.indices .grille-indices>div.gagne {
	filter: none;;
	border-color: #ffcc33;
}
.indices .grille-indices>div.gagne img {
	display:block;
}
.indice, .missionfinie
{
	position:absolute;
	top:0;
	right:0;
	bottom:0;
	left:0;
	background:rgba(0,0,0,.5);
	z-index: 999999999;
	display: none;
	
}	
.indice>div, .missionfinie>div{
	margin: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 90%;
	max-width: 450px;
	flex-direction: column;
	align-items: center;
	align-content: center;
	background:#fff;
	justify-content: space-around;
	transform: translate(-50%,-50%);
	border-radius: 20px;
	box-shadow: 7px 5px 5px rgba(33, 32, 32, 0.67);
	padding: 10px 20px 40px 20px;
}
.indice>div>div, .missionfinie>div>div {
	text-align: center;
	margin-top: 40px;
}
.indice>div>div>div, .missionfinie>div>div>div {
	text-align: center;
	vertical-align: middle;
}
.indice div img {
    height: auto;
	margin: 0 auto 0  auto;
}
.indice.active div img {
    -webkit-animation:spin 2s linear;
    -moz-animation:spin 2s linear;
    animation:spin 2s linear;
}
.indice .continuer span,
.missionfinie .continuer span,
#raz .button {
	display: inline-block;
	border-radius: 5px;
	padding: .25em 1em;
	color: white;
	background: #c00;
	margin-left: 1em;
	cursor: pointer;;
}
.indice .continuer span:last-child {
	background: #006699;
}

.missionfinie .continuer span a:link,
.missionfinie .continuer span a:visited,
.indice .continuer span a:link,
.indice .continuer span a:visited
{
		color: white;
		text-decoration: none;;;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
body .header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
	height: 70px;
}
body .header:after {
	content: "";
	display: block;
	clear: both;
}
body .header .home {
	position: absolute;
	left: 5.5%;
}
body .header .navindices {
	position: absolute;
	right: 5.5%;
	cursor: pointer;
}
body .header .validation {
	position: absolute;
	right: 15.5%;
	cursor: pointer;
}
body .progress {
	display: flex;
	padding: 5px 0 25px 0;
	margin: auto;
	align-items: center;
}
body .progress span
{
	display: inline-block;
	height: 55px;
	width: 58px;
	margin-right: 5px;
	background-image: url(../img/etoile_0.png);
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center;
}
body .progress.gagne span {
	display:none
}
body .progress.gagne span:first-child {
	display:block;
}
body .progress span.active
{
	background-image: url(../img/etoile_1.png);
}
body .progress span:last-child
{
	margin-right: 0;
}
.validation {
	line-height: 0;
	display: none;
	position: absolute;
	right: 0;top: 5px;
	height: 58px;
}
.intrus .validation {
	top: auto !important;
	bottom: 5px;
}
.validation img {
	height: 100%;
}
.touchevents .validation.active {
	line-height: 0;
	display: block;
}
/*Association*/
body.intrus .container,
body.melimelo .container,
body.association .container,
body.quiz .container,
body.trous .container,
body.magnetophone .container
 {
	opacity: 0;
}
body.association .header {
	
}
.container.loaded {
	opacity: 1;
	transition: opacity .5s ease-in-out 0s;
}
body.intrus .container.loaded,
body.melimelo .container.loaded,
body.association .container.loaded,
body.quiz .container.loaded,
body.trous .container.loaded,
body.magnetophone .container.loaded
{
	opacity: 1;
}
.jeu{
	transition: opacity .5s ease-in-out 0s;
	position: relative;
}
.jeu.loaded,.theme.loaded {
	opacity: 1;
}
.jeu.loading,.theme.loading {
	opacity: 0;
}
body.melimelo .cache,
body.intrus .cache,
body.association .cache {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0);
	top: 0;left: 0;z-index: 9;
}
body.association .picto {
	position: absolute;
	bottom: 10px;
	right: 10px;
	cursor: pointer;
	display: none;
}
body.association .help {
	position: absolute;
	bottom: 10px;
	right: 10px;
	cursor: pointer;
}
body.association,
body.quiz {
	margin: 0;
	overflow-x: hidden;
}
body.association .grille,
body.intrus .grille,
body.quiz .grille {
	display: flex;
	justify-content: space-between;
}
body.association:not(.deborde) .grille {
		margin-top: 70px;
	
}
.jeu {
	padding:0 7%;
}
body.intrus .dropzone{
	display: flex;flex-wrap: wrap;
	align-items: center;
	min-height: 100px;
	border: 3px solid #39925a;
	border-radius:20px
}
body.intrus .dropzone>div{
	margin-right: 1%;
}
body.intrus .grille {
	min-height: 100px;;
	background: rgba(255,255,255,.5);
	flex-wrap: wrap;
	align-items: center;
	/*border: 3px solid #39925a;*/
	border-radius:20px
}
body.intrus.deborde .grille {
	margin-top:0 ;
}
body.vertical .jeu,
body.vertical .bigson
 {
	padding:0 20px;
}

body.association .cell,
body.quiz .cell {
	/*border: 1px solid #c0c0c0;*/
	/*display: table-cell;
	position: relative;*/
	position: relative;
	border-radius: 20px;
	
}
body.association .cell:last-child,body.association .etiquettes>div:last-child {
	margin-right: 0;
}
body.association .grille div.vignette,
body.quiz .grille div.vignette {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
}
body.association .grille div.vignette {
	border: 4px solid #8559e2;
	background: white url(../img/200.gif) no-repeat center;
	line-height: 0;
}
body.association .grille div.vignette>img {
	height: auto;
}
body.quiz .grille div.vignette {
	border: 4px solid #e823ff;
	line-height: 0;
}
body.association .etiqdest {
	position: relative;
}
body.association .etiqdest.active>div
{
	border: none;background: transparent;
}
body.association .etiqdest>div.pose {
	position: absolute;
	top: 0;
	left: 0;
	margin-top: 0 !important;
}
body.association .etiquettes {
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	/*margin-top: 40px;*/
}

img.junk {
	height: 0;width: 100%;
}
body.association .etiquettes>div {
	width: 100%;
	max-width: 318px;
	height: 50px;
	
}
body.association .etiquettes>div,
body.association .cell,
body.quiz .cell {
	margin-right: 20px;
}
body.quiz .cell:last-child {
	margin-right: 0;
}
body.intrus .etiquette,
body.association .etiquette {
	margin-bottom: 5px;
	display: flex;
	border-radius: 27px;
	height: 54px;
	background: white;
	justify-content: space-between;
	text-align: center;
}
body.association .etiquette {
	border: 3px solid #8559e2;
}
body.intrus .etiquette {
	border: 2px solid #39925a;
	position: relative;
}
body.intrus .cell,
body.intrus .dropzone .etiquette {
	flex:0 0 48%;
	height: 54px;
	margin: 0 1%;
}
body.intrus .cell .etiquette {
	width: 100% !important;
}
body.intrus .etiquette .son,
body.association .etiquette .son{
	border-radius:50%;
	background: #fcff36;
	border: 3px solid transparent;
	width: 50px;;
	background-image: url(../img/icone_son.png);
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	height: 100%;
}

body.intrus .etiquette .son{
	border: 3px solid transparent;
}
body.intrus .theme {
	text-align: center;
	margin-top: 60px;
	position: relative;
}
body.deborde.intrus .theme {
	margin-top: 0;
	
}
body.intrus .theme p {
	display: inline-block;
	background: #cc3333;
	text-transform: uppercase;
	margin: auto;
	width: auto;
	font-size: 28px;
	padding: .35em 1em .2em 1em;
	color: white;
	border-top-left-radius:20px;
	border-top-right-radius:20px;
}
body.association .etiqdest>div
{
	/*font-size: 30px;*/
}
body.association .etiquettes>div>div, body.association .ui-draggable, .anime {
	
	
}
body.association .etiquettes>div>div p {
	margin: 0;
	width: 100%;
	display: inline-block;
}
body.association .etiquettes>div {
	
}
body.association .anime {
	padding: 2px 10px !important;
	border: 1px solid #00f !important;
	border-radius: 5px !important;
	background: white !important;
}

@media (max-width:768px) {
	body.intrus .cell .etiquette,
	body.intrus .cell {
		flex:0 0 48%;
		
	}
	body.intrus .theme p {
	    border-top-left-radius: 20px;
	    border-top-right-radius: 20px;
		padding: .35em 1em .2em 1em;
	}
	.validation {
		right: 0;top: 0;
		height: 40px;
	}
}
@media (max-width:512px) {
	body.intrus .theme p {
	    font-size: 24px;
	    border-top-left-radius: 20px;
	    border-top-right-radius: 20px;
	}
}
body.association .etiqdest>div {
	height: 54px;
	border: 3px dotted #8559e2;
	border-radius: 27px;
	text-align: center;
	width: 100%;
	margin-top: 10px;
	background-color: white;
	position: relative;
}
body.association.fullheight .etiqdest>div,
body.association.deborde .etiqdest>div,
body.association.smallVertical .etiqdest>div
 {
	height: 40px;
	margin-top: 3px;
	border: 1px dotted #8559e2;
}
body.association.fullheight .etiqdest.active>div {
    border: none;
}
body.association.fullheight .etiquettes {
	margin-top: 10px;
}
body.intrus:not(.fullheight) .etiquette{
	
}
body.intrus.fullheight .etiquette,
body.intrus.deborde .etiquette,
body.intrus.smallVertical .etiquette,
body.intrus.fullheight .cell,
body.intrus.deborde .cell,
body.intrus.smallVertical .cell,
body.association.fullheight .etiquette,
body.association.deborde .etiquette,
body.association.smallVertical .etiquette {
	height: 40px !important;
}
body.intrus.fullheight .etiquette .son,
body.intrus.deborde .etiquette .son,
body.intrus.smallVertical .etiquette .son,
body.association.deborde .etiquette .son,
body.association.smallVertical .etiquette .son,
body.association.fullheight .etiquette .son {
	width: 37px;
	cursor: pointer;
	background-size: contain;
}
body.intrus  .etiquette .label,
body.association  .etiquette .label{
	flex: 1;
	text-align: left;
	align-self: center;
	display: inline-block;
	margin-left: 55px;
}
body.intrus.fullheight  .etiquette .label,
body.association.fullheight  .etiquette .label,
body.association.smallVertical  .etiquette .label,
body.association.deborde  .etiquette .label{
	margin-left: 37px;
	line-height: 1em;
}
.label {
	font-size: 25px;
}
@media (max-width:1200px) {
	body.melimelo  .etiquette,
	.label{
		font-size: 22px;
	}
}
@media (max-width:768px) {
	body.melimelo  .etiquette,
	.label{
		font-size: 20px;
	}
}
@media (max-width:800px) {
	body.melimelo  .etiquette,
	.label{
		font-size: 18px;
	}
}
@media (max-width:600px) {
	body.melimelo  .etiquette,
	.label{
		font-size: 14px;
	}
}

@media (max-width: 910px) {
	body .progress {
		padding: 0 0 0 0 ;
		position: relative;
	}
	body .progress span {
		height: 40px;
		width: 4.5vw;
	}
	body .progress .validation {
		width: 6.5vw;
		min-width: 50px;
	}
}
@media (max-width: 768px) {
	body .header {
		height: 40px;
	}
	
	.home img
	{
		width: 40px;
	}
	.navindices  img#open {
		width: 50px;
	}
	.navindices #nbindices {
	    top: 7px;
	    right: 3px;
		font-size: 12px;
	}
}

@media (max-width: 500px) {
	body .progress span {
		margin-right: 2px;
	}
	
	body.vertical .jeu,
	body.vertical .bigson {
    padding: 0 10px;
}
	body .header .home {
		position: absolute;
		left: 10px;
	}
	body .header .navindices {
		position: absolute;
		right: 10px;
	}
	body .header .validation {
		position: absolute;
		right: 68px;
		cursor: pointer;
		height: 40px;
	}
	/*body.association .grille,*/
	body.intrus .dropzone{
		display: block;
		width: 50%;
	}
	body.association .grille {
		display: block;
	}
	body.intrus .grille .cell{
		flex: 0 0 98%;;
	}
	body.association .jeu {
		display: flex;
	}
	body.association .etiqdest {
		font-size: .8em;
	}
	
	body.association .etiquettes>div {
		font-size: .8em;
	}
	body.association .etiquettes {
		margin-top: 0;
		display: block;
		width: 50%;
		height: 100%;padding: 0;
		position: absolute;
		right: 0;
	}
	body.association .cell {
		margin-bottom: 10px;
		width: 48%;
		float: left;
		clear: both;
	}
	body.association .cell:last-child {
		float: right;clear: none;
	}
	body.association .cell,body.association .etiquettes>div {
		margin-right: 0;
	}
	body.association .grille, .etiquettes, body.intrus .grille, body.quiz .grille, body.quiz .question {
	    padding: 0;
		margin-top: 0 !important;
	}
	body.intrus .dropzone {
	    margin: 0;
	}
	body.intrus .jeu {
		margin: 0 10px;
	}
	body.vertical.intrus .jeu {
	    padding: 0;
	}
	body.association .container,
	body.quiz .container {
		height: auto;
	}
	body.intrus .theme {
		margin-top: 0;
		
	}
}



/**/
body.quiz .grille {
	padding-bottom: 20px;
}
.wrapperprop.good .prop,
body.quiz .cell .vignette.good {
	border-color:yellow;
	}
.wrapperprop.bad .prop,
body.quiz .cell .vignette.bad {
	border-color:  #ff596b;
}
.wrapperprop.corrige .prop {
	border-color: #ff596b;
}
body.quiz .question {
	display: flex;
}
body.quiz .question p {
	margin: auto;
	background: #e823ff;
	width: 85%;
	color: white;
	font-size: 28px;
	padding: .5em;
	text-align: center;
	border-radius: 15px;
}
body.quiz.smallVertical .question p,
body.quiz.smallHorizontal .question p{
	font-size: 20px;
}
@media (max-width: 500px) {
	body.quiz .grille {
		margin: auto;
		flex-wrap: wrap;
	}
	body.quiz .cell {
		margin-bottom: 10px;
		margin-right: 0;
	}
	body.quiz .question {
		height: auto !important;
		padding: 20px 0;
		text-align: center;
	}
	body.quiz .cell {
	    flex: 0 0 48%;
	}
	body.quiz .cell:last-child {
	   margin: auto;
	}
}

canvas {
	width: 100%;
	height: 100vH;
	position: fixed;
	top: 0;
	
}

