/* CSS Document */
body {
	background-color: #1e2734;
	margin: 0;
	overflow-x: hidden;
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	color: white;
}
.main {
    overflow-x: hidden;
}

/* ---------------------------------------- */
/* HEADER 									*/
/* ---------------------------------------- */
header {
	position: relative;
	z-index: 10;
}
#main_menu {
	background-color: #333;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	height: 45px;
}
#logo_menu {
	height: 100%;
	float: left;
	margin: 0 10px;
}
#main_menu ul {
	list-style: none;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: end;
	    -ms-flex-pack: end;
	        justify-content: flex-end;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	padding: 0;
	margin: 0;
	width: 100%;
}
#main_menu li {
	margin-right: 15px;
	font-size: 1.3em;
	height: 100%;
}
#main_menu .link_page {
	color: #FEFAE0;
	text-decoration: none;
	cursor: pointer;
	position: relative;
    letter-spacing: 0.05rem;
    -webkit-transition: 0.5s all ease-in-out;
    -o-transition: 0.5s all ease-in-out;
    transition: 0.5s all ease-in-out;
    text-align: center;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    text-transform: uppercase;
    font-weight: 700;
	height: 100%;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
#main_menu .link_page:hover {
	color: #FCF6B8;
	letter-spacing: 0.1rem;
}
#main_menu .link_page:hover:before {
    left: 25%;
    right: 25%;
}
#main_menu .link_page:before {
    border-top: 3px solid #E47B2D;
    border-bottom: 3px solid #E47B2D;
    display: block;
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 100%;
    right: 100%;
    -webkit-transition: 0.48s all ease-in-out;
    -o-transition: 0.48s all ease-in-out;
    transition: 0.48s all ease-in-out;
}
#main_menu h1 a {
	color: white;
	padding-left: 5px;
	text-decoration: none;
}


/* ---------------------------------------- */
/* HOMEPAGE									*/
/* ---------------------------------------- */
#logo_homepage {
	margin: auto;
	display: block;
	width: 50%;
	max-width: 600px;
}
.title_section {
	width: 100%;
	text-align: center;
	background-color: #333333;
	font-size: 2em;
	color: #FDF9F2;
	padding: 10px 0;
}
/* BACKGROUND */
#homepage {
	position: relative;
}
#particles-js canvas {
    display: block;
    vertical-align: bottom;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
    -webkit-transition: opacity .8s ease, -webkit-transform 1.4s ease;
    transition: opacity .8s ease, -webkit-transform 1.4s ease;
    -o-transition: opacity .8s ease, transform 1.4s ease;
    transition: opacity .8s ease, transform 1.4s ease;
    transition: opacity .8s ease, transform 1.4s ease, -webkit-transform 1.4s ease
}
#particles-js {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -10;
    top: 0;
    left: 0
}
.horloge {
    opacity: 0.2;
    position: absolute;
    -webkit-filter: brightness(0);
            filter: brightness(0);
}
#horloge1 {
	width: 900px;
	top: 100px;
	left: -200px;
	z-index: -5
}
#horloge2 {
	width: 800px;
	bottom: 150px;
	right: -100px;
	z-index: -5;
	-webkit-transform: rotate(80deg);
	    -ms-transform: rotate(80deg);
	        transform: rotate(80deg);
}
/* Vidéo */
#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;
}
@media only screen and (max-width: 920px) {
	#video > *
	{
		width: 97vw;
		height: 54vw;
	}
	#video
	{
		min-height: 54vw;
	}
}
/* INTRO */
.game_intro {
	color: white;
	text-align: justify;
}
.img_demo {
	width: 50%;
	display: block;
	margin: auto;
	border-radius: 50%;
}
#espoirs_noyes_demo {
	width: 250px;
	height: 250px;
	margin: auto;
}
.demo_btn.disabled {
	color: #6C6C6C;
    background-color: #64320C;
	cursor: default;
}
.demo_btn.disabled:hover {
	color: #6C6C6C;
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
}
.demo_btn {
	color: white;
	display: block;
    font-weight: bold;
    font-size: 1.5em;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 10px;
    background-color: #E47B2D;
    -webkit-transition: -webkit-transform 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: -webkit-transform 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -o-transition: transform 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55), -webkit-transform 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
	text-align: center;
	width: 400px;
	margin: 10px auto
}
.demo_btn:hover {
	color: white;
    text-decoration: none;
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
}
/* GAME LIST */
#game_list {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-pack: distribute;
	    justify-content: space-around;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	margin-bottom: 20px;
}
.scenario img {
	width: 300px;
	position: absolute;
	top: 0;
	left: 50%;
	-webkit-transform: translateX(-50%);
	    -ms-transform: translateX(-50%);
	        transform: translateX(-50%);
    max-width: 100%;
}
.scenario {
	height: 300px;
	width: 300px;
	overflow: hidden;
	margin: 20px 1vw;
	border-radius: 20px;
	position: relative;
	-webkit-mask-image: -webkit-radial-gradient(white, black); /* correct corner bug during transition */
    max-width: 40vw;
    max-height: 40vw;
}
.scenario .img_sans_mort {
	opacity: 0;
	-webkit-transition: opacity 1s;
	-o-transition: opacity 1s;
	transition: opacity 1s;
	-webkit-filter: brightness(1.1);
	        filter: brightness(1.1);
}
.scenario:hover .img_sans_mort {
	opacity: 1;
}
.title_scenario {
	position: absolute;
	bottom: 0;
	text-align: center;
	width: 100%;
	color: white;
	background-color: rgba(0,0,0,0.70);
	padding: 5px;
	margin: 0;
	font-size: calc(1em + 0.5vw);
}
.scenario.prochainement::after {
    content: "À venir";
    position: absolute;
    top: 10%;
    left: 50%;
    width: 120%;
    text-align: center;
    background-color: rgba(228, 123, 45, 0.7);
    padding: 3px;
    font-size: calc(1em + 0.5vw);
    transform: translate(-50%, 0%) rotate(-10deg);
    font-weight: bold;
    white-space: pre;
    color: black;
}
.scenario.prochainement img {
    filter: brightness(0.5);
}
.scenario.jouable a::after {
	content: "Jouable";
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    background-color: rgb(228, 123, 45);
    padding: 15px 7px 0;
    font-size: calc(1em + 0.5vw);
    font-weight: bold;
    white-space: pre;
    color: black;
    border-bottom-left-radius: 10px;
}


