@media print {
	header, nav {
		display: none;
	}
	
	body {
		background: white;
		color: black;
	}
	
	.algo-section {
		page-break-inside: avoid;
		border-color: #000 !important;
	}
	
	.algo-section h3 {
		color: #000 !important;
	}
	
	.print-button {
		display: none;
	}
	
	.columns-2 {
		column-count: 2;
	}
}

.cheatsheet-container {
	max-width: 1000px;
	margin: 0 auto;
}

.cheatsheet-header {
	text-align: center;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #3498db;
}

.cheatsheet-header h2 {
	font-size: 2rem;
	color: #3498db;
	margin-bottom: 0.5rem;
}

.cheatsheet-header p {
	color: #95a5a6;
	font-size: 0.9rem;
}

.print-button {
	background: #3498db;
	color: white;
	border: none;
	padding: 0.7rem 1.5rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	margin-bottom: 2rem;
	transition: background 0.2s ease;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.print-button:hover {
	background: #2980b9;
}

.algo-section {
	background: #2d2d2d;
	border-left: 3px solid #3498db;
	padding: 1rem;
	margin-bottom: 1.5rem;
	border-radius: 4px;
	break-inside: avoid;
	page-break-inside: avoid;
}

.algo-section h3 {
	color: #3498db;
	font-size: 1rem;
	margin-bottom: 0.8rem;
	font-weight: 600;
}

.algo-section pre {
	margin: 0;
	background: #1e1e1e;
	padding: 0.8rem;
	border-radius: 4px;
	overflow-x: auto;
}

.algo-section code {
	font-size: 0.75rem;
	line-height: 1.4;
	font-family: 'Courier New', Courier, monospace;
}

.no-algos {
	text-align: center;
	padding: 4rem 2rem;
	color: #95a5a6;
}

.columns-2 {
	column-count: 2;
	column-gap: 2rem;
}

@media (max-width: 768px) {
	.columns-2 {
		column-count: 1;
	}
}