/* style.css */

/* Container für das gesamte Spiel */
#errorMsg{
	color:#cc0000;
	margin:0;
	display: none;}

.riskbot-game-container {
	font-family: 'Inter', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	background-color: #f0f4f8;
	border-radius: 15px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.15);
	color: #333;
	text-align: center;
	position: relative;
	overflow: hidden;
}
#hiscoreBoard h3{ margin:0 0 .5rem 0;}

/* Punkteanzeige */
.score-board {
	width: 100%;
	padding: 10px 0;
	font-size: 1.2em;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 15px;
}

.score-board span {
	color: #e74c3c; /* Rot für Punkte */
}
h3{margin-bottom:.5rem;}
#finalhiscore,
#winMessage, #winMessage2{display:none;}

/* Alle Bildschirme (Start, Game Over) */
.game-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 20px 20px 20px;
	width: 100%;
	box-sizing: border-box;
	transition: opacity 0.5s ease-in-out;
}

/* Spielanleitung */
.game-instructions {
	background-color: #ecf0f1;
	padding: 20px;
	border-radius: 10px;
	margin-top: 20px;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
	width: 90%;
	max-width: 600px;
}

.game-instructions h3 {
	color: #34495e;
	margin-bottom: 10px;
}

.game-instructions p {
	line-height: 1.6;
	margin-bottom: 10px;
}

/* Legende */
.game-legend {
	background-color: #dbe4eb;
	padding: 15px;
	border-radius: 10px;
	margin-top: 20px;
	width: 90%;
	max-width: 600px;
	color: #555;
}

.game-legend p strong {
	color: #34495e;
}

.legend-item {
	padding: 5px 0;
	font-size: 0.95em;
}

/* Spielbereich */
#gameCanvas {
	background-color: #2c3e50;
	border: 5px solid #3498db;
	border-radius: 10px;
	margin-top: 20px;
	display: block;
	width: 100%;
	max-width: 500px;
	height: auto;
	aspect-ratio: 1 / 1;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Buttons */
.game-button {
	background: linear-gradient(145deg, #3498db, #2980b9);
	color: white;
	padding: 12px 25px;
	border: none;
	border-radius: 30px;
	font-size: 1.1em;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
	margin-top: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	user-select: none;
}

.game-button:hover {
	background: linear-gradient(145deg, #2980b9, #3498db);
	box-shadow: 0 6px 12px rgba(0,0,0,0.3);
	transform: translateY(-2px);
}

.game-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Call to Action Bereich */
.game-cta {
	background-color: #e0f7fa;
	padding: 20px;
	border-radius: 10px;
	margin-top: 30px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	width: 90%;
	max-width: 600px;
}

.game-cta h3 {
	color: #00796b;
	margin-bottom: 10px;
}

.game-cta p {
	color: #444;
	line-height: 1.5;
}

/* Spezieller CTA Button */
.cta-button {
	background: linear-gradient(145deg, #27ae60, #2ecc71);
}

.cta-button:hover {
	background: linear-gradient(145deg, #2ecc71, #27ae60);
}

/* Responsive Anpassungen für kleine Bildschirme */
@media (max-width: 600px) {
	.riskbot-game-container {
		padding: 15px;
		margin: 10px auto;
		border-radius: 10px;
	}

	.score-board {
		font-size: 1em;
	}

	.game-button {
		padding: 10px 20px;
		font-size: 1em;
	}

	.game-instructions,
	.game-legend,
	.game-cta {
		padding: 15px;
		width: 100%;
	}

	#gameCanvas {
		max-width: 300px;
	}
}
