body, html
{
  height: 100%;
  min-height: 100%;
  width: 100%;
  margin: 0px;
  overflow: hidden;
  font-family: serif;
  color: rgba(0, 0, 0, .77);
}

.legend {
	background-color: #fff;
	position: absolute;
	top: 0px;
	left: 0px;
	padding: 10px;
	border-radius: 15px;
	opacity: 0;
	transform: translate3d(-50%, -100%, 0);
	transition: opacity .3s, transform .3s;
}

.legend.is-active {
	opacity: 1;
	transform: translate3d(-50%, calc(-100% - 20px), 0);
}

.info {
	background-color: #fff;
	position: absolute;
	top: 0px;
	left: 0px;
	padding: 10px;
	border-radius: 15px;
	opacity: 0;
	transform: translate3d(-50%, -100%, 0);
	transition: opacity .3s, transform .3s;
}

.info.is-active {
	opacity: 1;
	transform: translate3d(-50%, calc(-100% - 20px), 0);
}

.plan {
	height: 250px;
	width: 300px;
	visibility: hidden;
	opacity: 0.9;
	background-color: #fff;
	border-style: solid;
	border-width: 5px;
	border-color: #1A7CDE;
	border-radius: 25px;
	position: absolute;
	top: 0px;
	left: 0px;
	padding: 10px;
	transform: translate3d(-80%, -100%, 0);
	transition: opacity .3s, transform .3s;
}

.plan img {
	height: 100%;
	width: 100%;
	margin: 0px;
}

.credits {
	position: absolute;
	bottom: 0px;
	left: 0px;
	font-size: 0px;
	background-color: #e7e7e7;
	opacity: 0.7;
	border-style: solid;
	border-width: 2px;
	border-color: #1A7CDE;
	border-radius: 25px;
}

.overlay {
position: fixed;
left: auto;
top:0px;
background-color: rgba(0,0 ,0 , 0.5);
width: 100%;
height: 100%;
z-index:1;
display:none;
-webkit-animation: fadeIn 1s;
animation: fadeIn 1s;
}

.btnClose {
	margin: 2px 6px;
	float: right;
	font-size:20pt;
	font-weight: bold;
	cursor: pointer;
	color: rgb(255, 255, 255);
}

/* Popup container - can be anything you want */
.popup {
	margin: 5% auto;
	width : 25%;
	height: 65%;
	background-color: rgb(243, 243, 243);
	padding: 1em;
	box-shadow: 0 15px 20px rgba(0, 0, 0, 0.3);
	border-radius: 10px;
}

/* The actual popup */
#popupcontent {
	width : auto;
	height : 100%;
	background-image: url("./infos/fond.png");
	background-repeat: no-repeat;
	background-color: rgb(0, 51, 102, .77);
	border-radius: 10px;
	-webkit-animation: fadeIn 2s;
	animation: fadeIn 2s;
}

#frame {
	margin: 40px 20px 10px 20px;
	height : 80%;
	width : 95%;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}