:root {
    --bg-color: #f6f0c6; /* Gold */
    --text-color: #000000; /* Black */
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
	font-size: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
	background: rgba(216,205,92,0.7);
    backdrop-filter: blur(15px); /* glass effect */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 
}

main {
	padding: 10px 80px 80px;
}

footer {
    padding: 40px 40px;
	background: rgba(216,205,92,0.7);
    backdrop-filter: blur(15px); /* glass effect */
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Logo */

.logo-bx-icon {
    -webkit-mask-image: url(/logo-baxxon.svg);
    mask-image: url(/logo-baxxon.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.logo-bx-text {
    font-family: 'Science Gothic', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
	text-decoration: none;
}

header .logo-bx-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .logo-bx-icon {
    width: 3.4rem;
    height: 3.4rem;
    background-color: #000; 
}

header .logo-bx-text {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
	color: #000;
}

header a {
	text-decoration: none;
}

/* Navigation */

nav {
    font-family: 'Courier Prime', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

nav a {
    color: #000;
    text-decoration: none;
	padding: 0 0.4em;
}

nav a:hover {
    opacity: 0.6;
}

header nav {
	font-size: 1.2rem;
}

footer nav {
	font-size: 0.8rem;
	font-weight: 500;
}
	

/* headings */
h1 {
	font-size: 3.5rem;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.3rem;
}
h4, p {
	font-size: 1.2rem;
}

hgroup h1 {
	margin: 0;
}
hgroup h3 {
	margin-top: 0;
}
hgroup {
	padding: 0 0 1rem 0;
}


/* Code Blocks */
pre {
    background: #1b1b1d; /* Dark theme for code */
	background: rgba(0,0,0,0.1);
    padding: 1.8rem 1rem 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    margin: 1.5rem 0;
    position: relative;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Language Indicator (Top Right) */
pre[data-language]::before {
    content: attr(data-language);
    position: absolute;
    bottom: 0;
    right: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-bottom: 0.4rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Copy Button */
.copy-button-container {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

pre:hover .copy-button-container {
    opacity: 1;
    pointer-events: auto;
}

.copy-button {
    width: 34px;
    height: 34px;
    background-color: #333;
    background-image: url(/icon-copy.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    filter: invert(1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.copy-button:hover {
    background-color: #444;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-message {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}

.copy-message.show {
    opacity: 1;
}

.copy-button.copied {
    background-image: none;
}

.copy-button.copied::after {
    content: 'copied';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #4caf50;
    font-size: 1.1rem;
    font-weight: bold;
}


/* FOOTER content */

footer .copyright {
	font-size: 0.8rem;
}

@media (max-width: 760px) {
	html {
		font-size: 12px;
	}
	header, main, footer {
		padding: 10px;
	}
}