/* ---------------------------- */
/* DEMO							*/
/* ---------------------------- */
/* lightbox */
.hb-wrapper img {
	border-radius: 30px;
}
/* Gestion des flipcards */
.thumb {
	display:block;
	position:relative;
}
.thumb-wrapper {
	display:block;
	width:100%;
	height:100%;
}
.thumb .back {
	background-size: 100% 100%;
	width:100%;
	height:100%;
	position:absolute;
	display:block;
}
.thumb .front {
	background-size: 100% 100%;
	display:block;
	width:100%;
	height:100%;
	position:absolute;	
}
/*
* Without CSS3 Scroll Up Effect
*/
.thumb.scroll {
	overflow: hidden;
}
.thumb.scroll .front {
	bottom:-200%;
}
/*
* CSS 3D Card Flip Effect
*/	
.thumb.flip {
	-webkit-perspective:800px;
	        perspective:800px;
}
.thumb.flip .thumb-wrapper {
	-webkit-transition: -webkit-transform 1s;
	transition: -webkit-transform 1s;
	-o-transition: transform 1s;
	transition: transform 1s;
	transition: transform 1s, -webkit-transform 1s;
	-webkit-transform-style: preserve-3d;
	        transform-style: preserve-3d;			
}
.thumb.flip .front {
	-webkit-transform: rotateY(-180deg);
	        transform: rotateY(-180deg);			   			
}
.thumb.flip .back,
.thumb.flip .front {
	-webkit-backface-visibility: hidden;
	        backface-visibility: hidden;
}
.thumb.flip .flipIt {
	-webkit-transform: rotateY(-180deg);
	        transform: rotateY(-180deg);			
}
/* demo */
#demo_page {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	-ms-flex-pack: distribute;
	    justify-content: space-around;
	min-height: calc(100vh - 50px);
	position: relative;
}
.card_group {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-ms-flex-pack: distribute;
	    justify-content: space-around;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center
}
.story {
	width: 12vw;
	height: 18vw;
	margin: 0.1vw;
	position: relative;
}
.story .front::before {
	content: '';
	position: absolute;
	height: 40px;
	width: 40px;
	background-color: rgba(255,255,255,0.70);
	bottom: 0;
	right: 0;
	border-top-left-radius: 20px;
	background-image: url("/images/games/undo/zoom-plus.svg");
	background-size: 60%;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	transition: all 0.1s;
}
.story:hover .front::before {
	height: 45px;
	width: 45px;
}
.story .front {
	overflow: hidden
}
.clue {
	position: relative;
}
.clue .front::before {
	content: '';
	position: absolute;
	height: 30px;
	width: 30px;
	background-color: rgba(255,255,255,0.70);
	bottom: 0;
	right: 0;
	border-top-left-radius: 10px;
	background-image: url("/images/games/undo/zoom-plus.svg");
	background-size: 60%;
	background-repeat: no-repeat;
	background-position: 50% 50%;
}
.clue:hover .front::before {
	height: 33px;
	width: 33px;
}
.clue .front {
	overflow: hidden
}
.clue, .fate, .fate_card {
	width: 8vw;
	height: 5vw;
	margin: 0.2vw 0;
}
.fate {
	border-radius: 5px;
	background-size: 100% 100%;
	-webkit-transition-delay: 2.4s;
	     -o-transition-delay: 2.4s;
	        transition-delay: 2.4s;
	-webkit-transition-property: opacity;
	-o-transition-property: opacity;
	transition-property: opacity;
	opacity: 0;
}
.fate_card {
    -webkit-transition: all 1s ease-in-out 1s, opacity 0s 2.4s;
    -o-transition: all 1s ease-in-out 1s, opacity 0s 2.4s;
    transition: all 1s ease-in-out 1s, opacity 0s 2.4s;
}
.story .back, .story .front, .story{
	border-radius: 15px;
}
.clue .back, .clue .front, .fate_card .back, .fate_card .front, .clue, .fate_card {
	border-radius: 5px;
}
/*.disable, .disable_temp {
	-webkit-filter: brightness(0.5);
	        filter: brightness(0.5);
}*/
.disable, .disable_temp {
	position: relative;
	overflow: hidden;
}
.disable:before, .disable_temp:before {
	position: absolute; 
	z-index: 2;
	display: block; 
	content: "";
	top: 0; right: 0; bottom: 0; left: 0;  
	background: hsla(0,0%,0%,0.5);
}
#choice {
	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-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	margin: auto;
	font-size: 1.5em;
}
.fate_card {
	position: absolute;
	top: -100vh;
}
#fate_cards {
	height: 5vw;
	width: 50%;
}
.actual_score {
	font-weight: bold;
	font-size: 1.1em
}
#round, #clues {
	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-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}
