.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal.active {
	display: flex;
}

/* Searching overlay shows while still on the main menu (#main-menu-landing is
   z-index 2000), so it must sit above the menu rather than the board. */
#queue-searching-modal {
	z-index: 2500;
}

.modal-content {
	background-color: #f8f8f8;
	padding: 20px;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	text-align: center;
	position: relative;
}

.modal-content h2 {
	margin-bottom: 15px;
}

.modal-content p {
	margin-bottom: 10px;
}

#login-modal .modal-body {
	text-align: center;
}

#login-modal form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0;
}

#login-modal input {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
}

#login-modal button {
	padding: 10px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
}

#login-modal button:hover {
	background-color: #45a049;
}

#login-modal a {
	color: #4CAF50;
	text-decoration: none;
}

#login-modal a:hover {
	text-decoration: underline;
}

#login-modal {
	display: none !important;
	z-index: 3000 !important;
	/* When hidden */
}

#login-modal[style*="flex"] {
	display: flex !important;
	/* When shown */
}

#deck-editor-modal {
	display: none !important;
	z-index: 3000 !important;
}

#deck-editor-modal[style*="flex"] {
	display: flex !important;
}

#deck-editor-modal .modal-content {
	background-color: #f8f8f8;
	padding: 20px;
	border-radius: 8px;
	width: 90%;
	max-width: 400px;
	min-height: 350px;
	/* Similar height to login modal */
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#deck-editor-modal .modal-body {
	text-align: center;
}

#deck-editor-modal form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0;
}

#deck-editor-modal input[type="number"] {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	width: 60px;
	margin-left: 10px;
}

#deck-editor-modal button {
	padding: 10px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
}

#deck-editor-modal button:hover {
	background-color: #45a049;
}