/* ===== BEGIN MODAL STYLES ===== */

/* The Modal (background) */
.modal {
	display: block; /* Show the modal by default on page load */
	position: fixed; /* Stay in place */
	z-index: 1000; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
	-webkit-animation: fadeIn 0.5s;
	animation: fadeIn 0.5s;
}

/* Modal Content/Box */
.modal-content {
	/* Dark theme background, slightly transparent */
	background-color: #2a2a2a;
	border: 1px solid rgba(255, 255, 255, 0.25);
	margin: 10% auto; /* 10% from the top and centered */
	padding: 2em;
	border-radius: 4px;
	width: 80%; /* Could be more or less, depending on screen size */
	max-width: 600px; /* Max width */
	position: relative;
	box-shadow: 0 5px 15px rgba(0,0,0,0.5);
	color: rgba(255, 255, 255, 0.75); /* Lighter text for dark bg */
}

/* Modal Header */
.modal-header {
	display: flex;
	align-items: center;
	margin-bottom: 1.5em;
	padding-bottom: 1em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h2 {
	margin: 0 0 0 1em; /* Space between icon and title */
	font-size: 1.5em;
	color: #ffffff;
}

/* Specific styling for the icon in the modal */
.modal-icon {
	/* Make the icon slightly larger */
	font-size: 1.5em;
	/* Ensure it uses the 'style2' from main.css but stays aligned */
	padding: 0.4em;
	line-height: 1;
}

/* Make the inline fa-user icon smaller to fit text */
.modal-content p .icon.fa-user {
	font-size: 0.8em;
	padding: 0.3em;
	margin: 0 0.2em;
	/* Adjust vertical alignment */
	vertical-align: middle;
	display: inline-block;
	line-height: 1;
}

/* Fix for Font Awesome icon centering in circles */
.icon::before {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%; /* Ensure the flex container takes full height */
	width: 100%;  /* Ensure the flex container takes full width */
}


/* The Close Button */
.close-button {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: absolute;
	right: 1em;
	top: 0.5em;
	transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
}

/* Add Animation (Fade In) */
@-webkit-keyframes fadeIn {
	from {opacity: 0}
	to {opacity: 1}
}

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

/* Responsive adjustments */
@media screen and (max-width: 736px) {
	.modal-content {
		width: 90%;
		margin: 15% auto; /* More centered on mobile */
		padding: 1.5em;
	}

	.modal-header h2 {
		font-size: 1.2em;
	}

	.modal-icon {
		font-size: 1.2em;
	}
}

/* ===== END MODAL STYLES ===== */

