/* Police de caractère */
@font-face {
	font-family: "Pop Joy";
	src: url('font_pop_joy.otf');
}


/* Propriété par défaut de la page */
body {
	font-family: "Pop Joy", Helvetica, Arial, sans-serif;
	color: #534948;
}

h1, h2, h3, p {
	color: #534948;
}



/* Version PC */
.quizGlobal {
	width: 70%;
	min-height: 870px;
	border: 2px #BBBBBB solid;
	border-radius: 10px;
	margin-left: 15%;
	margin-right: 15%;

	background-color: #DDDDDD;
}

.partieQuiz {
	display: none;
}

#accueilQuiz {
	display: block;
}



/* Accueil */
/* Page d'arrivée */
.accueilLogoQuiz, .accueilImage {
	width: 60%;
	padding-left: 20%;
	padding-right: 20%;
}

.accueilLogoQuiz img, .accueilImage img {
	width: 100%;
}

.accueilBouton {
	width: 80%;
	border: 2px #D0B7A3 solid;
	border-radius: 15px;
	margin-left: 10%;
	margin-right: 10%;
	padding-top: 10px;
	padding-bottom: 10px;
	text-align: center;
	background-color: #E1D2CB;
	user-select: none;
	transition: 0.1s;
}

.accueilBoutonSubGlobal {
	display: flex;
	flex-wrap: nowrap;
}

.accueilBoutonSub, .lienExterieur, .creditsBouton, .questionSuivanteBouton {
	width: 50%;
	border: 2px #D0B7A3 solid;
	border-radius: 15px;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: 25%;
	margin-right: 25%;
	padding-top: 0px;
	padding-bottom: 0px;
	text-align: center;
	background-color: #E1D2CB;
	user-select: none;
	transition: 0.1s;
}

.accueilBoutonSub {
	width: 40%;
	margin-left: 5%;
	margin-right: 5%;
}

.questionSuivanteBouton {	
	width: 80%;
	margin-left: 10%;
	margin-right: 10%;
}

.accueilBouton h2, .accueilBoutonSub h3, .lienExterieur h3, .creditsBouton h3, .questionSuivanteBouton h3 {
	cursor: pointer;
}

.accueilBouton:hover, .accueilBoutonSub:hover, .lienExterieur:hover, .creditsBouton:hover, .themeBouton:hover, .questionSuivanteBouton:hover, .boutonMusique:hover {  
	-ms-transform: scale(1.02);
	-webkit-transform: scale(1.02);
	transform: scale(1.02);

	cursor: pointer;
}


/* Contribuer au quiz */
.texteContribuerQuiz {
	height: 490px;
	overflow: auto;
	width: calc(100% - 30px);
	padding: 15px;
}

.texteContribuerQuiz p {
	text-align: justify;
}

.lienExterieur {
	width: 40%;
	margin-left: 29%;
	margin-right: 29%;	
}

.lienExterieur a {
	text-decoration: none;
}


/* Les Crédits */
.texteCreditsQuiz {
	height: 550px;
	overflow: auto;
	width: calc(100% - 30px);
	padding: 15px;
}


/* But du jeu */
.accueilButDuJeu {
	width: 80%;
	padding-left: 10%;
	padding-right: 10%;
}

.accueilButDuJeu h2 {
	text-align: center;
}

.accueilButDuJeu li {
	text-align: justify;
}


/* Choix du thème */
.themeBoutonGlobal {
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.themeBouton {
	min-width: 360px;
	max-width: 360px;
	height: 480px;
	border: 2px #D0B7A3 solid;
	border-radius: 15px;
	margin-top: 25px;
	margin-bottom: 25px;
	margin-left: 10px;
	margin-right: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	background-color: #E1D2CB;
	user-select: none;
	transition: 0.1s;
}

.themeBouton:nth-child(1) {
	margin-left: 20px;
}

.themeBouton:nth-child(8) {
	margin-right: 20px;
}

.themeBouton img {
	width: 100%;
}

.themeBouton h3 {
	width: 100%;
	cursor: pointer;
	text-align: center;
}


/* Thèmes Quiz - Description */
.themeQuizFond {
	width: 100%;
	height: 100%;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.4);
	display: none;
	position: fixed;
	z-index: 1;
	padding-top: 100px;
	left: 0;
	top: 0;
	overflow: auto;
}

