body{
	font: 14px verdana, arial;
	margin:0px;
	padding: 0px;
	overflow: hidden;	/*masque les ascenceurs*/
	background-size: cover;
	background-image: url("images/background/fond_body/Pink1_faded.jpg");
	background-color: #3d5e22;
	
}

#zone_jeu{
	margin:0px;
	padding: 0px;
	border: 4px solid white;
	border-radius: 20px;
	position: absolute;
	top: 50%;            
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.noSelection{
	/* pour que le texte ne soit pas selectionnable  */
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select:none;
	user-select:none;
	-o-user-select:none;
}

/* fenetre de demarrage */
#start_window{
    visibility: hidden; /*visible*/
	position: absolute;
	top: 50%;            
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);

	/* fenetre type examen */
	width: 500px;
    height: 450px;
    border-radius: 20px;
    background-color: lightblue;
	border: 5px solid rgb(90, 81, 211);
	box-shadow: 2px 2px 14px 4px rgba(131, 125, 217, 1);
	transition: 0.2s ease-in;
}

#start_window_header, #start_window_footer{
	margin: auto;
	height: 50px;
	/* pour que le texte ne soit pas selectionnable  */
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select:none;
	user-select:none;
	-o-user-select:none;
	font-weight: bold;
	font-size: 40px;
	font-family: 'Brush Script MT', cursive, verdana;
}
#start_window_header p{
	margin: 10px;
	text-align: center;
}
 
#start_window_footer{
	margin-top: 50px;
	font: bold 10px verdana;
	height: 20px;
}
#start_window_footer p{
	margin-top: 0px;
	text-align: center;
}
 
#start_window_bt_area{
	justify-content:center;
	margin-top: 60px;
}
.start_window_bt{
	margin: auto;
	margin-top: 30px;
	margin-bottom: 30px;
	cursor: pointer;
	font-weight: bold;
	padding: 8px;
	border-radius: 8px;
	background-color: lightgreen;
	width: 200px;
	height: 20px;
	border: 2px solid blue;
	text-align: center;
	background-image: linear-gradient(rgba(38, 57, 231, 0.5), rgba(157, 222, 226, 0.5));
}
.start_window_bt:hover{
	border: 2px solid white;
	background-image: linear-gradient(rgba(45, 142, 233, 0.65), rgba(157, 222, 226, 0.65));
	box-shadow: 0px 0px 14px 4px rgb(194, 192, 212);
}
/* fenetre des messages */
#message_window {
    visibility: hidden; /* visible */
	position: absolute;
	top: 90%;
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
 
    width: 600px;
    height: 80px;
    border-radius: 20px;
    background-color: lightblue;
	border: 4px solid rgb(15, 15, 172);

	padding: 14px;
	padding-left: 20px;
	padding-right: 40px;

	background-image: url('images/UI/leftclick.png');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: right bottom; 
	font-size: 18px;
}

#message_window_bts{
	visibility: hidden;
	margin: 20px;
	display:flex;
	justify-content:center;
	/* pour que le texte ne soit pas selectionnable quand on parcourt les messages */
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select:none;
	user-select:none;
	-o-user-select:none;
}

#bt_yes, #bt_no {
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center;
	width: 40px;
	height: 40px;
	cursor: pointer;
}
#bt_yes {
	background-image: url('images/UI/yes.png');
}
#bt_no {
	background-image: url('images/UI/no.png');
}


/* fenetre d'examen */
#examen_window {
    visibility: hidden; /*visible*/
	position: absolute;
	top: 50%;	
	left: 50%;
	/* on centre par rapport à la moitié de taille de la fenetre */
	margin-left:-300px; 
	margin-top: -170px;
	/* plus utilisé car probleme avec la fonction shake en js qui utilise aussi transform, mais en px au lieu de %. 
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	*/
	width: 600px;
    height: 380px;
    border-radius: 20px;
    background-color: lightblue;
	border: 5px solid rgb(90, 81, 211);
	box-shadow: 2px 2px 14px 4px rgba(131, 125, 217, 1);
	transition: 0.2s ease-in;
}

#zone_img, #zone_description, #zone_bt {
	margin: 20px;
	display:flex;
	justify-content:center;
}

#zone_progress_bar{
	margin: 10px;
	margin-left: 20px;
	display:flex;
	background: rgb(128, 128, 134);
	border-radius:10px;
	border: 2px solid rgba(44, 43, 43, 0.445);
}

