body {
	background-color: #E8D7F1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	margin: 0;
	font-family: Arial, sans-serif;
	overflow: hidden;
}
.title {
	font-size: 24px;
	font-weight: bold;
	color: #4A306D;
	margin-bottom: 20px;
}
.container {
	background-color: #D3BCCC;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
	text-align: center;
	width: 30%;
}
h1 {
	color: #4A306D;
}
input {
	padding: 10px;
	border: 2px solid #A167A5;
	border-radius: 5px;
	width: 80%;
	margin-bottom: 15px;
}
button {
	background-color: #A167A5;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
}
button:hover {
	background-color: #4A306D;
}




.loader {
	display: flex;
	justify-content: center;
	align-items: center;
}
.dot {
	width: 15px;
	height: 15px;
	margin: 5px;
	background-color: #A167A5;
	border-radius: 50%;
	animation: blink 1.5s infinite ease-in-out;
}
.dot:nth-child(2) {
	animation-delay: 0.2s;
}
.dot:nth-child(3) {
	animation-delay: 0.4s;
}
@keyframes blink {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}
.player-count {
	font-size: 20px;
	color: #4A306D;
	margin-bottom: 20px;
	text-align: center;
}

canvas {
	background-color: white;
	border: 3px dashed #777;
}

.radio-image input[type="radio"] {
	display: none; /* cacher le bouton radio */
}

.radio-image label {

	cursor: pointer;
	border: 2px solid transparent;
	display: inline-block;
	border-radius: 8px;
	overflow: hidden;
	transition: border 0.2s ease;
	background-color: #A167A5;

}

.radio-image input[type="radio"]:checked + label {
	border: 2px solid #4A306D;
	background-color: #4A306D;

}

.radio-image img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	filter: invert(1);
	padding: 7px;
}

.radio-image label:first-of-type {
	margin-right: 25px;
}

.radio-pokemon input[type="radio"] {
	display: none; /* cacher le bouton radio */
}

.radio-pokemon label {

	cursor: pointer;
	border: 2px solid transparent;
	display: inline-block;
	border-radius: 8px;
	overflow: hidden;
	transition: border 0.2s ease;
	background-color: #A167A5;

}

.radio-pokemon input[type="radio"]:checked + label {
	border: 2px solid #4A306D;
	background-color: #4A306D;

}

.radio-pokemon img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	padding: 7px;
}



.credit ul {
	list-style: none;
	padding: 0;
}

.leaderboard {
	position: fixed;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.8);
	padding: 10px 15px;
	border-radius: 8px;
	box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.score {
	display: flex;
	position: fixed;
	top: 20px;
	left: 20px;
	background: rgba(255, 255, 255, 0.8);
	padding: 10px 15px;
	border-radius: 8px;
	box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.leaderboard h3  {
	margin: 0 0 10px 0;
	font-size: 16px;
}

.score h3 {
	margin: 0 0 0 0;
	font-size: 16px;
}

.leaderboard-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.leaderboard-list li.you {
	color: blue;
	font-weight: bolder;
}

.home {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
}

.leaderboard-page{
	background: linear-gradient(135deg, #E8D7F1, #A167A5);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100%;
	margin: 0;
	font-family: 'Poppins', sans-serif;
	text-align: center;
}
.leaderboard-page h1{
	font-size: 50px;
	color: #4A306D;
	margin-bottom: 20px;
	font-weight: bold;
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.leaderboard-page-div {
	background: rgba(211, 188, 204, 0.9);
	padding: 25px;
	border-radius: 15px;
	box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.4);
	width: 420px;
	backdrop-filter: blur(10px);
}
.leaderboard-page-div ol {
	list-style: none;
	padding: 0;
	margin: 0;
}
.leaderboard-page-div li {
	background: linear-gradient(90deg, #A167A5, #4A306D);
	color: white;
	padding: 15px;
	margin: 10px 0;
	border-radius: 10px;
	font-size: 20px;
	font-weight: bold;
	transition: 0.3s;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}
.leaderboard-page-div li:hover {
	transform: scale(1.05);
	background: linear-gradient(90deg, #4A306D, #A167A5);
}
.crown {
	color: gold;
	margin-right: 10px;
	font-size: 22px;
}
.leaderboard-page .date {
	font-size: 14px;
	color: #E8D7F1;
	font-weight: normal;
}

.btn-leaderboard, .btn-home, .btn-credit, .btn-tutoriel {
	margin-top: 20px;
	padding: 12px 25px;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background: #4A306D;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.3s;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
	text-decoration: none;
}
.btn-leaderboard:hover, .btn-home:hover, .btn-tutoriel:hover, .btn-credit:hover {
	background: #A167A5;
	transform: scale(1.05);
}

.credit, .tutoriel {
	background: linear-gradient(135deg, #E8D7F1, #A167A5);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100%;
	margin: 0;
	font-family: 'Poppins', sans-serif;
	text-align: center;
	padding: 20px;
}

.credit h1, .tutoriel h1 {
	font-size: 50px;
	color: #4A306D;
	margin-bottom: 20px;
	font-weight: bold;
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.credit ul, .tutoriel ul {
	list-style: none;
	padding: 0;
	background: rgba(211, 188, 204, 0.9);
	padding: 25px;
	border-radius: 15px;
	box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.4);
	width: 420px;
	backdrop-filter: blur(10px);
}

.credit li, .tutoriel li {
	background: linear-gradient(90deg, #A167A5, #4A306D);
	color: white;
	padding: 15px;
	margin: 10px 0;
	border-radius: 10px;
	font-size: 20px;
	font-weight: bold;
	transition: 0.3s;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.credit li:hover, .tutoriel li:hover {
	transform: scale(1.05);
	background: linear-gradient(90deg, #4A306D, #A167A5);
}

.tutoriel-div {
	background: rgba(211, 188, 204, 0.9);
	padding: 25px;
	border-radius: 15px;
	box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.4);
	width: 60%;
	backdrop-filter: blur(10px);
	text-align: left;
}

.tutoriel-div h2 {
	color: #4A306D;
	font-size: 28px;
	margin-bottom: 10px;
	font-weight: bold;
}

.tutoriel-div p, .tutoriel-div ul {
	color: #4A306D;
	font-size: 18px;
}

.tutoriel-div ul li {
	padding: 5px 0;
}

.btn-home-credit, .btn-home-tuto {
	margin-top: 20px;
	padding: 12px 25px;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background: #4A306D;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.3s;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
	text-decoration: none;
}

.btn-home-credit:hover, .btn-home-tuto:hover {
	background: #A167A5;
	transform: scale(1.05);
}




.replay .overlay {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.8);
	padding: 20px 30px;
	border-radius: 10px;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.replay h1 {
	font-size: 50px;
	color: #4A306D;
	margin-bottom: 20px;
	font-weight: bold;
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.replay .stats {
	font-size: 24px;
	color: #4A306D;
	margin-bottom: 15px;
}
.replay .btn-rejouer {
	margin-top: 20px;
	padding: 15px 30px;
	font-size: 20px;
	font-weight: bold;
	color: white;
	background: #4A306D;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: 0.3s;
	box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
	text-decoration: none;
}
.replay .btn-rejouer:hover {
	background: #A167A5;
	transform: scale(1.1);
}

.disabled {
	display: none;
}