.themeQuizGlobal {
	width: 80%;
	margin-left: 10%;
	margin-right: 10%;
	padding: 10px;
	border-radius: 10px;

	display: flex;
	flex-wrap: wrap;

	border: 2px #CCCCCC solid;
	background-color: #DDDDDD;
}

.themeQuizImage {
	width: calc(30% - 2px);
	border-right: 2px #CCCCCC solid;
}

.themeQuizImage img {
	width: 80%;
	margin-left: 10%;
	margin-right: 10%;
}

.themeQuizImage h2 {
	width: 100%;
	text-align: center;
}

.themeQuizDescription {
	width: 70%;
}

.themeQuizDescription p {
	width: calc(100% - 20px);
	padding: 10px;
	text-align: justify;
}

.boutonModeFacileON {
	border: 2px #00AF00 solid;
}

.boutonModeFacileOFF {
	border: 2px #AF0000 solid;
}


/* Les Questions */
#questionQuiz h1, #questionQuiz h2 {
	width: calc(100% - 40px);
	padding-left: 20px;
	padding-right: 20px;
	text-align: center;
}

.choixQuestionGlobal {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

.choixQuestion, .boutonReponseCache {
	display: flex;
	align-items: center;
	width: 40%;
	padding-top: 30px;
	padding-bottom: 30px;
	margin-bottom: 50px;
	border: 2px #D0B7A3 solid;
	border-radius: 15px;
	background-color: #E1D2CB;
	transition: 0.1s;
	user-select: none;
}

.choixQuestion:hover, .boutonReponseCache:hover {
	-ms-transform: scale(1.02);
	-webkit-transform: scale(1.02);
	transform: scale(1.02);

	cursor: pointer;
}

.choixQuestion h3, .boutonReponseCache h3 {
	width: calc(100% - 40px);
	padding-left: 20px;
	padding-right: 20px;
	text-align: center;
	cursor: pointer;
}

.zoneTexte {	
	width: 80%;
	height: 50px;
	margin-left: 10%;
	margin-right: 10%;
	border: 2px #D0B7A3 solid;
	border-radius: 10px;
	text-align: center;
	font-family: "Pop Joy", Helvetica, Arial, sans-serif;
}

.boutonReponseCacheGlobal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

.boutonReponseCache {
	width: 30%;
	padding-top: 0px;
	padding-bottom: 0px;
	margin-top: 20px;
}

.typeQuestion {
	display: none;
}

.boutonQuestionDesactive {
	pointer-events: none;
	cursor: default;
}

.boutonQuestionJuste {
	background-color: #A8F6BE;
}

.boutonQuestionFausse {
	background-color: #EC8E8E;
}

#questionReponseJustification {
	width: 95%;
	margin: 0 auto;
	border-top: 2px #BBBBBB solid;
}

#resultatReponse, #justificationReponse {
	width: 100%;
	text-align: center;
}

#reponseReponse {
	width: 100%;
	text-align: center;

	display: none;
	font-style: italic;
}


/* Résultats */
#finQuiz h1, #finQuiz p {
	width: calc(100% - 40px);
	padding-left: 20px;
	padding-right: 20px;
	text-align: center;
}

.resultatsGIF {

}

.resultatsGIF img {
	display: block;
	height: 380px;
	border-radius: 15px;
	margin: 0 auto;
}


/* Bouton Musique */
.boutonMusique {
	width: 10%;
	border-radius: 15px;
	padding-top: 10px;
	padding-bottom: 10px;
	text-align: center;
	background-color: #E1D2CB;
	user-select: none;
	transition: 0.1s;

	position: fixed;
	bottom: 15px;
	right: 15px;
}

