/* ===== Base Reset ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	background-color: #1e1e2e; /* Dark background */
	color: #e0e0e0; /* Light text */
	line-height: 1.6;
}

/* ===== Container ===== */
.container {
	max-width: 900px;
	margin: auto;
	padding: 15px;
}

/* ===== Heading ===== */
h1 {
	text-align: center;
	margin-bottom: 1rem;
	color: #ffffff;
	font-size: 1.8rem;
}

/* ===== Type Select ===== */
.type-select-container {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.type-select-container label {
	font-weight: bold;
	color: #ddd;
}

.type-select-container select {
	padding: 8px 10px;
	border-radius: 6px;
	border: none;
	background-color: #2b2b3b;
	color: #e0e0e0;
	font-size: 1rem;
	cursor: pointer;
}

/* ===== Header Row ===== */
.header-container {
	background-color: #2b2b3b;
	color: #ffffff;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	text-align: center;
	font-weight: bold;
	padding: 8px;
	border-radius: 6px 6px 0 0;
}

/* ===== Rating Points ===== */
.rating-point {
	background-color: #2b2b3b;
	margin: 5px 0;
	padding: 8px;
	border-radius: 6px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	align-items: center;
	gap: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	transition: background-color 0.2s;
}

.rating-point:hover {
	background-color: #34344a;
}

.checkbox-container {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Checkbox */
.rating-point input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #4cafef;
}

.rating-point label {
	cursor: pointer;
	color: #e0e0e0;
	/* For the tooltip/description on hover */
	position: relative;
}

/* Tooltip for label descriptions */
.rating-point label[title]:hover::after {
	content: attr(title);
	position: absolute;
	left: 0;
	top: 100%; /* Position below the label */
	background-color: #333;
	color: #fff;
	padding: 8px 12px;
	border-radius: 5px;
	white-space: normal; /* Allow text to wrap */
	max-width: 300px; /* Limit width */
	z-index: 10;
	font-size: 0.85rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ===== Dropdowns for Score & Weight ===== */
.rating-point select {
	width: 100%;
	padding: 8px;
	font-size: 1rem;
	border-radius: 4px;
	border: none;
	background-color: #1e1e2e;
	color: #ffffff;
	text-align: center;
	cursor: pointer;
	appearance: none;
	outline: none;
}

.rating-point select:hover {
	background-color: #29293d;
}

/* ===== Result ===== */
.result-container {
	margin-top: 1rem;
	text-align: center;
	font-size: 1.3rem;
	font-weight: bold;
	color: #ffffff;
	background-color: #2b2b3b;
	padding: 10px;
	border-radius: 6px;
}

/* ==== Stats ==== */
#stats {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.9rem;
	color: #cccccc;
	border: 1px solid #2b2b3b;
	padding: 10px;
	border-radius: 6px;
	background-color: #2b2b3b;
}

.stat {
	margin-bottom: 0.5rem;
}

/* ===== Info Sections ===== */
.info-section {
	background-color: #2b2b3b;
	padding: 20px;
	border-radius: 8px;
	margin-top: 2rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.info-section h2 {
	color: #4cafef;
	margin-bottom: 1rem;
	text-align: center;
}

.info-section p {
	margin-bottom: 1rem;
	color: #e0e0e0;
}

.info-section ul {
	list-style-type: none;
	padding: 0;
}

.info-section li {
	margin-bottom: 0.8rem;
	background-color: #34344a;
	padding: 10px 15px;
	border-radius: 5px;
	border-left: 4px solid #4cafef;
}

.info-section li strong {
	color: #ffffff;
}

.points-description-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 1.5rem;
}

.anime-points-description h3,
.manga-points-description h3 {
	color: #ffffff;
	margin-bottom: 1rem;
	text-align: center;
}

/* ===== Responsive Design ===== */
@media (min-width: 769px) {
	.points-description-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.header-container {
		display: none;
	}

	.rating-point {
		grid-template-columns: 1fr;
		padding: 10px;
	}

	.checkbox-container {
		margin-bottom: 6px;
	}

	.rating-point select {
		font-size: 1.1rem;
		padding: 10px;
	}

	.rating-point label[title]:hover::after {
		left: 50%; /* Center tooltip */
		transform: translateX(-50%);
	}
}

@media (max-width: 480px) {
	.container {
		width: 100%;
		padding: 10px;
	}

	h1 {
		font-size: 1.5rem;
	}

	.type-select-container {
		flex-direction: column;
		align-items: flex-start;
	}

	.info-section h2 {
		font-size: 1.3rem;
	}
}
