/* --- START --- */
:root {
	--bg: #1e1e1e;
	--fg: #ccc;
	--accent1: #f0f;
	--accent2: #0ff;
	--accent3: #ff0;
	--accent4: #00f;
}

html {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--bg);
	color: var(--fg);
	font-family: 'IBM Plex Mono', monospace;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	-webkit-tap-highlight-color: transparent;
}

header {
	background: #181818;
	border-bottom: 1px solid #333;
	padding: 2rem;
	text-align: center;
}

/* --- MAIN TITLE burixon.dev --- */
.logo-terminal {
	height: 2.5rem;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	font-size: 2.5rem;
	color: var(--accent3);
	white-space: nowrap;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 2rem;
}

.cursor {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	display: inline-block;
	width: 1ch;
	animation: blink 0.8s step-end infinite;
	height: 3rem;
}

@keyframes blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

main {
	flex: 1;
	padding: 2rem;
}

/* --- TOGGLE SPIDER --- */
#spiderToggleBtn {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid transparent;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

#spiderToggleBtn .icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 22px;
	height: 22px;
	pointer-events: none;
}

#spiderToggleBtn img {
	background: transparent;
}

#spiderToggleBtn .spider-on {
	opacity: 1;
}

#spiderToggleBtn .spider-off {
	opacity: 0;
}

#spiderToggleBtn.disabled .spider-on {
	opacity: 0.35;
}

#spiderToggleBtn.disabled .spider-off {
	opacity: 1;
}

/* --- FOOTER --- */
.site-footer {
	background: #181818;
	border-top: 1px solid #333;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	font-size: 0.55rem;
	color: #888;
	padding: 12px 16px;
	margin-top: 20px;
}

.footer-top {
	margin-bottom: 8px;
	color: #aaa;
	text-align: center;
	font-size: 0.8rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 6px;
	align-items: center;
}

.cell {
	min-height: 20px;
	padding: 4px 8px;
	color: #aaa;
}

.cell-links {
	grid-row: 1 / span 2;
	text-align: left;
}

.cell-credits {
	text-align: right;
}

.cell-host {
	text-align: right;
}

.site-footer a {
	color: #fff;
	text-decoration: underline;
	transition: color 0.15s ease;
}

.site-footer a:hover {
	color: #0f0;
}

.site-footer a:active {
	color: #f0f;
}

.notetip {
	color: #666;
	font-size: 0.55rem;
	display: inline-block;
}

@media (max-width: 600px) {
	.footer-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
	}
	.cell-links {
		grid-row: auto;
	}
	.cell-credits,
	.cell-host {
		text-align: left;
	}
}

/* --- MENU BUTTON --- */
.scroll-top-nav {
	position: fixed;
	right: 20px;
	bottom: 100px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	user-select: none;
}

.circle-btn,
.menu-link {
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
}

.circle-btn {
	background-color: #0ff;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	padding: 0;
}

.scroll-top-nav.is-visible .circle-btn {
	opacity: 1;
	pointer-events: auto;
}

.circle-btn:hover {
	background-color: #f0f;
}

.menu-btn.is-open {
	background-color: #888;
	cursor: default;
}

.menu-btn.is-open:hover {
	background-color: #888;
}

.nav-menu-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.nav-menu-panel {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s, visibility 0s linear 0.15s;
}

.nav-menu-wrap.is-open .nav-menu-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.menu-link {
	background-color: #0ff;
	color: #000;
	text-decoration: none;
}

.menu-link:hover {
	background-color: #f0f;
}

.menu-link.coffee {
	background-color: #d7b24a;
}

.menu-link.coffee:hover {
	background-color: #f0f;
}