#progress_bar{
	visibility: hidden; 
	height:20px;
	width:1%;
	float: left;
	border-radius:8px;
	border: 1px solid white;
	background: rgba(131, 125, 217, 1);
	box-shadow: 2px 2px 10px 1px rgba(131, 125, 217, 1);
    /*transition: all 0.8s ease-out;	defini dans le js*/	
}

#examen_window_close_bt {
	position: relative;
  	float: right;
	margin: 6px;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

#zone_img{
	height: 200px;
}

#zone_img img{
	height: 160px;
}

#textvignette{
	visibility: hidden;
	border: 4px solid #d7489f; /* #527ce1;*/
	padding: 24px;
	padding-top: 2px;
	padding-bottom: 4px;
	position: absolute;
	margin:0px; 
	bottom:85px;
	background-color: black;
	border-radius: 18px;
	color: white;
	font: bold 20px verdana;
	/* pour que le texte ne soit pas selectionnable  */
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select:none;
	user-select:none;
	-o-user-select:none;
}

.spacer, .spacer2{
    width:40px;
    height:auto;
    display:inline-block;
}
.spacer2{
    width:80px;
}
 
.textbutton{
	cursor: pointer;
	font-weight: bold;
	padding: 8px;
	border-radius: 8px;
	background-color: lightgreen;
	width: 200px;
	height: 20px;
	border: 2px solid blue;
	text-align: center;
	background-image: linear-gradient(rgba(38, 57, 231, 0.5), rgba(157, 222, 226, 0.5));
}
 .textbutton:hover{
	border: 2px solid white;
	background-image: linear-gradient(rgba(45, 142, 233, 0.65), rgba(157, 222, 226, 0.65));
	box-shadow: 0px 0px 14px 4px rgb(194, 192, 212);
}

/* fenetre score */
#score_window {
    visibility: hidden; /*visible*/
	position: absolute;
	top: 50%;	
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	width: 438px;
    height: 550px;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center; 
	background-image: url('images/UI/score_panel.png');
}

.score_elem{
	position: absolute;
	color: white;
	display: flex;
	justify-content: center;
	align-content: center;
	flex-direction: column;
	
}
.score_elem p{
	margin: auto;
	font: bold 30px verdana;
	font-family: 'Brush Script MT', cursive;
	/* pour que le texte ne soit pas selectionnable  */
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select:none;
	user-select:none;
	-o-user-select:none;
}

#etoile_bronze{
	left: 32px;
	top: 140px;
	width: 125px;
    height: 125px;
}
#etoile_argent{
	left: 258px;
	top: 140px;
	width: 125px;
    height: 125px;
}
#etoile_or{
	left: 143px;
	top: 105px;
	width: 125px; 
    height: 125px;
}
.star{
	animation-duration: 2s;
	animation-iteration-count: 1;
	transform-origin: center;
	position: absolute;
}
.starFadeIn{
	animation: 1s fadeIn;
	animation-fill-mode: forwards;
	visibility: hidden;
}

.star:hover {
	cursor: pointer; 
	animation-name: bump;
	animation-timing-function: ease-in-out;
}
@keyframes bump {
	0%  { transform: scale(1); }
	20% { transform: scale(.9); }
	30% { transform: scale(1.15);}
	35% { transform: scale(1.08);}
	38% { transform: scale(1.1);}
	62% { transform: scale(1.1);}
	70% { transform: scale(1.15);}
	80% { transform: scale(.9); }
	100% { transform: scale(1); }
}

@keyframes fadeIn {
	0% {
	  opacity: 0;
	}
	100% {
	  visibility: visible;
	  opacity: 1;
	}
  }

#score_title{
	width: 284px;
	height: 60px;
	top: 16px;
	left: 75px;
}

#nb_rep, #chrono{
	width: 300px;
	height: 60px;
	left: 60px;
}
#nb_rep{top: 288px;}
#chrono{top: 382px;}

#score_close_bt{
	position: absolute;
	width: 40px;
	height: 40px;
	top: 460px;
	left: 186px;
	cursor: pointer;
}

/* fenetre score de l'accueil */
#highscore_window{
    visibility: hidden; /*visible*/
	position: absolute;

	top: 50%;            
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	
	width: 600px;
    height: 400px;
    border-radius: 20px;
	border: 4px solid rgb(90, 81, 211);
    background-color: lightblue;
	box-shadow: 2px 2px 14px 4px rgba(131, 125, 217, 1);
}

