@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Oxanium:wght@200..800&family=Pirata+One&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');

body
{
    font-family: "Oxanium", sans-serif;
	font-weight: 400;
	background: black;
	color: white;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
}

/* Seems necessary to make iframes work on itch.io on mobile iOS :-( */
#container
{
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
	z-index: 10;    
}

#story
{
	position: relative;
	margin: 0 auto;
	overflow: hidden;
	height: 100%;
	width: 700px;
	min-width: 60vw;
	max-width: 80vw !important;
	transition: opacity 2s ease;
	padding: 0em 1em 0em 1em;
}

@media (hover:none), (hover:on-demand)
{
	#story
	{
		max-width: 90%;
	} 
}

#story > *:first-child {
	margin-top: 10vh !important;
}

#story > *:last-child 
{
	margin-bottom: 15vh !important;
}

p
{
	margin-block-start: 0px !important;
	font-size: 16pt;
	line-height: 1.4;
}

p, p > *
{
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
}

a 
{	
	text-decoration: none !important;
	transition: all 0.5s linear;
}

a:hover
{
	color: white;
}


.choice
{
	opacity: 0.9;
	transition: all 0.25s;
	color: white;
}

.choice:hover
{
	color: white;
	opacity: 1;
	transition: all 1s;	
}

.choice > a
{
	color: inherit;
}

.choice > a:active
{
	color:red;
}

.chosen
{
	color: white !important;
	opacity: 1 !important;
}

/* ================================================================= */
/* PATCH SPECIFIC CSS                                                */
/* ================================================================= */

/* --------------- */
/* parallax frames */
/* --------------- */
.frame
{
	width: 100%;
	height: calc(100vw * 0.2);
	overflow: hidden;
	position: relative;
}

.frameLayer
{
	position: absolute;
	width: 120%;
	display: block;
	top: -9999px;
	bottom: -9999px;
	left: -9999px;
	right: -9999px;
	margin: auto;
	max-width: auto;
}

/* css for mobile */
@media (hover:none), (hover:on-demand) 
{ 
	.frame 
	{ 
		min-height: calc(100vmax * 0.25);
	}
	.frameLayer
	{
		width: 150%;
	}
}

/* ------- */
/* preload */
/* ------- */

.progressbar
{
	position: absolute;
	overflow: hidden;
	top: 0;
	background: #7690ac;
	width: 0%;	
	height: 1vh;
}

/* Tout les paragraphes dans une colonne, par défaut à gauche (start). */
#story {
	display: flex;
	flex-direction: column;
	align-items: start;
  }
  
  .splash img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 80%;
  }

	/* Typo */

  .titre {
	font-family: "Cinzel", serif;
	font-optical-sizing: auto;
	font-weight: <weight>;
	font-style: normal;
	margin: 0;
	font-size: 3em;
	align-self: center;
	text-align: center;
  }

  .sstitre {
	font-family: "Pirata One", system-ui;
	font-weight: 400;
	font-style: normal;
	font-size: 2.2em;
	align-self: center;
	text-align: center;
  }

  .auteur {
	font-size: 1.2em;
	align-self: center;
	padding-bottom: 5em;
	text-align: center;
  }

  
  .interface, .interface2 {
	font-family: "Turret Road", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 1em;	
  }

  .interface { color:#49eb67; }

  .interface2 { color:#f9a91e; }

  .intro {
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 1.2em;
  }


  /* Un style "bulle de chat" pour latremon et joueur */
  .inconnu,
  .latremon,
  .joueur {
	position: relative;
	padding: 16px;
	border-radius: 20px;
  }
  .inconnu:before,
  .latremon:before,
  .joueur:before {
	content: "";
	position: absolute;
	bottom: 0;
	right: 100%;
	width: 0;
	border-top: 12px solid transparent;
  }
  
  /* Inconnu à gauche, en noir sur blanc */
  .inconnu {
	background-color: #aeaeae;
	color: black;
	align-self: start;
	border-bottom-left-radius: 0;
	margin-left: 100px;
  }

  .inconnu:before{
	background-image: url(images/ui/inconnu01.png);
	background-size: contain;
	background-repeat: no-repeat;
  }

  .latremon {
	background-color: #aeaeae;
	color: black;
	align-self: start;
	border-bottom-left-radius: 0;
	margin-left: 100px;
	position: relative;
  }

    
  .latremon:before{
	background-image: url(images/ui/personnage.png);
	background-size: contain;
	background-repeat: no-repeat;
  }
  
  /* Image du personnage */
  .inconnu:before,
  .latremon::before {
	content: '';
	position: absolute;
	left: -80px;
	bottom: 0;
	width: 60px;
	height: 60px;
  }
  
  /* Queue de la bulle */
  .inconnu:after, 
  .latremon::after {
	content: '';
	position: absolute;
	right: 100%;
	border: 7.5px solid transparent;
	border-right: 15px solid #aeaeae;
	border-bottom: 0;
	bottom: 0px;
  }

  .latremon img {
	width: 100%;
	max-width: 300px;
  }
  
  /* Joueur à droite, en blanc sur bleu */
  .joueur {
	background-color: rgb(119, 142, 205);
	color: white;
	align-self: end;
	border-bottom-right-radius: 0;
	margin-right: 100px;
  }

  .joueur::before {
	content: '';
	position: absolute;
	right: -80px;
	bottom: 0;
	width: 60px;
	height: 60px;
	background-image: url(images/ui/inconnu02.png);
	background-size: contain;
	background-repeat: no-repeat;
  }
  
  /* Queue de la bulle */
  .joueur::after {
	content: '';
	position: absolute;
	left: 100%;
	border: 7.5px solid transparent;
	border-left: 15px solid rgb(119, 142, 205);
	border-bottom: 0;
	bottom: 0px;
  }
  
  /* Et un peu de style pour les choix */
  .choice {
	border: 1px solid rgb(119, 142, 205);
	color: rgb(65, 84, 138);
	background-color: rgb(47, 48, 51);
	padding: 8px;
	border-radius: 6px;
	align-self: center;
  }