#nb_tour {
	background-image: url("/images/games/undo/horloge-blanche.png");
	background-size: 100% 100%;
	padding: 15px 40px 15px 40px;
	font-size: 2em;
}
.loupe {
	width: 70px;
}
#rules_explanation, #story_end, #true_story {
	position: absolute;
	top: 0;
	background-color: rgba(0,0,0,0.95);
	width: 100%;
	height: 100%;
	z-index: 5;
	color: white;
	overflow-x: auto;
	text-align: justify;
	padding: 0 20px;
	font-size: 0.8em;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
	opacity: 1;
	-webkit-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}
.demo_button {
    padding: 1rem 3rem;
    background: white;
    text-align: center;
    display: block;
    font-size: 1.7rem;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    will-change: transform;
    border: 0px transparent;
    border-radius: 0.3rem;
    -webkit-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    -webkit-transition-delay: 0.35s;
         -o-transition-delay: 0.35s;
            transition-delay: 0.35s;
    overflow: hidden;
	margin: 20px auto 10px auto;
}
.demo_button:before {
	-webkit-transform: translate(-120%, -50%) translateZ(0);
	        transform: translate(-120%, -50%) translateZ(0);
    content: "";
    display: block;
    background: #E47B2D;
    position: absolute;
    width: 200%;
    height: 500%;
    border-radius: 100%;
    -webkit-transition: 0.36s cubic-bezier(0.4, 0, 1, 1);
    -o-transition: 0.36s cubic-bezier(0.4, 0, 1, 1);
    transition: 0.36s cubic-bezier(0.4, 0, 1, 1);
}
.demo_button:hover {
    text-decoration: none;
}
.demo_button_text {
    color: #E47B2D;
    position: relative;
    top: 0;
    width: 100%;
    display: inline;
    height: auto;
    font-size: 1.7rem;
    -webkit-transition: 0.25s ease-in;
    -o-transition: 0.25s ease-in;
    transition: 0.25s ease-in;
    -webkit-transition-delay: 0.1s;
         -o-transition-delay: 0.1s;
            transition-delay: 0.1s;
}
.demo_button:hover:before {
    -webkit-transform: translate(-45%, -34%) translateZ(0);
            transform: translate(-45%, -34%) translateZ(0);
}
.demo_button:before {
    -webkit-transform: translate(-120%, -50%) translateZ(0);
            transform: translate(-120%, -50%) translateZ(0);
}
.demo_button:hover .demo_button_text {
    color: white;
}
.end_score {
	display: none;
	font-weight: bold;
	font-size: 1.3em;
}
#story_end, #true_story {
	display: none;
	opacity: 0;
	font-size: 1em;
	padding: 20px 10%;
}
#nb_indice {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
#buttons_end {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex; 
	-ms-flex-pack: distribute; 
	    justify-content: space-around; 
	min-width: 100%;
}
#bottom_hud {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex; 
	-ms-flex-pack: distribute; 
	    justify-content: space-around; 
	width: 90%;
}
#sound_icon {
	position: absolute;
	bottom: 5px;
	left: 5px;
	font-size: 2em;
	overflow: hidden;
	z-index: 6
}
.without_sound::before {
	content: '';
	height: 3px;
	width: 300%;
	background-color: red;
	position: absolute;
	top: -50%;
	left: 50%;
	transform: rotate(-45deg) translate(-50%, -50%);
}
@media screen and (max-width: 450px) {
	.story .front::before {
		height: 20px;
		width: 20px;
	}
	.story:hover .front::before {
		height: 25px;
		width: 25px;
	}
	.clue .front::before {
		height: 15px;
		width: 15px;
	}
	.clue:hover .front::before {
		height: 18px;
		width: 18px;
	}
}
@media screen and (max-width: 800px) {
	.demo_button {
		padding: 0.7rem 2rem;
	}
}
@media screen and (max-width: 700px) {
	.story {
		width: 23vw;
		height: 33vw;
	}
	.clue, .fate, .fate_card {
		width: 15vw;
		height: 9vw;
	}
	#story_end, #true_story {
		padding: 0 20px;
	}
	.hide_mobile {
		display: none;
	}
	#nb_indice {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}
	#nb_tour {
		padding: 4px 23px 2px 25px;
	}
}
@media screen and (max-width: 600px) {
	#buttons_end {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column
	}
}
@media screen and (max-width: 400px) {
	#instruction {
		font-size: 0.7em;
	}
	#bottom_hud {
		width: 99%;
	}
}

