:root {
	--color1: #2d42c0;
	--color2: #b148b8;
	--color3: #c6c43f;
	--color4: #14181d;
	--color5: #57bf37;
	--terminal-bg: #0c0c0c;
	--terminal-border: #333;
	--terminal-text: #f0f0f0;
	--terminal-prompt: #57bf37;
	--terminal-command: #ffffff;
	--terminal-output: #cccccc;
	--terminal-glow: rgba(87, 191, 55, 0.3);
}

* {
	margin: 0;
	padding: 0;
}

body {
	background-color: #0a0a0a;
	background-image:
		radial-gradient(circle at 20% 80%, rgba(87, 191, 55, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(45, 66, 192, 0.1) 0%, transparent 50%);
	color: var(--color5);
	font-size: 13px;
	font-family: "Fira Mono", monospace;
	font-weight: 400;
	min-height: 100vh;
	overflow-x: hidden;
}

/* Terminal scanlines effect */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(0deg,
			transparent,
			transparent 2px,
			rgba(0, 255, 0, 0.03) 2px,
			rgba(0, 255, 0, 0.03) 4px);
	pointer-events: none;
	z-index: 0;
}

/* Terminal flicker effect */
body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 255, 0, 0.02);
	pointer-events: none;
	z-index: 0;
	animation: flicker 0.15s infinite linear alternate;
}

@keyframes flicker {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0.95;
	}
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1rem auto;
	filter: brightness(0.9) contrast(1.1);
}

#container {
	position: relative;
	margin: 10px auto;
	max-width: 900px;
	padding: 0 15px;
	z-index: 10;
}

#top-nav {
	text-align: left;
	border-bottom: 2px solid var(--color5);
	margin-bottom: 25px;
	background: rgba(12, 12, 12, 0.8);
	backdrop-filter: blur(10px);
	border-radius: 8px 8px 0 0;
}

#top-nav>ul {
	list-style: none;
	overflow: hidden;
}

#top-nav>ul>li {
	float: left;
}

#top-nav>ul>li.right {
	float: right;
}

#top-nav>ul>li>a {
	display: block;
	text-align: center;
	color: var(--color5);
	padding: 14px 16px;
	text-decoration: none;
	transition: all 0.2s ease;
	border-radius: 4px;
	margin: 4px;
}

#top-nav>ul>li a:hover {
	background-color: rgba(87, 191, 55, 0.1);
	box-shadow: 0 0 10px rgba(87, 191, 55, 0.3);
	text-shadow: 0 0 5px rgba(87, 191, 55, 0.8);
}

#top-nav>ul>li .active {
	color: var(--color3);
	background-color: rgba(198, 196, 63, 0.1);
	box-shadow: 0 0 10px rgba(198, 196, 63, 0.3);
}

.logo {
	position: relative;
	float: left;
	clear: both;
	margin-right: 15px;
	margin-bottom: 15px;
}

.self-portrait {
	border-radius: 50%;
	border: 2px solid var(--color5);
	box-shadow: 0 0 20px var(--terminal-glow);
}

.title {
	color: var(--color5);
	text-shadow: 0 0 10px var(--terminal-glow);
	margin-bottom: 20px;
	filter: drop-shadow(0 0 5px rgba(87, 191, 55, 0.5));
	text-align: center;
	line-height: 10px;
}

.content {
	text-align: center;
}
.terminal-link {
	color: #4fc3f7;
	text-decoration: none;
	border-bottom: 1px dotted #4fc3f7;
	transition: all 0.2s ease;
}

.terminal-link:hover {
	color: #29b6f6;
	border-bottom: 1px solid #29b6f6;
	text-shadow: 0 0 5px rgba(79, 195, 247, 0.5);
}