.icon {
	width: 24px;
	height: 24px;
	display: inline-block;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

.icon-up {
	-webkit-mask-image: url("/.files/images/controls/up-arrow.svg");
	mask-image: url("/.files/images/controls/up-arrow.svg");
}

.icon-menu {
	-webkit-mask-image: url("/.files/images/controls/menu-icon.svg");
	mask-image: url("/.files/images/controls/menu-icon.svg");
}

.icon-home {
	-webkit-mask-image: url("/.files/images/controls/home-icon.svg");
	mask-image: url("/.files/images/controls/home-icon.svg");
}

.icon-projects {
	-webkit-mask-image: url("/.files/images/controls/projects-icon.svg");
	mask-image: url("/.files/images/controls/projects-icon.svg");
}

.icon-blog {
	-webkit-mask-image: url("/.files/images/controls/blog-icon.svg");
	mask-image: url("/.files/images/controls/blog-icon.svg");
}

.icon-message {
	-webkit-mask-image: url("/.files/images/controls/message-icon.svg");
	mask-image: url("/.files/images/controls/message-icon.svg");
}

.icon-avatar {
	-webkit-mask-image: url("/.files/images/controls/avatar-icon.svg");
	mask-image: url("/.files/images/controls/avatar-icon.svg");
}

.icon-coffee {
	-webkit-mask-image: url("/.files/images/controls/coffee-icon.svg");
	mask-image: url("/.files/images/controls/coffee-icon.svg");
}

.circle-btn .icon,
.menu-link .icon {
	color: #000;
}

.menu-link.coffee .icon {
	color: #000;
}

.nav-tooltip {
	position: fixed;
	left: 0;
	top: 0;
	transform: translate(-50%, -140%);
	padding: 4px 8px;
	border-radius: 4px;
	background: #0ff;
	color: #111;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	z-index: 10000;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.nav-tooltip.is-visible {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 650px) {
	.scroll-top-nav {
		bottom: 20px;
	}
}
@media (max-width: 550px) {
	.icon {
		width: 22px;
		height: 22px;
	}
	.circle-btn,
	.menu-link {
		width: 45px;
		height: 45px;
	}
}
@media (max-width: 500px) {
	.icon {
		width: 18px;
		height: 18px;
	}
	.circle-btn,
	.menu-link {
		width: 45px;
		height: 45px;
	}
}
@media (max-width: 450px) {
	.icon {
		width: 16px;
		height: 16px;
	}
	.circle-btn,
	.menu-link {
		width: 35px;
		height: 35px;
	}
}

/* --- METRICS SVG --- */
.metrics {
	width: 85vw;
	text-align: left;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.metrics.pagespeed {
	max-width: 600px;
}

.metrics.github {
	max-width: 1200px;
}

.metrics img {
	width: 100%;
	height: auto;
}

/* --- NOTES --- */
.annotation {
	border-collapse: collapse;
	width: 85%;
	max-width: 750px;
	margin: 1.5rem 0rem;
	background-color: #1b1b1b;
	border: 1px solid #444;
	border-radius: 5px;
	box-shadow: 0 0 5px #0008;
	padding: 0.75rem;
	font-size: 0.85rem;
}
.annotation-title {
	font-weight: bold;
	font-size: 1.25rem;
	padding: 0rem 0rem 1rem 0rem;
	color: #fff;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.note {
	color: #f0f;
}
.info {
	color: #0ff;
}
.tip {
	color: #0f0;
}
.warning {
	color: #ff0;
}
.caution {
	color: #f00;
}
.annotation-title img {
	display: inline-block;
	animation: pulse 2s infinite;
	transform-origin: center center;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.15);
	}
	100% {
		transform: scale(1);
	}
}

/* --- LINKS FOR PAGE --- */
a {
	color: var(--accent2);
	text-decoration: underline;
	transition: 0.2s;
}

a:hover {
	color: var(--accent1);
}

/* --- RESOURCES --- */
ul, ol {
	padding-left: 1.5rem;
}

li {
	margin-bottom: 0.5rem;
}

table {
	border-collapse: collapse;
	width: 100%;
	margin: 1rem 0;
}

td, th {
	border: 1px solid #444;
	padding: 0.5rem;
	text-align: left;
}

textarea {
	width: 100%;
	min-height: 100px;
	background-color: #2a2a2a;
	color: var(--fg);
	border: 1px solid #555;
	font-family: inherit;
	padding: 0.5rem;
	resize: vertical;
}

/* --- NAVIGATION BUTTONS --- */
.main-nav {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	margin-top: 1rem;
}

.main-nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 2rem;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}

.main-nav a {
	color: var(--accent2);
	text-decoration: none;
	font-weight: bold;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s, border 0.2s;
}

.main-nav a:hover {
	color: var(--accent1);
	border: 1px solid var(--accent1);
	background-color: #2a2a2a;
}

.main-nav a.active {
    color: #f0f;
    border: 1px solid #f0f;
    pointer-events: none;
}

/* --- INLINED LINK --- */
a.text-link {
	color: #0f0;
	text-decoration: underline;
}

a.text-link:hover {
	color: #f0f;
	text-decoration: underline;
}

a.text-link:visited {
	color: #0ff;
	text-decoration: underline;
}

a.text-link:active {
	color: #f0f;
	text-decoration: underline;
}

.main-nav a.donate {
	background: linear-gradient(90deg, #f5e27a, #ffd700, #ffee77, #f5e27a);
	background-size: 300%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: shine 3s linear infinite;
	font-weight: bold;
}

@keyframes shine {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.main-nav a.donate:hover {
	color: #ffd700;
	background: none;
	-webkit-text-fill-color: #ffd700;
}

/* --- SCROLLBARS --- */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track:vertical {
	background: transparent;
	position: relative;
}

::-webkit-scrollbar-track:vertical::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	width: 1px;
	height: 100%;
	background-color: #aaa;
}

::-webkit-scrollbar-track:horizontal {
	background: transparent;
	position: relative;
}

::-webkit-scrollbar-track:horizontal::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 100%;
	height: 1px;
	background-color: #aaa;
}

::-webkit-scrollbar-thumb {
	background-color: #404040;
	border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
	background-color: #f00;
}

::-webkit-scrollbar-corner {
	background: transparent;
}

* {
	scrollbar-width: thin;
	scrollbar-color: #404040 transparent;
}

/* --- SELECTION --- */
::selection {
	background: #fff;
	color: #000;
}

