/* ------------------------ */
/* General					*/
/* ------------------------ */
@font-face {
	font-family: 'built-titling-bd';
	src: url('../../fonts/built-titling-bd.ttf');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'galapogo';
	src: url('../../fonts/galapogo.ttf');
	font-weight: normal;
	font-style: normal;
}
html {
	overflow-x: hidden;
}
body {
	background-image: url(../../../images/games/cosmicFactory/kaosmos-fond-galaxie.jpg);
	background-color: #222f4f;
	color: white;
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	position: relative;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	width: 100%;
	background-position-y: var(--backposy);
	background-position-x: var(--backposx);
	background-size: calc(100% + 50px);
}
strong
{
	font-weight: normal;
}

/* ------------------------ */
/* Header					*/
/* ------------------------ */
h1 {
	margin: 0;
	font-size: 3em;
	text-align: center;
	text-shadow: 2px 0 0 #4e9ec1, 0 2px 0 #4e9ec1, 0 -2px 0 #4e9ec1, -2px 0 0 #4e9ec1, 2px 2px 0 #4e9ec1, 2px -2px 0 #4e9ec1, -2px 2px 0 #4e9ec1, -2px -2px 0 #4e9ec1, 0px -1px 10px white;
}
#logo-kaosmos {
	max-width: 100%;
	width: 500px;
	font-family: built-titling-bd;
	letter-spacing: 4px;
	position: relative;
    z-index: 1;
    color: white;
}
#planete_top {
	position: absolute;
	top: -10px;
	left: -5px;
	max-width: 28%;
	transform: translateX(var(--txo0)) translateY(var(--tyo0));
}
#btn_menu {
	width: 2cm;
	height: 2cm;
	background-color: black;
	position: absolute;
	top: 20px;
	right: 0;
	z-index: 2;
	background-image: radial-gradient(circle at top right, #411e57, #411e57, #9b80ba, #411e57, #9b80ba, #411e57);
	cursor: pointer;
	transition: all 0.3s;
	-webkit-clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 85%, 0 15%);
			clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 85%, 0 15%);
}
.tour_blanc_burger {
	background-image: radial-gradient(circle at top right, #96959a, #96959a, #d6d7d8, #96959a, #d6d7d8, #96959a);
	position: absolute;
	top: 2%;
	left: 2%;
	width:  calc(96%);
	height: calc(96%);
	-webkit-clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 85%, 0 15%);
			clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 100%, 0 15%);
}
.content_menu_burger {
	position: absolute;
	background-color: #432032;
	width:  calc(92%);
	height: calc(92%);
	top: 4%;
	left: 4%;
	-webkit-clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 85%, 0 15%);
			clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 85%, 0 15%);
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 2.5em;
}
#menu_princ ul {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 260px;
	padding: 1px;
	background-image: radial-gradient(circle at top right, #96959a, #96959a, #d6d7d8, #96959a, #d6d7d8, #96959a);
}
#menu_princ
{
	z-index: 10;
	position: absolute;
	right: -262px;
	top: 20px;
	transition: all 0.3s;
	padding: 1px;
	background-image: radial-gradient(circle at top right, #411e57, #411e57, #9b80ba, #411e57, #9b80ba, #411e57);
}
#menu_princ ul, #menu_mobile ul
{
	list-style: none;
	margin: 0;
	padding: 0;
}
.elmt_menu
{
	text-decoration: none;
	color: white;
	font-size: 1.5em;
	background-color: #432032;
	position: relative;
	cursor: pointer;
	display: inline-block;
	padding: 4px;
	width: calc(100% - 8px);
	transition: all 0.1s;
}
.elmt_menu:hover
{
	padding: 4px 15px;
	width: calc(100% - 30px);
	background-color: #592A42;
}
.content_menu {
	position: relative;
	background-color: #312853;
	padding: 3px;
}
#choix_langue {
	position: absolute;
	top: 60px;
	left: 5%;
	z-index: 5;
	-webkit-transition: 0.3s all;
	-o-transition: 0.3s all;
	transition: 0.3s all;
	overflow: hidden;
	display: none;
	padding-top: 20px;
	width: 80px;
	background-color: #432032;
}
#btn_menu_langue {
	width: 80px;
	height: 80px;
	background-color: black;
	position: absolute;
	top: 0px;
	left: 5%;
	background-image: radial-gradient(circle at top right, #411e57, #411e57, #9b80ba, #411e57, #9b80ba, #411e57);
	cursor: pointer;
	transition: all 0.3s;
	z-index: 6;
	-webkit-clip-path: polygon(0% 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
			clip-path: polygon(0% 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.tour_blanc_menu_langue {
	background-image: radial-gradient(circle at top right, #96959a, #96959a, #d6d7d8, #96959a, #d6d7d8, #96959a);
	position: absolute;
	top: 2%;
	left: 2%;
	width:  calc(96%);
	height: calc(96%);
	-webkit-clip-path: polygon(0% 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
			clip-path: polygon(0% 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.drapeau_btn_langue {
	background-color: #432032;
	position: absolute;
	width:  92%;
	height: 92%;
	top: 4%;
	left: 4%;
	-webkit-clip-path: polygon(0% 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
			clip-path: polygon(0% 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.shadow_menu_langue {
	position: absolute;
	width:  92%;
	height: 92%;
	top: 4%;
	left: 4%;
	box-shadow: 5px 5px 25px black inset, -5px -5px 25px black inset;
	-webkit-clip-path: polygon(0% 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
			clip-path: polygon(0% 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.drapeau_carre_langue {
	width: 70px;
	height: 70px;
}
.libelle_langue, .drapeau_cube_langue {
	display: none;
}
.lien_langue {
	border-bottom: solid 1px;
	cursor: pointer;
	padding: 5px;
	display: block;
}
@media only screen and (max-width: 600px) {
	h1
	{
		position: relative;
		top: 40px;
	}
	body {
		background-image: url('../../../images/games/cosmicFactory/kaosmos-fond-galaxie-mobile.jpg');
	}
	footer 
	{
		background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_mobile.png");
	}
	footer::before {
		background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_top_mobile.png");
	}
	.page {
		background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_mobile.png");
	}
	.page::before {
		background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_top_mobile.png");
	}
	.page::after {
		background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_bottom_mobile.png");
	}
}
@media only screen and (max-width: 750px) {
	#menu_mobile
	{
		left: 50%;
		-webkit-transform: translateX(-50%);
		    -ms-transform: translateX(-50%);
		        transform: translateX(-50%);
		right: auto;
	}
}

/* ------------------------ */
/* Footer					*/
/* ------------------------ */
footer 
{
	background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte.png");
	background-size: 100%;
	position: relative;
	z-index: 2;
	margin: 15vw auto 0 auto;
	color: black;
	width: 90%;
}
footer::before {
	background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_top.png");
	background-size: 100%;
	width: 100%;
	height: 5vw;
	content: '';
	position: absolute;
	left: 0;
	top: -5vw;
}
.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;
	margin: 12px 0;
}
footer a
{
	font-family: 'edo';
	color: black;
	font-size: 1.2em;
	text-decoration: none;
}
footer a:hover
{
	color: #753BBD;
} 
.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;
}
#auteur, #illustrateur {
	font-size: calc(1em + 0.2vw);
	font-weight: bold;
	text-align: center;
	position: relative;
	top: -10px;
}
/* ---- */
/* PAGE */
/* ---- */
.page {
	background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte.png");
	background-size: 100%;
	width: 80%;
	padding: 0 5%;
	margin: 5vw auto 9vw auto;
	position: relative;
	color: black;
}
.page::before {
	background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_top.png");
	background-size: 100%;
	width: 100%;
	height: 5vw;
	content: '';
	position: absolute;
	left: 0;
	top: -5vw
}
.page::after {
	background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_bottom.png");
	background-size: 100%;
	width: 100%;
	height: 9vw;
	content: '';
	position: absolute;
	left: 0;
	bottom: -8.9vw;
}
.title_section {
	background-color: #6c3a9e;
	border-left: 20px solid white;
	padding:  3px 0 3px 10px;
	margin: 50px auto;
	width: 80%;
	font-family: galapogo;
	letter-spacing: 1px;
	font-size: 2em;
	color: white;
}
.question, #author_signing {
	font-size: 1.3em;
	color: #6c3a9e;
	border-bottom: dotted 2px;
	padding: 0 15px;
	width: 90%;
	position: relative;
	margin: auto;
	font-weight: bold;
	font-style: italic;
}
.reponse {
	font-size: 1.2em;
	padding: 10px 15px;
	width: 85%;
	position: relative;
	margin: auto;
	text-align: justify;
}
#author_signing {
    border: none;
    text-align: right;
	font-size: 1.8em;
}

/* ------ */
/* AUTHOR */
/* ------ */
#madcity_first {
	float: right;
	margin: 30px 0px 10px 20px;
	width: 500px;
	max-width: 30vw;
	box-shadow: 2px 2px 7px;
}
#madcity_second {
	float: left;
	margin: 10px 20px 10px 0px;
	width: 500px;
	max-width: 30vw;
	box-shadow: 2px 2px 7px;
}
#kaosmos_final {
	float: left;
	margin: 0px 20px 0px 10px;
	width: 500px;
	max-width: 30vw;
	box-shadow: 2px 2px 7px;
	position: relative;
	z-index: 1;
}
#pirate {
	position: fixed;
	animation-name: envole-pirate;
	animation-delay: 5s;
	animation-duration: 5s;
	animation-iteration-count: 1;
	z-index: 5;
	top: -100%;
	max-width: 20%;
}
@keyframes envole-pirate {
	from {
		top: 100%;
		right: -10%;
	}
	to {
		top: -100%;
		right: 50%;
	}
}

/* ------------ */
/* Outils		*/
/* ------------ */
#aid_page {
	display: flex;
	width: 100%;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-around;
	align-content: center;
}
/* ------------ */
/* Sablier		*/
/* ------------ */
#btn_pause
{
	display: none;
}
button
{
	border: none;
	margin: 10px;
	cursor: pointer;
	padding: 8px;
	background-color: #753BBD;
	border-radius: 5px;
	font-size: 1em;
}
button:hover
{
	background-color: #6633A5;
}
button:active
{
	background-color: #5B2D93;
}
#chrono 
{
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
#sablier_container 
{
	width: 250px;
	display: inline-block;
	vertical-align: middle
}
#sable_haut
{
	opacity: 0;
}
rect
{
	fill: #753BBD;/*753BBD*/
	stroke: #6633A5;
}
#btn_restart, #btn_run, #btn_pause {
	font-size: 3.6em;
	width: 80px;
	height: 80px;
	text-align: center;
	font-family: galapogo;
}
#outils {
	background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte.png");
	background-size: 100%;
	width: 90%;
	margin: 5vw auto 9vw auto;
	position: relative
}
#outils::before {
	background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_top.png");
	background-size: 100%;
	width: 100%;
	height: 5vw;
	content: '';
	position: absolute;
	left: 0;
	top: -5vw
}
#outils::after {
	background-image: url("../../../images/games/cosmicFactory/kaosmos_cartouche_texte_bottom.png");
	background-size: 100%;
	width: 100%;
	height: 9vw;
	content: '';
	position: absolute;
	left: 0;
	bottom: -8.9vw;
}
@media only screen and (max-width: 600px) {
	#sablier_container
	{
		width:50%;
		margin: auto
	}
}
/* ------------ */
/* Cartes		*/
/* ------------ */
#kaos_jeu {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
	max-width: 480px;
	width: 100%;
}
#kaos_apercu_cartes {
	display: flex;
	justify-content: space-evenly;
}
#kaos_carte_actu {
	background-size: 100% 100%;
	border-radius: 16px;
	margin-top: 3px;
	width: 48vw;
	height: 74vw;
	max-width: 322px;
	max-height: 500px;
	border: solid 2px black;
	background-color: rgba(0,0,0,0.1);
}
#kaos_carte_boutons {
	display: flex;
	justify-content: center;
	width: 100%;
	align-items: center;
}
#kaos_sound_btns {
	display: none;
	flex-direction: column;
	justify-content: space-between;
}
#kaos_devoiler_carte {
	max-width: 160px;
}
#kaos_repiocher_cartes {
	width: 60px
}
#kaos_sound_musique, #kaos_sound_son {
	padding: 5px; color: white;
}
.kaos_carte {
	width: 12vw;
	height: 20vw;
	margin: 2px;
	max-width: 90px;
	max-height: 140px;
}
.kaos_carte .front {
	background-image: url(../../../images/games/cosmicFactory/cartes/kaos_carte_1.jpg);
	background-size: 100% 100%;
	border-radius: 5px;
}
.kaos_carte .back {
	background-image: url(../../../images/games/cosmicFactory/dos_carte_kaos.jpg);
	background-size: 100% 100%;
	border-radius: 5px;
}

