.rules-container {

	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;

	width: 90%;
	max-width: 600px;
	max-height: 80vh;

	overflow-y: auto;
	overflow-x: hidden;

	padding: 20px;
	box-sizing: border-box;
	background: rgba(17, 17, 17, 0.808);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	color: #f4f4f4;

}

.indent-block {
	text-indent: 40px;
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	max-inline-size: 550px;
	align-content: center;
	overflow-x: hidden;
}

.rules-section .sub-header {
	white-space: nowrap;
	font-weight: bold;
	line-height: 1.5;
	color: #e4e4e4f8;
}

.rules-header {
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 
0.1);
}

.rules-header h1 {
	white-space: nowrap;
	font-family: 'Poppins', sans-serif;
	font-size: 1.8rem;
	font-weight: 600;
	color: #fff;
	margin-top: 0;
	margin-bottom: 5px;
}

.rules-header p {
	font-family: 'DM Sans', sans-serif;
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.7);
}

.rules-content {
	margin-bottom: 30px;
}

.rules-section {
	margin-bottom: 15px;
}

.rules-section h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.3rem;
	color: #afb7ff;
	margin-bottom: 15px;
	font-weight: 600;
}

.rules-section label {
	font-family: 'Poppins', sans-serif;
	font-size: 1.3rem;
	color: #afb7ff;
	margin-bottom: 14px;
	padding-left: 4px;
	font-weight: 500;
}

.rules-section p, .rules-section ul {
	margin-bottom: 10px;
	font-size: 1.2rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
	font-family: 'DM Sans', sans-serif;
}

.rules-section ul {
	padding-left: 20px;
	list-style-type: none;
}

.rules-section li {
	margin-bottom: 2px;
	display: flex;
	line-height: 1.5;
	align-items: baseline;
	font-size: 1rem;
	padding-bottom: 0px;
}

.rules-section li:before {
	content: "⦾";
	color: #1f35ff;
	font-size: 1.2em;
	margin-right: 0.6em;
}

.highlight-box {
	background: rgba(157, 237, 253, 0.295);
	border-left: 1em solid #dddddda6;
	padding: 15px;
	margin: 20px 0;
	border-radius: 8px 0 8px 0;
}

.rules-section a {
	color: #d06bff;
	text-decoration: none;
	transition: all 0.3s ease;
}

.rules-section a:hover {
	text-decoration: underline;
}

.rules-container::-webkit-scrollbar {
	display: block;
	width: 1em;
	height: 5em;
	padding: 1em;
	margin: 1em auto;
}

.rules-container::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 5px;
	margin: 12px 0;
	width: 4px;
}

.rules-container::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
}

.rules-container::-webkit-scrollbar-thumb:hover {
	background: transparent;
}

@media screen and (max-width: 768px) {
	.rules-container {
		padding: 25px;
		width: 95%;
	}
	.rules-header h1 {
		font-size: 2rem;
	}
}

@media screen and (max-width: 480px) {
	.rules-container {
		padding: 20px;
		margin: 20px auto;
	}
	.rules-header h1 {
		font-size: 1.8rem;
	}
	.rules-section h2 {
		font-size: 1.2rem;
	}
	.rules-section p, .rules-section ul {
		font-size: 1rem;
	}
}