/* ---------------------------- */
/* Scenario Pages				*/
/* ---------------------------- */
.game_page {
    position: relative;
    z-index: 0;
}
.game_banner {
	height: 300px;
	max-height: 24vw;
	background-position-y: var(--backposy);
	background-position-x: var(--backposx);
	position: relative;
}
#designer {
	color: white;
	position: absolute;
	top: 5px;
	left: 5px;
	text-shadow: -1px -1px 5px black, 1px 1px 5px black;
	font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", "monospace"
}
.game_section {
    z-index: 1;
	position: relative;
	padding-bottom: 50px;
}
.undo_box {
	width: 200px;
	max-width: 100%;
	position: relative;
}
.game_pres {
	padding: 20px 5px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-pack: distribute;
	    justify-content: space-around;
	-ms-flex-line-pack: center;
	    align-content: center;
	margin-bottom: 50px;
}
#game_title {
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.56);
    color: white;
    width: 100%;
    margin: 0;
    padding: 7px;
    text-align: center;
    font-weight: bold;
}
.game_desc {
	width: 600px;
	margin: 10px;
	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-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	text-align: justify;
}

/* ---------------------------- */
/* Footer						*/
/* ---------------------------- */
footer 
{
	width: 100%;
	color: white;
	background-color: rgba(20, 20, 20, 0.9);
	position: relative;
	z-index: 2
}
.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: white;
	text-decoration: none;
}
footer a:hover
{
	color: #ddd;
} 
.mentionslegales {
	text-align: center;
	padding: 5px 0 5px 0;
	color: white;
}
.footer_col 
{
	margin: 5px 0 10px 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: 1px 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: 15px 0 0 0;
	padding: 15px 10px;
	font-size: 1.1em;
	cursor: pointer;
	display: block; 
}
#bouton_point_vente:hover {
	background-color: #909810;
}