/* In-game alert modal - replaces native alert() popups.
   Styled to match the game theme (subTitle / mainTxt), responsive for mobile. */

.eaAlertBackdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	z-index: 100000;
	display: none;
	/* Center the dialog */
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.eaAlertBackdrop.eaAlertOpen {
	display: flex;
}

.eaAlertBox {
	border: 2px solid #000000;
	background-color: #363636;
	color: #ffffff;
	font-family: Verdana, sans-serif;
	width: 360px;
	max-width: 100%;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
	box-sizing: border-box;
}

/* Title bar - mirrors td.subTitle */
.eaAlertTitle {
	border-bottom: 2px solid #000000;
	background-color: #202020;
	background-image: url(../images/menu_v2.gif);
	background-repeat: repeat-x;
	background-position: left center;
	background-size: auto 100%;
	color: #eeeeee;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 2px;
	text-align: center;
	padding: 0.6em 0.6em;
	text-transform: uppercase;
}

/* Message body - mirrors td.mainTxt */
.eaAlertMsg {
	background-color: #202020;
	font-size: 12px;
	line-height: 1.5;
	padding: 16px 14px;
	text-align: center;
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-height: 60vh;
	overflow-y: auto;
}

.eaPromptField {
	background-color: #202020;
	padding: 0 14px 14px 14px;
	text-align: center;
}

.eaPromptInput {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #000000;
	background: #323232;
	color: #ffffff;
	font-family: Verdana, sans-serif;
	font-size: 12px;
	padding: 8px;
}

.eaAlertActions {
	background-color: #202020;
	border-top: 2px solid #000000;
	text-align: center;
	padding: 12px;
}

.eaAlertOk,
.eaAlertCancel {
	border: 1px solid #000000;
	font-family: Verdana, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #ffffff;
	background: #323232;
	padding: 8px 28px;
	cursor: pointer;
	min-width: 90px;
	margin: 0 4px;
}

.eaAlertCancel {
	color: #cccccc;
	background: #2a2a2a;
}

.eaAlertOk:hover,
.eaAlertCancel:hover {
	color: #ff8000;
}

/* Mobile - near full width, larger tap targets */
@media (max-width: 600px) {
	.eaAlertBox {
		width: 100%;
	}

	.eaAlertMsg {
		font-size: 14px;
		padding: 18px 14px;
	}

	.eaAlertOk,
	.eaAlertCancel {
		font-size: 14px;
		padding: 12px 24px;
		width: 100%;
		box-sizing: border-box;
		margin: 4px 0;
	}
}