html{
	width: 100%;
	height: 100%;
	margin: 0;
    box-sizing: border-box;
}

*, *:before, *:after { box-sizing: inherit; }

body{
	width: 100%;
	height:100%;
	margin: 0;
}

#title{
	display:none;
}

#txtstory{
	display:none;
}

#read{
	width: 100vw;
	height: 100vh;
    height: -webkit-fill-available;
	display: none;
	background: rgba(0, 0, 0, 0.9);
	position: absolute;
	top: 0;
	left: 0;
}

#openbtn{
	display:inline-block;
	cursor: pointer;
	background-color: #6dae42;
	border-radius: 20px;
	padding: 10px;
	margin-top: 10px;
	color: white;
	text-decoration: none;
	user-select: none;
}

#closebtn{
	display: flex;
	width: 30px;
	height: 30px;
	cursor: pointer;
	background-color: #C00;
	border-radius: 15px;
	color: white;
	text-decoration: none;
	text-align: center;
	z-index: 1000;
	user-select: none;
}

#closebtn span{
	margin:auto;
    font-size: 1em;
    font-weight: bold;
}

#phone{
	font: 400 16px sans-serif;
	width:50vh;
	height:100%;
	margin:auto;
	position:relative;
	user-select:none;
}

#phone ul{
	padding:0;
	margin:0;
	margin-bottom:10%;
}

#screen{
	position:absolute;
	background: url("../img/background.jpg") no-repeat center;
	background-size: cover;
	height:100%;
	width:100%;
	border-radius:15px;
}

#navbar {
	flex-shrink: 0;
	display: flex;
	justify-content: space-between;
	padding: 5px;
	height: 40px;
	background: #F7F7F7;
	border-bottom: solid 1px #DDD;
	border-radius:15px 15px 0px 0px;
}

#messages{
	height: calc(100% - 100px);
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

#nextbtn{
	display: flex;
	height: 40px;
    width: calc(100% - 20px);
    margin: 10px;
    border-radius: 15px;
    background-color:#09a004;
    color: white;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

#nextbtn span{
	margin:auto;
    font-size: 1.5em;
    font-weight: bold;
}

.description{
	clear: both;
	width:100%;
	font-size: 1em;
	text-align: center;
	position: relative;
	color: #999;
	list-style: none;
	margin-bottom:10px;
	font-weight:600;
	border-bottom:solid 1px #999;
	padding:10px 0;
}

.spacer{
	clear: both;
	width: 100%;
	height: 20px;
}

.icon-set {
	display: flex;
	justify-content: space-between;
}

.titrebar {
	line-height:30px;
	margin-left:15px;
}

.message{
	clear: both;
	width: auto;
	max-width: 76%;
	height: auto;
	display: block;
	border-radius: 8px;
	filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.5));
	position: relative;
	margin-bottom: 5px;
}

.message.L{
	float: left;
	background: #f5f5f5;
	margin-left:20px;
}

.message.R{
	float: right;
	background: #DCF8C6;
	margin-right:20px;
}

.message .contenu {
	padding: 6px 10px
}

.message .contenu .nom {
	font-weight: 600;
	margin-bottom: 2px;
	font-size: 0.8em;
}

.message.L .contenu .nom {
	color: #3498db;
}

.message.R .contenu .nom {
	color: #2ecc71;
}

.message .contenu .texte {
	color: #2b2b2b;
}

.message .contenu .emojis {
	margin-top: 0.15em;
    line-height: 0.9em;
    font-size: 2.5em;
}

.message .contenu .image{
	border-radius: 8px;
	max-width: 100%;
	list-style: none;
}

.message .contenu .image img{
	max-width: 100%;
	border-radius:15px;
	width: 100%;
	height: auto;
}

.message .fleche {
	position: absolute;
	width: 0;
	height: 0;
}

.message.L .fleche {
	bottom: 42px;
	left: -16px;
}

.message.R .fleche {
	bottom: 40px;
	right: -2px;
}

.message .fleche:after {
	content: "";
	position: absolute;
	border: 0 solid transparent;
	border-top: 9px solid;
	border-radius: 0 20px 0;
	width: 15px;
	height: 30px;
}
.message.L .fleche:after {
	border-color: #F5F5F5;
	transform: rotate(145deg);
}
.message.R .fleche:after {
	border-color: #DCF8C6;
	transform: rotate(45deg) scaleY(-1);
}

@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
	html{
		width:100%;
		height:100%;
		margin:0;
	}
	body{
		width:100%;
		height:100%;
		margin:0;
	}
	#read{
		width:100%;
		height:100%;
		margin:0;
	}
	#phone{
		background:none;
		width: 100%;
		height: 100%;
	}
	#navbar{
		border-radius:0;		
	}
	#screen{
		top:0;
		bottom:0;
		right:0;
		left:0;
		border-radius:0;
	}
}