@import url("webfont.css");

html, body {
	background-color: black;
	color: white;
	font-family: "8-bit Operator Mono", sans-serif;
	margin: 0;
	padding: 0;
	height: 100vh;
	overflow: hidden;
}

.game-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	padding: 20px;
	box-sizing: border-box;
}

canvas {
	display: block;
	width: 640px;
	height: 480px;
	margin: 0 auto;
	max-width: 100%;
	flex-shrink: 0;
}

div.bottom-credits{
	position: relative;
	text-align: center;
	font-size: 14px;
	line-height: 18px;
	height: auto;
	min-height: 60px;
	width: 100%;
	max-width: 600px;
	margin: 20px auto 0;
	padding: 8px 20px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-sizing: border-box;
	flex-shrink: 0;
}

p.announcement {
	font-size: 150%;
}

div.bottom-credits span{
	display: inline-block;
}



a{
	color: #00ffff;
	text-decoration: none;
}

a:hover{
	color: #33cccc;
}

/* 响应式设计 - 小屏幕适配 */
@media screen and (max-width: 768px) {
	.game-container {
		padding: 10px;
	}
	
	canvas {
		width: 100%;
		height: auto;
		max-width: 640px;
		margin: 0 auto;
	}
	
	div.bottom-credits {
		font-size: 12px;
		line-height: 16px;
		padding: 6px 15px;
		margin: 15px auto 0;
		min-height: 50px;
	}
}

/* 响应式设计 - 超小屏幕适配 */
@media screen and (max-width: 480px) {
	.game-container {
		padding: 5px;
	}
	
	canvas {
		margin: 0 auto;
	}
	
	div.bottom-credits {
		font-size: 10px;
		line-height: 14px;
		padding: 4px 10px;
		margin: 10px auto 0;
		min-height: 40px;
	}
}

/* 嵌入环境适配 - 当高度受限时 */
@media screen and (max-height: 600px) {
	.game-container {
		padding: 5px;
		height: 100vh;
	}
	
	canvas {
		margin: 0 auto;
		width: 100%;
		height: auto;
		max-width: 640px;
	}
	
	div.bottom-credits {
		font-size: 10px;
		line-height: 14px;
		padding: 4px 10px;
		margin: 10px auto 0;
		min-height: 40px;
	}
}
