html, 
body {
    height: 100%;
 	min-height: 100%;
 	margin: 0px;
 	padding: 0px;
    font-size: xx-large;
    font-family: Comic Sans MS;
    background: black;
}

div#decor{
	width: 100%;
    /* height: calc( 100% - 250px ); */
    height: 100%;
    position: absolute;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
	/*background-image: url('decors/<set programmatically>');*/
	/* blur https://www.cssmatic.com/box-shadow */
	-webkit-box-shadow: inset 0px 0px 300px -19px rgba(0,0,0,1);
	-moz-box-shadow: inset 0px 0px 300px -19px rgba(0,0,0,1);
	box-shadow: inset 0px 0px 300px -19px rgba(0,0,0,1);
}

div#texte{
	z-index: 300;
	border-radius: 10px;
    width: calc( 100% - 86px);
    height: 200px;
    max-height: 20%;
    position: absolute;
    bottom: 0px;
    background-color: rgba(255,255,255,0.8);
    padding: 20px;
    margin: 20px;
    border: 2px solid black;
    padding-top: 25px;
    pointer-events: none;
    display: none;
}

div#nom{
    top: -40px;
    border-radius: 10px;
    width: fit-content;
    height: 50px;
    /* max-height: 20%; */
    position: absolute;
    /* bottom: 180px; */
    background-color: rgba(255,255,255,1);
    padding: 20px;
    border: 2px solid black;
    padding-top: 0px;
    padding-bottom: 0px;
    z-index: 300;
    top: -30px;
}

ul#stats{
	position: absolute;
    left: 0px;
    top: -10px;
    list-style: none;
    margin: 0px;
    padding: 40px;
    color: white;
    text-shadow: 2px 2px black;
    font-size: 45px;
    display: none;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;    
}

ul#stats li{
	line-height: 60px;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


div#personnage{
	background-image: url();
    z-index: 200;
    width: 100%;
    height: 100%;
    position: absolute;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: contain;
}

div#choix{
	display: none;
	z-index: 400;
    position: absolute;
    width: 100%;
    height: 100%;
}
div#choix ul{
    width: calc( 100% - 170px );
    list-style: none;
    text-align: center;
    position: absolute;
    left: 0px;
    margin: 20px;
    /*height: 300px;
    top: calc( 50% - 100px );*/
    bottom: 0px;
}
div#choix ul li{
    width: 100%;
    min-height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px 20px 20px;
    /* margin: 20px; */
    border-width: 2px;
    border-style: solid;
    border-color: black;
    border-image: initial;
    margin-bottom: 20px;
}

div#choix ul li{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

div#choix ul li:hover, div#choix ul li:active{
	background: black;
    color: white;
    cursor: pointer;
}


/* 2 CHOICES PER LINE */
/* use flex to allow for 2 items per line (if tagged with "same-line" class, and if screen width > 300px) */
div#choix ul{
  display: flex;
  flex-wrap: wrap;
}
div#choix ul li.same-line{
  flex: 1 0 34%; /*34% -> fits 1 or 2 elements but never 3, see https://stackoverflow.com/a/45384426/322119 */
  min-width: 300px;
}

/* add a margin to get some space between same-line elements */
div#choix ul li{
  margin-left: 20px;
}
/* ... and compensate for that margin in the container */
div#choix ul{
  margin-left: 0px;
  width: calc( 100% - 150px );
}
/* END 2 CHOICES PER LINE */