/* -- Gestion des flipcards -- */
.thumb {
	display:block;
	position:relative;
	float:left;
}
.thumb-wrapper {
	display:block;
	width:100%;
	height:100%;
}
.thumb .back {
	width:100%;
	height:100%;
	position:absolute;
	display:block;
}
.thumb .front {
	display:block;
	width:100%;
	height:100%;
	position:absolute;	
}
/*
* Without CSS3 Scroll Up Effect
*/
.thumb.scroll {
	overflow: hidden;
}
.thumb.scroll .front {
	bottom:-280px;
}
/*
* CSS 3D Card Flip Effect
*/	
.thumb.flip {
	perspective:800px;
}
.thumb.flip .thumb-wrapper {
	transition: transform 1s;
	transform-style: preserve-3d;			
}

.thumb.flip .front {
	transform: rotateY(-180deg);			   			
}

.thumb.flip .back,
.thumb.flip .front {
	backface-visibility: hidden;
}

.thumb.flip .flipIt {
	transform: rotateY(-180deg);			
}

#btn_game_generator {
	display: block;
	color: white;
	text-decoration: none;
	font-family: galapogo;
	letter-spacing: 1px;
	background-color: #6c3a9e;
	width: 300px;
	font-size: 2em;
	margin: auto;
	text-align: center;
	padding: 10px 0;
	border-radius: 14px;
}
#btn_game_generator:hover {
	background-color: #723DA8;
}
#btn_game_generator:active {
	background-color: #5F338B;
}
