/* Import Orbitron font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: #000;
	font-family: 'Orbitron', 'Courier New', monospace;
	overflow: hidden; /* Prevent scrollbars */
}

#gameContainer {
	position: relative;
	width: 800px;
	height: 600px;
}

#gameCanvas {
	border: none; /* REMOVED BORDER */
	background: #000;
	display: block;
}

#ui,#demo {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
	pointer-events: none; /* Don't block clicks */
}

#demo {
	bottom: 10px;
	color: #ff9900;
}

@keyframes blink {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}
.blinking-text {
	text-align: center;
	margin-top: 20%;
	font-size: 24px;
	animation: blink 1s infinite;
}

#credits, #demo-text {
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	font-family: 'Orbitron', monospace;
	text-shadow: 
		0 0 10px rgba(255, 255, 255, 0.5),
		2px 2px 4px rgba(0, 0, 0, 0.8);
	padding: 10px 20px;
	border-radius: 5px;
	border: none;
}

.lightning-btn {
	background: linear-gradient(135deg, #f7931a 0%, #ff9d2e 100%);
	color: #000;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(247, 147, 26, 0.4);
	transition: all 0.3s ease;
	font-family: 'Orbitron', monospace;
}

.lightning-btn:hover {
	background: linear-gradient(135deg, #ff9d2e 0%, #ffb347 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(247, 147, 26, 0.6);
}

.lightning-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(247, 147, 26, 0.4);
}

#loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #f7931a;
	font-size: 24px;
	font-family: 'Orbitron', monospace;
	background: rgba(0, 0, 0, 0.9);
	padding: 20px 40px;
	border-radius: 10px;
	border: 2px solid #f7931a;
	box-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
}

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	animation: fadeIn 0.3s;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.modal-content {
	background-color: #1a1a1a;
	margin: 5% auto;
	padding: 30px;
	border: 3px solid #f7931a;
	border-radius: 15px;
	width: 90%;
	max-width: 500px;
	color: #fff;
	font-family: 'Orbitron', monospace;
	box-shadow: 0 0 30px rgba(247, 147, 26, 0.5);
	animation: slideDown 0.3s;
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.close {
	color: #f7931a;
	float: right;
	font-size: 32px;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
}

.close:hover,
.close:focus {
	color: #ff9d2e;
}

.modal h2 {
	color: #f7931a;
	margin-bottom: 20px;
	text-align: center;
	font-size: 28px;
	font-family: 'Orbitron', monospace;
}

#paymentStatus {
	text-align: center;
	font-size: 18px;
	margin: 20px 0;
	padding: 15px;
	background: rgba(247, 147, 26, 0.1);
	border-radius: 8px;
	border: 1px solid #f7931a;
	font-family: 'Orbitron', monospace;
}

#paymentStatus.success {
	color: #0f0 !important;
	background: rgba(0, 255, 0, 0.1);
	border-color: #0f0;
	font-size: 28px;
	font-weight: bold;
	animation: pulse 1s infinite;
}

#paymentStatus.error {
	color: #f00 !important;
	background: rgba(255, 0, 0, 0.1);
	border-color: #f00;
}

#qrcode {
	display: flex;
	justify-content: center;
	margin: 20px 0;
	padding: 20px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(247, 147, 26, 0.3);
}

#invoiceString {
	display: none;
}

#copyInvoiceBtn {
	display: none;
}

#timer {
	text-align: center;
	font-size: 24px;
	color: #f7931a;
	margin-top: 20px;
	font-weight: bold;
	font-family: 'Orbitron', monospace;
}

.success {
	color: #0f0 !important;
	animation: pulse 1s infinite;
}

.error {
	color: #f00 !important;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Continue Modal */
#continueModal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	animation: fadeIn 0.3s;
}

#continueModal .modal-content {
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
	margin: 10% auto;
	padding: 40px;
	border: 4px solid #f7931a;
	border-radius: 20px;
	width: 90%;
	max-width: 600px;
	color: #fff;
	font-family: 'Orbitron', monospace;
	box-shadow: 0 0 50px rgba(247, 147, 26, 0.8);
	text-align: center;
}

#continueStatus {
	margin-bottom: 30px;
}

#continueTimer {
	margin-top: 20px;
}

/* Responsive */
@media (max-width: 850px) {
	#gameCanvas {
		width: 100vw;
		height: auto;
	}
	
	.modal-content {
		width: 95%;
		margin: 10% auto;
	}
}