#highscore_window_close_bt {
	position: relative;
  	float: right;
	margin: 10px;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

#highscore_window_header{
	margin: auto;
	margin-top: 0px;
	margin-left: 60px;	/* largeur + marge du bouton close */
	text-align: center;
	font-weight: bold;
	font-size: 40px;
}

#highscore_window table{
	font-family: 'lato', sans-serif;
	margin: auto;
	margin-top: 60px;
	width:94%;
	font-size: 16px;
	text-align: center;
	font-weight: bold;
	color: white;
	border-spacing: 10px 10px;

}

#highscore_window table th{
	border-radius: 10px;
	border: 2px solid white;
	height: 50px;
	font-size: 20px;
	background-color: rgb(90, 81, 211);
	color: white;
}

#highscore_window table td{
	border-radius: 10px;
	border: 1px solid white;
	background-color: rgb(141, 135, 216);
	height: 40px;
}

#highscore_window .exam-name{
	background-color: rgb(84, 79, 158);
}

/* fenetre des credits */
#credits_window{
    visibility: hidden; /*visible*/
	position: absolute;
	top: 50%;            
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);

	/* fenetre type examen */
	width: 500px;
    height: 560px;
    border-radius: 20px;
	border: 4px solid black;
    background-color: #ced9ea;
	box-shadow: 2px 2px 14px 4px rgb(107, 106, 117);
}

#credits_window_close_bt {
	position: relative;
  	float: right;
	margin: 10px;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

#credits_window_header{
	margin: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: 60px;	/* largeur + marge du bouton close */
	text-align: center;
	font-weight: bold;
	font-size: 40px;
	font-family: verdana;
}

#credits_text{
	margin: auto;
	text-align: center;
}

.credits_title{
	font-weight: bold;
	color: #333597;
}


/* fenetre options */
#options_window{
    visibility: hidden; /*visible*/
	position: absolute;
	top: 50%;            
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);

	/* fenetre type examen */
	width: 400px;
    height: 260px;
    border-radius: 20px;
	border: 4px solid rgb(90, 81, 211);
    background-color: lightblue;
	box-shadow: 2px 2px 14px 4px rgba(131, 125, 217, 1);
}

#options_window_close_bt {
	position: relative;
  	float: right;
	margin: 10px;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

#options_area{
	margin-top: 30px;
}

#options_window_header{
	margin: auto;
	margin-top: 0px;
	margin-left: 60px;	/* largeur + marge du bouton close */
	text-align: center;
	font-weight: bold;
	font-size: 40px;
	font-family: 'Brush Script MT', cursive, verdana;
}

.range_slider{
	margin: auto;
	margin-top: 20px;
	margin-right: 70px;
	padding: 8px;
	display: flex;
    align-items: center;
	justify-content:right;
	font-weight: bold;
    height: 10px;
}

.range_slider label{
	margin: 10px;
}
.range_slider input{
	cursor: pointer;
}

/* fenetre de revision */
#revision_window {
    visibility: hidden; /*visible*/
	position: absolute;
	top: 50%;	
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);

	width: 600px;
    height: 380px;
    border-radius: 20px;
    background-color: lightblue;
	border: 5px solid rgb(90, 81, 211);
	box-shadow: 2px 2px 14px 4px rgba(131, 125, 217, 1);
	transition: 0.2s ease-in;
}

#revision_window_close_bt {
	position: relative;
  	float: right;
	margin: 6px;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

#revision_title{
	margin: 10px;
	margin-left: 40px;
	display:flex;
	justify-content:center;
	font: bold 28px verdana;
}

#revision_explication{
	margin: 4px;
	display:flex;
	justify-content:center;
	font: 12px verdana;
}

#revision_zone_img{
	margin: 10px;
	display:flex;
	justify-content:center;
	height: 200px;
	cursor: pointer;
}

#revision_textvignette{
	border: 4px solid #d7489f; /* #527ce1;*/
	padding: 24px;
	padding-top: 2px;
	padding-bottom: 4px;
	position: absolute;
	margin:0px; 
	bottom:30px;
	background-color: black;
	border-radius: 18px;
	color: white;
	font: bold 20px verdana;
}