.boutonMusiqueON {
	border: 2px #00AF00 solid;
}

.boutonMusiqueBruitage {
	border: 2px #AF8F00 solid;
}

.boutonMusiqueOFF {
	border: 2px #AF0000 solid;
}

#boutonActusID {
	border: 2px #D0B7A3 solid;

	position: fixed;
	bottom: 85px;
	right: 15px;
}


/* Bouton Mises à jour */
.misesAJourFond {
	width: 100%;
	height: 100%;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
	display: none;
	position: fixed;
	z-index: 1;
	padding-top: 100px;
	left: 0;
	top: 0;
	overflow: auto;
}

.miseAJourGlobal {
	width: calc(60% - 24px);
	margin-left: 20%;
	margin-right: 20%;
	padding: 10px;
	border-radius: 10px;

	display: flex;
	flex-wrap: wrap;

	border: 2px #CCCCCC solid;
	background-color: #DDDDDD;
}

.miseAJourDescription {
	width: 100%;
	height: 400px;
	border-top: 2px #BBBBBB solid;
	overflow-y: auto;
}

.miseAJourDescription h3 {
	line-height: 1.5;
}

.miseAJourDescription ul {
	margin-bottom: 30px;
}



/* Ajustement téléphone (pas 100% compatible) */
@media all and (max-width: 1100px) {
	/* Global */
	.quizGlobal {
		width: 95%;
		min-height: 1500px;
		margin-left: 2.5%;
		margin-right: 2.5%;

		position: relative;
	}

	.partieQuiz {
		height: calc(100% - 60px);

		position: absolute;
		bottom: 60px;
	}


	/* Accueil du site */
	.accueilLogoQuiz {
		width: 80%;
		padding-left: 10%;
		padding-right: 10%;
	}

	.accueilImage {
		width: 90%;
		padding-left: 5%;
		padding-right: 5%;
	}

	.accueilBouton {
		width: 90%;
		margin-left: 5%;
		margin-right: 5%;
	}

	.accueilBouton h2 {
		font-size: 50px;
	}

	.accueilBoutonSubGlobal {
		display: block;
		flex-wrap: default;
	}

	.accueilBoutonSub {
		width: 85%;
		margin-left: 7.5%;
		margin-right: 7.5%;
	}

	.accueilBoutonSub h3 {
		font-size: 30px;
	}


	/* Contribuer au quiz */
	.texteContribuerQuiz {
		height: 1000px;
	}

	.texteContribuerQuiz p {
		font-size: 30px;
	}

	.lienExterieur, .creditsBouton, .questionSuivanteBouton {
		width: 85%;
		margin-left: 6.5%;
		margin-right: 6.5%;
	}

	.lienExterieur a h3 {
		font-size: 30px;
	}

	.creditsBouton h3 {
		font-size: 30px;
	}


	/* Crédits */
	.texteCreditsQuiz {
		height: 1060px;
	}

	.texteCreditsQuiz p, .texteCreditsQuiz li {
		font-size: 30px;
	}

	.texteCreditsQuiz li {
		font-size: 25px;
	}


	/* But du jeu */
	.accueilButDuJeu {
		width: 90%;
		height: 1030px;
		margin-bottom: 50px;
		padding-left: 5%;
		padding-right: 5%;

		overflow: auto;
	}

	.accueilButDuJeu h2 {
		font-size: 50px;
	}

	.accueilButDuJeu h3 {
		font-size: 30px;
	}

	.accueilButDuJeu li {
		font-size: 25px;
	}

	#butQuiz .accueilBouton {
		width: 85%;
		margin-left: 7.5%;
		margin-right: 7.5%;
		padding-top: 0px;
		padding-bottom: 0px;
	}

	#butQuiz .accueilBouton h2 {
		font-size: 40px;
	}


	/* Choix du thème */
	.themeBoutonGlobal {
		height: 1100px;
		border-top: 2px #BBBBBB solid;
		border-bottom: 2px #BBBBBB solid;
		display: block;
		flex-wrap: default;
		overflow: auto;
		overflow-x: hidden;
	}

	.themeBouton {
		min-width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		height: auto;
		border: 2px #D0B7A3 solid;
		border-radius: 15px;
		margin-top: 25px;
		margin-bottom: 25px;
		margin-left: 20px;
		margin-right: 20px;
		padding-top: 10px;
		padding-bottom: 10px;
		background-color: #E1D2CB;
		user-select: none;
		transition: 0.1s;

		display: flex;
		flex-wrap: nowrap;
	}

	.themeBouton img {
		width: 30%;
		margin-left: 5%;
		margin-right: 5%;
	}

	.themeBouton h3 {
		width: calc(60% - 20px);
		padding: 60px 0;
		padding-left: 10px;
		padding-right: 10px;
		text-align: center;
		font-size: 30px;
	}


	/* Choix du thème - Description */
	.themeQuizGlobal {
		width: calc(90% - 24px);
		height: 1150px;
		margin-left: 5%;
		margin-right: 5%;
		overflow: auto;

		border: 2px #CCCCCC solid;
		background-color: #DDDDDD;
	}

	.themeQuizImage {
		width: 100%;
		border-right: none;
		border-bottom: 2px #CCCCCC solid;
	}

	.themeQuizImage img {
		width: 60%;
		margin-left: 20%;
		margin-right: 20%;
	}

	.themeQuizImage h2 {
		font-size: 50px;
	}

	.themeQuizDescription {
		width: 100%;
	}

	.themeQuizDescription p {
		font-size: 30px;
	}

	.themeQuizDescription .accueilBouton {
		margin-bottom: 20px;
	}


	/* Questions du quiz */
	#questionQuiz h1 {
		font-size: 50px;
	}

	#questionQuiz h2 {
		font-size: 35px;
		line-height: 1;
	}

	.zoneTexte {	
		width: 90%;
		height: 90px;
		margin-left: 5%;
		margin-right: 5%;
		font-size: 30px;
	}

	/* Questions QCM */
	.choixQuestionGlobal {
		display: block;
		flex-wrap: default;
		justify-content: default;
	}

	.choixQuestion {
		display: flex;
		align-items: center;
		width: 90%;
		margin-bottom: 40px;
		margin-left: 5%;
		margin-right: 5%;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.choixQuestion h3 {
		font-size: 30px;
		line-height: 1;		
	}

	/* Questions caches */
	.boutonReponseCacheGlobal {
		display: block;
		flex-wrap: default;
		justify-content: default;
	}

	.boutonReponseCache {
		width: 90%;
		margin-top: 20px;
		margin-bottom: 20px;
		margin-left: 5%;
		margin-right: 5%;
	}

	.boutonReponseCache:nth-child(1) {
		margin-bottom: 0px;
	}

	.boutonReponseCache h3 {
		font-size: 30px;
		line-height: 1;
	}

	/* Résultats d'une question */
	#resultatReponse {
		font-size: 40px;
		line-height: 0.8;
	}

	#reponseReponse {
		font-size: 30px;
	}

	#justificationReponse {
		font-size: 30px;
		line-height: 1;
	}

	.questionSuivanteBouton h3 {
		font-size: 30px;
	}


	/* Fin du quiz */
	#finQuiz h1 {
		font-size: 50px;
	}

	#finQuiz p {
		font-size: 30px;
	}


	/* Bouton musique */
	.boutonMusique {
		width: 50%;
		font-size: 25px;

		position: absolute;
		bottom: 15px;
		left: 25%;
		right: 25%;
	}


	/* Bouton Mises à jour */
	#boutonActusID {
		position: absolute;
		bottom: 120px;
	}

	.miseAJourGlobal {
		width: calc(90% - 24px);
		margin-left: 5%;
		margin-right: 5%;
	}

	.miseAJourDescription {
		height: 1000px;
	}

	.miseAJourDescription h3 {
		font-size: 30px;
	}

	.miseAJourDescription li {
		font-size: 25px;
	}

	.miseAJourDescription p {
		font-size: 25px;
	}
}