/* -------------------------------------------------------------------------- */
/*                                  GLOBAL                                    */
/* -------------------------------------------------------------------------- */

*
{
	box-sizing: border-box;
}

img 
{
    max-width: 100%;
    height: auto;
}

body,
html
{
	margin: 0;
	padding: 0;
	font-size: 100%;
	height:100%;
}

body
{
	font-size: 0.875em; /* 14pt */
	font-family: 'californian', sans-serif;
}


@font-face {
 font-family: 'century';
 font-style: normal;
  font-weight: 400;
 src: local('Century Regular'), local('Century-Regular'), url("/front/projets/soulmates/fonts/Century-Schoolbook Normal.ttf") 
}

@font-face {
 font-family: 'century';
 font-style: italic;
  font-weight: 400;
 src: local('Century Italic'), local('Century-Italic'), url("/front/projets/soulmates/fonts/Century-Schoolbook Normal-Italic.ttf") 
}

@font-face {
  font-family: 'californian';
  font-style: normal;
  font-weight: 400; /* Poids normal */
  src: local('Californian Regular'), local('Californian-Regular'), url("/front/projets/soulmates/fonts/Californian FB Regular.ttf");
}

@font-face {
  font-family: 'californian';
  font-style: normal;
  font-weight: 700; /* Correction ici : weight 700 pour le gras */
  src: local('Californian Bold'), local('Californian-Bold'), url("/front/projets/soulmates/fonts/Californian FB Bold.ttf");
}

/* -------------------------------------------------------------------------- */
/*                               BACKGROUND                                   */
/* -------------------------------------------------------------------------- */

#scene
{
	position: relative;
	width: 800px;
	height: 550px;
	overflow: hidden;
	margin:auto;
}

#sol
{
	position: absolute;
	top: 20px;
	left: 50px;
	width: 700px;
	height: 530px;
	/*border: 1px dashed #666;*/
	pointer-events: none;
}

.decor-item
{
	position: absolute;
	width: 80px;
	height: 100px;
	text-align: center;
	color: white;
	line-height: 100px;
	pointer-events: none;
}

.meuble
{
	background-size: contain;
	background-repeat: no-repeat;
}

.porte
{
	/*background: #7f93bd;*/
	pointer-events: all;
	cursor: pointer;
}

.scene
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size:contain;
}

#bal
{
	background-color: #e0e0e0;
}

#cuisine
{
	background-color: #d4cea2;
}

#dehors
{
	background-color: #cdeded;
}

#crypte
{
	background-color: #edd6cd;
}

/* -------------------------------------------------------------------------- */
/*                               PERSONNAGES                                  */
/* -------------------------------------------------------------------------- */

.character
{
	position: absolute;
	width: 60px;
	height: 80px;
	/*background: #3498db;*/
	color: white;
	border-radius: 5px;
	text-align: center;
	cursor: grab;
	user-select: none;
	font-family: sans-serif;
	font-weight: bold;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	/*background-color: rgba(0,2,0,0.3);*/
}

.character:hover .bonhomme,
.character.hover .bonhomme
{
	filter: url(#contour-blanc);
}

.bonhomme
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
   -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  pointer-events:none;
  
}

.character:active
{
	cursor: grabbing;
}

.character:hover:before,
.character.hover:before
{
	content: " ";
	display: block;
	position: absolute;
	top: -30px;
	left: 15px;
	width: 32px;
	height: 30px;
	background-image: url('/front/projets/soulmates/assets/coeur_half.png');
	background-size: contain;
}

.character.happy:hover:before,
.character.happy.hover:before
{
	background-image: url('/front/projets/soulmates/assets/coeur_full.png');
}

/* -------------------------------------------------------------------------- */
/*                                DIALOGUES                                   */
/* -------------------------------------------------------------------------- */

#dialogue-box
{
	width: 800px;
	height: 150px;
	margin: 0 auto;
	background-image: url('/front/projets/soulmates/menus/dialogue.png');
	background-size:cover;
	color: #3f2219;
	padding: 28px 120px 28px 38px;
	box-sizing: border-box;
	font-size: 1.1em;
	line-height: 1.2em;
}

#inner-dialogue
{
	overflow-y: scroll;
	height: 100%;
	position: relative;
}

#inner-dialogue:after
{
	display: block;
	content: " ";
	position: sticky;
	bottom: 0;
	height: 20px;
	width: 100%;
	background: linear-gradient(180deg, rgba(239,212,190,0) 3%, rgba(239,212,190,0.5326331216080182) 26%, rgba(239,212,190,1) 100%);
}

#dialogue-box .discussion
{
	font-weight: bold;
	color: #926727;
	cursor: pointer;
}

#dialogue-box .discussion:hover
{
	color: #cd4400;
}

#dialogue-box p
{
	margin:0;
	margin-bottom: 5px;
}

#compteur
{
	position: absolute;
	top: 0;
	right: 0;
	padding: 10px 0px;
	background-image: url("/front/projets/soulmates/menus/btn_completion.png");
	background-size: cover;
	background-repeat: none;
	color: #93450b;
	width: 83px;
	height: 42px;
	text-align: right;
	padding-right: 5px;
	font-size: 1.1em;

}

/* -------------------------------------------------------------------------- */
/*                                  FANARTS                                   */
/* -------------------------------------------------------------------------- */

#fanarts
{
	position: absolute;
	top: 0;
	left: 0;
	width: 800px;
	height: 550px;
	z-index: 10000000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#fanarts.visible
{
	opacity: 1;
	pointer-events: auto;
}

#fanarts_fond
{
	position:absolute;
	background-color: black;
	opacity: 0.6;
	width:100%;
	height:100%;
}

#fanarts_img
{
	position:absolute;
	left:50%;
	top:50%;
	transform: translateX(-50%) translateY(-50%);
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
	max-width: 650px;
	max-height: 450px;
}

/* -------------------------------------------------------------------------- */
/*                                  MENUS                                     */
/* -------------------------------------------------------------------------- */

.ecran
{
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: black;
	z-index: 99998;
	background-size:cover;
}

#main_menu
{
	background-image: url("/front/projets/soulmates/menus/main_menu.jpg")
}

#credits
{
	background-image: url("/front/projets/soulmates/menus/credits.jpg");
	display: none;
}

.bloc_boutons
{
	width: 302px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	bottom: 10px;
}

.bouton
{
	padding: 7px;	
	text-align: center;
	font-weight: bold;
	margin-bottom: 3px;
	cursor: pointer;
	font-size: 1.4em;
}

.bloc_boutons .bouton
{
	width: 302px;
	height: 51px;
	background-image: url("/front/projets/soulmates/menus/btn_accueil.png");
	background-size: cover;
	background-position: top left;
	color: white;
}

.bloc_boutons .bouton:hover
{
	background-position: top right;
}

#bouton_quit_credits
{
	position: absolute;
	left: 0;
	top: 0;
	background-image: url("/front/projets/soulmates/menus/btn_back.png");
	background-size: cover;
	background-position: top left;
	width: 75px;
	height: 42px;
}

#bouton_quit_credits:hover
{
	background-position: top right;
}

#bouton_menu
{
	position: absolute;
	top: 0;
	left: 0;
	background-color: transparent;
	background-image: url("/front/projets/soulmates/menus/btn_menu.png");
	background-size: cover;
	background-position: top left;
	width: 75px;
	height: 42px;
}

#bouton_menu:hover
{
	background-position: top right;
}

.attention_sauvegarde
{
  text-align: center;
  font-size: 0.8em;
  top: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding-bottom: 10px;
  color: white;
}