 * { 
 padding: 0;
 margin: 0;
 background-color: grey;
 }

canvas { 
	background-image: url('background.png');
	background-size: contain;
	display: block; 
	margin: 0 auto; 
	margin-top: 50px;
	border-radius:20px;
}
p {
	text-align: center;
	margin-top: 24px;
	font-size: 36px;
}

#Perdu{
	width:600px;
	height:300px;
	background-color:rgb(198,157,102);
	box-shadow: rgba(86,84,82, 0.4) 5px 5px, rgba(86,84,82, 0.3) 10px 10px, rgba(86,84,82, 0.2) 15px 15px, rgba(86,84,82, 0.1) 20px 20px, rgba(86,84,82, 0.05) 25px 25px;
	position: absolute;
	top:150px;
	left: calc(50% - 300px);
	border-radius:20px;
	display:flex;
	flex-wrap: wrap;
	justify-content:center;
	display:none;
}

h1 {
	height:60px;
	background-color:rgb(198,157,102);
	width:100%;
	font-size:50px;
	margin:0;
	margin-top:30px;
	margin-bottom:30px;
	color: white;
	text-align:center;
}

section > p{
	background-color:rgb(198,157,102);
	height:40px;
	width:100%;
	margin:0;
	font-size: 36px;
}

section > button{
	margin-top:30px;
	margin-left:150px;
	width:300px;
	padding-left: auto;
	background-color: rgb(234,198,155);
	border:none;
	color: white;
	font-weight : bold;
	font-size:30px;
	border-radius:20px;
	cursor:pointer;
}

@media (max-width: 800px) {
	article{
		width:100%;
		height:100vh;
		display:flex;
		justify-content:center;
		align-items:center;
	}
	canvas {
		transform: rotate(90deg);
		width: 140%; /* La largeur du canvas devient la largeur de l'écran */
		height: calc(140vw * 500 / 800); /* La hauteur est calculée pour conserver la proportion */
		margin:0;
		padding:0;
	}
	
	#Perdu {
		width: 75%; /* Ajuster la largeur automatiquement */
		height: calc(100vw * 500 / 800); /* Ajuster la hauteur pour s'adapter à l'écran mobile */
		background-color: rgb(198, 157, 102);
		box-shadow: rgba(86, 84, 82, 0.4) 5px 5px, rgba(86, 84, 82, 0.3) 10px 10px, rgba(86, 84, 82, 0.2) 15px 15px, rgba(86, 84, 82, 0.1) 20px 20px, rgba(86, 84, 82, 0.05) 25px 25px;
		position: absolute;
		top: 50%; /* Centrer verticalement */
		left: 50%; /* Centrer horizontalement */
		transform: translate(-50%, -50%) rotate(90deg); /* Centrer et faire pivoter de 90 degrés */
		border-radius: 20px;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	
	h1 {
		height:60px;
		width:100%;
		font-size:5vw;
		margin:0;
		margin-top:5%;
		margin-bottom:3%;
	}

	section > p{
		height:40px;
		width:100%;
		font-size: 4vw;
	}

	section > button{
		margin-top:0;
		margin-left:0px;
		width:60%;
		font-size:4vw;
		margin-bottom:15px;
	}
}