/* Enhanced terminal display */
pre.terminal {
	background:
		radial-gradient(ellipse at center, rgba(87, 191, 55, 0.05) 0%, transparent 70%),
		linear-gradient(135deg, #0c0c0c 0%, #111111 100%);
	border: 2px solid var(--terminal-border);
	border-radius: 12px;
	padding: 25px;
	min-height: 450px;
	min-width: 800px;
	overflow-x: auto;
	line-height: 20px;
	text-wrap: auto;
	box-shadow:
		0 0 30px rgba(0, 0, 0, 0.8),
		inset 0 0 120px rgba(0, 0, 0, 0.3),
		0 0 60px rgba(87, 191, 55, 0.1);
	position: relative;
	margin: 20px 0;
}

/* Terminal header bar */
pre.terminal::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 35px;
	background: linear-gradient(to bottom, #2d2d2d, #1a1a1a);
	border-radius: 10px 10px 0 0;
	border-bottom: 1px solid #444;
}

/* Terminal window controls */
pre.terminal::after {
	content: "";
	position: absolute;
	top: 12px;
	left: 15px;
	width: 12px;
	height: 12px;
	background: #ff5f56;
	border-radius: 50%;
	box-shadow:
		20px 0 0 #ffbd2e,
		40px 0 0 #27ca3f;
}

pre.terminal>code {
	font-size: 14px;
	display: block;
	color: var(--terminal-text);
	position: relative;
}

.prompt {
	color: var(--terminal-prompt);
	font-weight: 500;
	text-shadow: 0 0 5px rgba(87, 191, 55, 0.5);
}

.command {
	color: var(--terminal-command);
	font-weight: 400;
}

.output {
	color: var(--terminal-output);
}

/* Single cursor implementation */
.cursor-line {
	color: var(--terminal-prompt);
	animation: cursor-blink 1.2s step-start infinite;
	font-weight: bold;
	text-shadow: 0 0 5px rgba(87, 191, 55, 0.8);
}

@keyframes cursor-blink {
	50% {
		opacity: 0;
	}
}

/* ASCII art styling */
.ascii-line {
	display: flex;
	white-space: pre;
	font-family: 'Fira Mono', monospace;
	margin: 2px 0;
	line-height: 12px;
}

.ascii-art {
	color: #ff7f7f;
	width: 40ch;
	font-weight: 500;
	text-shadow: 0 0 3px rgba(255, 127, 127, 0.5);
}

.ascii-info {
	color: var(--terminal-text);
	padding-left: 2ch;
	flex: 1;
}

.label {
	color: #00ffff;
	font-weight: bold;
	text-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
}

.value {
	color: #ffffff;
	font-weight: normal;
}

.footer {
	text-align: center;
	font-size: 12px;
	margin-top: 30px;
	color: var(--terminal-output);
	opacity: 0.8;
}

.footer a {
	color: var(--color5);
	text-decoration: none;
	transition: all 0.2s ease;
}

.footer a:hover {
	text-shadow: 0 0 5px rgba(87, 191, 55, 0.8);
}

/* Responsive design */
@media (max-width: 650px) {
	.hide-mobile {
		display: none;
	}

	#container {
		padding: 0 10px;
	}

	pre.terminal {
		padding: 20px 15px;
		min-height: 450px;
	}

	.ascii-line {
		flex-direction: column;
	}

	.ascii-art {
		width: 100%;
		margin-bottom: 5px;
	}

	.ascii-info {
		padding-left: 0;
		line-height: normal;
	}
}

/* Terminal typing effect enhancement */
.typing-effect {
	border-right: 2px solid var(--terminal-prompt);
	animation: typing-cursor 1.2s step-start infinite;
}

@keyframes typing-cursor {
	50% {
		border-color: transparent;
	}
}

table {
	width: 100%;
	border-collapse: collapse;
	color: var(--color3);
	font-size: 13px;
}

td {
	padding: 1px 12px;
}

th {
	font-weight: bold;
	padding: 10px 12px;
}

tr:nth-child(odd) {
	background-color: #131313;
}

/*
tr:last-child td {
	margin-bottom: 10px;
}
*/

tr:hover {
	background-color: #222;
}

#posts-table .title>.number {
	color: var(--color4);
}

#posts-table .title>.name {
	color: var(--color3);
}

#posts-table .description {
	color: var(--color5);
}

#posts-table .description>.code {
	color: var(--color2);
}

.blog-post h1,
.blog-post h2,
.blog-post h3 {
	color: var(--color5);
	text-shadow: 0 0 5px var(--terminal-glow);
	margin: 2rem 0 1rem;
	line-height: 1.4;
}

.blog-post p {
	margin-bottom: 1rem;
	line-height: 1.6;
	color: var(--terminal-text);
}

.blog-post a {
	color: var(--color2);
	border-bottom: 1px dashed var(--color2);
	text-decoration: none;
	transition: all 0.2s ease;
}

.blog-post a:hover {
	color: var(--color1);
	border-bottom: 1px solid var(--color1);
	text-shadow: 0 0 4px var(--color1);
}

.blog-post img {
	margin: 1.5rem auto;
	border: 1px solid var(--color5);
	box-shadow: 0 0 10px var(--terminal-glow);
	border-radius: 4px;
	max-width: 100%;
	height: auto;
}

.blog-post ul,
.blog-post ol {
	margin-left: 1.5rem;
	margin-bottom: 1rem;
	color: var(--terminal-output);
}

.blog-post li {
	margin-bottom: 0.5rem;
}

.blog-post pre {
	background: #111;
	border: 1px solid var(--terminal-border);
	padding: 1rem;
	overflow-x: auto;
	font-size: 13px;
	margin: 1.5rem 0;
	color: var(--terminal-text);
	box-shadow: 0 0 8px var(--terminal-glow);
}

.blog-post #viewer {
	border: 1px solid var(--terminal-border);
	box-shadow: 0 0 10px var(--terminal-glow);
	margin: 2rem auto;
	max-width: 100%;
	border-radius: 6px;
}