body {
	background-color: #212121;
	color: #faf0e6;
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh; /* Ensure the page is at least the full height */
	overflow-y: auto; /* Allow vertical scrolling if necessary */
	position: relative; /* Position for z-index control */
}
body::-webkit-scrollbar {
	display: none; /* For Chrome, Safari, and Edge */
}

.container {
	width: 90%;
	max-width: 900px;
	background-color: #333;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7);
	animation: fadeIn 1s ease-in-out;
	transition: filter 0.3s ease; /* Smooth transition for blur */
}

body.modal-active .container {
	filter: blur(5px); /* Apply blur when the modal is active */
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 20px;
	text-align: center;
	color: #faf0e6;
	animation: pulse 2s infinite; /* Add animation to the heading */
}

.quiz-item {
	text-align: left; /* Align the questions to the left */
	margin: 25px 0;
	padding: 15px;
	background-color: #444;
	border-radius: 8px;
	animation: slideIn 0.5s ease-in-out;
}

.quiz-item:hover {
	background-color: #555;
	transition: background-color 0.3s ease;
}

label {
	display: block; /* Each option on a new line */
	margin-bottom: 10px;
}

input[type="radio"] {
	margin-right: 10px;
	accent-color: #4caf50; /* Make the radio button green */
}

button {
	background-color: #4caf50;
	color: white;
	border: none;
	padding: 12px 25px;
	cursor: pointer;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	font-size: 1rem;
}

button:hover {
	background-color: #45a049;
}

#result {
	margin-top: 25px;
}

/* Confetti canvas */
#confettiCanvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 1000;
}

/* Modal popup styles */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	padding: 20px; /* Add padding to make sure the modal doesn't touch screen edges */
}

body.modal-active .modal {
	display: flex; /* Show the modal when active */
}

.modal-content {
	background-color: #333;
	padding: 40px;
	border-radius: 15px;
	color: #faf0e6;
	text-align: center;
	width: 80%;
	max-width: 600px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	animation: fadeIn 0.5s ease-in-out;
}

.modal h2 {
	font-size: 2rem;
	margin-bottom: 20px;
}

.modal p {
	font-size: 1.2rem;
	line-height: 1.6; /* Add line height for better spacing */
	margin-bottom: 20px;
	text-align: justify; /* Justified text for better alignment */
}

.correct-answer {
	color: #4caf50; /* Highlight correct answer in green */
	font-weight: bold;
}

.modal .close-btn {
	background-color: #d32f2f;
	color: white;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 5px;
	margin-top: 30px;
	font-size: 1rem;
}

.modal .close-btn:hover {
	background-color: #e57373;
}

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

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

/* Pulse animation for heading */
@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}