/* --- MEDIA --- */
/* Phones */
@media (min-width: 100px) and (max-width: 300px) {
	.logo-terminal {
		font-size: 1.4rem;
		padding-bottom: 0.6rem;
	}
	.main-nav {
		font-size: 0.8rem;
	}
	.main-nav ul {
		gap: 0.4rem;
	}
	.main-nav a {
		padding: 0.2rem 0.5rem;
	}
	h1 {
		font-size: 1rem;
	}
	h2 {
		font-size: 0.8rem;
	}
	p {
		font-size: 0.7rem;
	}
}
@media (min-width: 301px) and (max-width: 350px) {
	.logo-terminal {
		font-size: 1.7rem;
		padding-bottom: 0.6rem;
	}
	.main-nav {
		font-size: 0.9rem;
	}
	.main-nav ul {
		gap: 0.5rem;
	}
	.main-nav a {
		padding: 0.25rem 0.55rem;
	}
	h1 {
		font-size: 1.1rem;
	}
	h2 {
		font-size: 0.95rem;
	}
	p {
		font-size: 0.75rem;
	}
}
@media (min-width: 351px) and (max-width: 400px) {
	.logo-terminal {
		font-size: 1.9rem;
		padding-bottom: 0.7rem;
	}
	.main-nav {
		font-size: 1rem;
	}
	.main-nav ul {
		gap: 0.6rem;
	}
	.main-nav a {
		padding: 0.3rem 0.65rem;
	}
	h1 {
		font-size: 1.3rem;
	}
	h2 {
		font-size: 1.1rem;
	}
	p {
		font-size: 0.9rem;
	}
}
@media (min-width: 401px) and (max-width: 600px) {
	.logo-terminal {
		font-size: 2rem;
		padding-bottom: 0.9rem;
	}
	.main-nav {
		font-size: 1.3rem;
	}
	.main-nav ul {
		gap: 0.85rem;
	}
	.main-nav a {
		padding: 0.4rem 0.75rem;
	}
	h1 {
		font-size: 1.75rem;
	}
	h2 {
		font-size: 1.45rem;
	}
	p {
		font-size: 1rem;
	}
}

/* MODALSY */
#cookieModal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 1em;
	z-index: 9999;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
}

.cookie-box {
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	padding: 1em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1em;
	box-sizing: border-box;
}

.cookie-box * {
	user-select: none;
}

.cookie-box p {
	flex: 1 1 70%;
	margin: 0;
	font-size: 1em;
	line-height: 1.5em;
	word-wrap: break-word;
}

.cookie-box button {
	flex: 0 0 auto;
	background: #00ff00;
	border: none;
	color: #000;
	padding: 0.6em 1.2em;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	white-space: nowrap;
	max-width: 100%;
}

.cookie-box button:hover {
	background: #ff00ff;
}

#blockWarningModal {
	position: fixed;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 800px;
	background: rgba(0,0,0,0.95);
	color: #fff;
	padding: 1.5em;
	z-index: 99999;
	box-shadow: 0 0 15px rgba(0,0,0,0.7);
	border-radius: 8px;
	box-sizing: border-box;
	border: 3px solid red;
}

.block-box {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.black-box * {
	user-select: none;
}

.block-header {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 0.5em;
}

.block-icon {
	width: 24px;
	height: 24px;
}

.block-title {
	color: red;
	font-weight: bold;
	font-size: 1.2em;
}

.block-box p {
	margin: 0;
	font-size: 1em;
	line-height: 1.5em;
}

.block-box button {
	align-self: flex-end;
	background: #ff0000;
	color: #fff;
	border: none;
	padding: 0.6em 1.2em;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	white-space: nowrap;
}

.block-box button:hover {
	background: #f0f;
}

#adModal {
	position: fixed;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	max-width: 400px;
	background: rgba(0,0,0,0.9);
	color: #ff0;
	padding: 1em;
	z-index: 99999;
	box-shadow: 0 0 15px rgba(0,0,0,0.7);
	border-radius: 8px;
	box-sizing: border-box;
	border: 3px solid yellow;
	text-align: left;
}

.ad-box * {
	user-select: none;
}

.ad-box img.ad-img {
	max-width: 100%;
	/* height: auto; */
	max-height: 50%;
	object-fit: contain;
	margin-bottom: 0.8em;
	border-radius: 8px;
}

.ad-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ad-footer p {
	margin: 0;
	font-size: 0.7em;
	flex: 1;
}

.ad-footer button {
	background: #ff0;
	color: #000;
	border: none;
	padding: 0.6em 1.2em;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	white-space: nowrap;
	margin-left: 1em;
}

.ad-footer button:hover {
	background: #f0f;
}

.ad-header {
	font-size: 1.4em;
	font-weight: bold;
	margin-bottom: 0.5em;
}


/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/.files/fonts/ibm-plex-mono/latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/.files/fonts/ibm-plex-mono/latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/.files/fonts/ibm-plex-mono/cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/.files/fonts/ibm-plex-mono/cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/.files/fonts/ibm-plex-mono/vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
