
canvas {
	position: absolute;
	top: 0px;
	left: 0px;
	background: transparent;
}
#background {
	z-index: -2;
}
#main {
z-index: -1;
}
#ship {
z-index: 0;
}
.level {
	color: #FF7F00;
	font-family: Helvetica, sans-serif;
	cursor: default;
}
.time {
	position: absolute;
	top: 5px;
	left: 180px;
	color: #FF7F00;
	font-family: Helvetica, sans-serif;
	cursor: default;
}
.score {
	position: absolute;
	top: 5px;
	left: 480px;
	color: #FF7F00;
	font-family: Helvetica, sans-serif;
	cursor: default;
}
.shots {
	position: absolute;
	top: 25px;
	left: 5px;
	color: #FF7F00;
	font-family: Helvetica, sans-serif;
	cursor: default;
}
.game-over {
	position: absolute;
	top: 100px;
	left: 210px;
	color: #FF7F00;
	font-family: Helvetica, sans-serif;
	font-size: 30px;
	cursor: default;
	display: none;
}
.game-over span {
	font-size: 20px;
	cursor: pointer;
	position: relative;
	left: 50px;
}
.game-over span:hover {
	color: #FFD700;
}
.loading {
	position: absolute;
	top: 100px;
	left: 210px;
	color: #FF7F00;
	font-family: Helvetica, sans-serif;
	font-size: 30px;
	cursor: default;
}

/* Mobile controls */
.mobile-controls {
	position: fixed;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 15px;
	z-index: 1000;
}

.control-btn {
	background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
	border: 2px solid #FF7F00;
	color: #FF7F00;
	font-family: Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	padding: 15px 20px;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
	min-width: 60px;
	min-height: 60px;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.control-btn:hover {
	background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
	transform: translateY(-2px);
}

.control-btn:active {
	background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.left-btn, .right-btn {
	background: linear-gradient(145deg, #2a4a6a, #1a3a5a);
	border-color: #00BFFF;
	color: #00BFFF;
}

.fire-btn {
	background: linear-gradient(145deg, #6a2a2a, #5a1a1a);
	border-color: #FF4444;
	color: #FF4444;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
	.mobile-controls {
		bottom: 10px;
		gap: 10px;
	}
	
	.control-btn {
		padding: 12px 16px;
		font-size: 16px;
		min-width: 50px;
		min-height: 50px;
	}
}

/* Modal styles */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.modal-content {
	background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
	border: 2px solid #FF7F00;
	border-radius: 15px;
	margin: 15% auto;
	padding: 30px;
	width: 400px;
	max-width: 90%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	text-align: center;
	color: #FF7F00;
	font-family: Helvetica, sans-serif;
}

.modal-content h2 {
	margin: 0 0 20px 0;
	font-size: 24px;
	color: #FFD700;
}

.modal-content p {
	margin: 0 0 20px 0;
	font-size: 16px;
	line-height: 1.4;
}

.modal-content input {
	width: 100%;
	padding: 12px;
	margin: 10px 0 20px 0;
	border: 2px solid #FF7F00;
	border-radius: 8px;
	background: #1a1a1a;
	color: #FF7F00;
	font-size: 16px;
	font-family: Helvetica, sans-serif;
	text-align: center;
}

.modal-content input:focus {
	outline: none;
	border-color: #FFD700;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
}

.submit-btn, .cancel-btn {
	padding: 12px 24px;
	border: 2px solid;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: Helvetica, sans-serif;
}

.submit-btn {
	background: linear-gradient(145deg, #2a6a2a, #1a5a1a);
	border-color: #00FF00;
	color: #00FF00;
}

.submit-btn:hover {
	background: linear-gradient(145deg, #3a7a3a, #2a6a2a);
	box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
	transform: translateY(-2px);
}

.cancel-btn {
	background: linear-gradient(145deg, #6a2a2a, #5a1a1a);
	border-color: #FF4444;
	color: #FF4444;
}

.cancel-btn:hover {
	background: linear-gradient(145deg, #7a3a3a, #6a2a2a);
	box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
	transform: translateY(-2px);
}

/* Responsive modal */
@media (max-width: 768px) {
	.modal-content {
		width: 90%;
		margin: 20% auto;
		padding: 20px;
	}
	
	.modal-buttons {
		flex-direction: column;
		gap: 10px;
	}
	
	.submit-btn, .cancel-btn {
		width: 100%;
	}
}