@font-face {
	font-family: 'Terminus';
	src: url('/assets/fonts/terminus-webfont.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}


:root {
	/* Theme colors */
	/* Only used as fallback, will be overwritten (consider editing these values in /src/js/modules/theme.js) */
	--main-color: #72b6ff;
	--main-color-40: #72b6ff80;
	--main-color-20: #72b6ff33;
	--bg-color: 15, 129, 236; /* example: rgba(var(--bg-color), 0.5) to use the background-color with 50% opacity */
	--bg-opacity: 0.15;
	--selection: #3b6d8b;

	/* other */
	--warning-color: rgb(240, 86, 86);
	--info-color: #ffffff;

	--noise-opacity: 0.65;
	--background-video-opacity: 0.275;
	--grunge-overlay-opacity: 0.9;

	--tab-background-blur: 4px;

	font-size: 10px;
}

html {
	background: black;
	overflow-x: hidden;
}

body {
	color: var(--main-color);
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgba(var(--bg-color), 0.2) 250%),
		rgba(var(--bg-color), var(--bg-opacity));

	margin: 0;
	height: 100vh;
	width: 100vw;

	overflow-y: auto;
	scroll-behavior: smooth;

	font-family: 'Terminus', 'Courier New', monospace;
}

/* Boot message overlay - Terminal theme */
#boot-message {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #000;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	z-index: 9999;
	opacity: 1;
	transition: opacity 0.5s;
	pointer-events: none;
	overflow: hidden;
	border: 3px solid var(--main-color);
	box-shadow:
		inset 0 0 50px rgba(var(--bg-color), 0.2),
		0 0 50px var(--main-color);
}

#boot-message::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.15) 0px,
		transparent 1px,
		transparent 2px,
		rgba(0, 0, 0, 0.15) 3px
	);
	pointer-events: none;
	z-index: 3;
}

#boot-message::after {
	content: '╔════════════════════════════════════════════════════════════════════════════╗';
	position: absolute;
	top: 0.5em;
	left: 50%;
	transform: translateX(-50%);
	color: var(--main-color);
	font-family: 'Courier New', monospace;
	font-size: 0.6em;
	opacity: 0.3;
	z-index: 4;
	letter-spacing: -1px;
	text-shadow: 0 0 10px var(--main-color);
}

#boot-message.hide {
	opacity: 0;
}

#boot-matrix {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0.2;
}

#boot-text {
	font-family: 'Courier New', monospace;
	color: var(--main-color);
	text-align: left;
	font-size: 0.85em;
	padding: 2em;
	width: 100%;
	line-height: 1.3;
	max-height: 100vh;
	overflow-y: auto;
	position: relative;
	z-index: 2;
	text-shadow: 0 0 5px var(--main-color);
	animation: boot-text-flicker 0.15s infinite;
}

@keyframes boot-text-flicker {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.98; }
}

#boot-lines {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	position: relative;
}

#boot-lines::after {
	content: '╚════════════════════════════════════════════════════════════════════════════╝';
	position: fixed;
	bottom: 0.5em;
	left: 50%;
	transform: translateX(-50%);
	color: var(--main-color);
	font-family: 'Courier New', monospace;
	font-size: 0.6em;
	opacity: 0.3;
	z-index: 4;
	letter-spacing: -1px;
	text-shadow: 0 0 10px var(--main-color);
}

.boot-line {
	opacity: 0;
	animation: boot-line-fade 0.1s forwards;
	white-space: nowrap;
	overflow: hidden;
}

.boot-line.ok::before {
	content: "[ OK ] ";
	color: #00ff00;
	font-weight: bold;
	text-shadow: 0 0 8px #00ff00;
}

.boot-line.info::before {
	content: "[INFO] ";
	color: var(--main-color);
	font-weight: bold;
	text-shadow: 0 0 8px var(--main-color);
}

.boot-cursor {
	display: inline-block;
	width: 0.6em;
	height: 1em;
	background: var(--main-color);
	margin-left: 0.2em;
	animation: boot-cursor-blink 1s infinite;
}

@keyframes boot-line-fade {
	to { opacity: 1; }
}

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

/* Mobile boot screen adjustments */
@media screen and (max-width: 768px) {
	#boot-message {
		border-width: 2px;
	}

	#boot-message::after {
		font-size: 0.4em;
		top: 0.3em;
		letter-spacing: -2px;
	}

	#boot-message::before {
		display: none; /* Disable scanlines on mobile */
	}

	#boot-text {
		font-size: 0.7em;
		padding: 1em;
		padding-top: 2em;
		line-height: 1.2;
		animation: none; /* Disable flicker animation on mobile */
		text-shadow: none; /* Reduce text-shadow for performance */
	}

	#boot-lines {
		gap: 0.1em;
	}

	#boot-lines::after {
		font-size: 0.4em;
		bottom: 0.3em;
		letter-spacing: -2px;
	}

	.boot-line {
		animation: none; /* Disable fade-in animation */
		opacity: 1;
	}

	.boot-line.ok::before,
	.boot-line.info::before {
		text-shadow: none; /* Remove text shadows on mobile */
	}

	#boot-message {
		box-shadow: none; /* Remove expensive box-shadow on mobile */
	}
}

/* Additional mobile performance optimizations */
@media screen and (max-width: 767px) {
	/* Reduce expensive box-shadows */
	.tabs,
	.grid-row-box,
	nav ul,
	summary,
	a:hover {
		box-shadow: none !important;
	}

	/* Disable smooth scrolling for better performance */
	html {
		scroll-behavior: auto;
	}

	/* Simplify transitions */
	* {
		transition-duration: 0.1s !important;
	}
}

/* BACKGROUND AND OVERLAYS */
#rain-vid,
#noise-overlay,
#grunge-overlay {
	position: fixed;
	overflow: hidden;

	top: 0;
	left: 0;
	bottom: 0;
	right: 0;

	height: 100vh;
	width: 100vw;

	pointer-events: none;

	z-index: 10;

	display: none; /* Hide background videos by default, will be overwritten in effects.css if effects are not disabled */
}

#rain-vid {
	opacity: var(--background-video-opacity);
	object-fit: cover;
	z-index: -1;
}

#grunge-overlay {
	background: url('/assets/images/grunge.jpg');
	background-size: cover;
	mix-blend-mode: color-dodge;
	opacity: var(--grunge-overlay-opacity);
}

@keyframes noise {
	0% {
		background: url('/assets/images/noise-textures/noisy-texture-200x200-1.png');
	}
	25% {
		background: url('/assets/images/noise-textures/noisy-texture-200x200-2.png');
	}
	50% {
		background: url('/assets/images/noise-textures/noisy-texture-200x200-3.png');
	}
	75% {
		background: url('/assets/images/noise-textures/noisy-texture-200x200-4.png');
	}
}

#noise-overlay {
	background-blend-mode: multiply;
	background: url('/assets/images/noise-textures/noisy-texture-200x200-1.png');
	filter: contrast(1.5) brightness(0.4) hue-rotate(90deg);
	opacity: var(--noise-opacity);

	mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 150%);
	mask-size: cover;
	mask-position: center;

	animation: noise 0.3s steps(4) infinite;
}

.snowflake {
	position: fixed;
	animation-timing-function: linear;
	z-index: -1;
	background: white;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(1px);
}

@keyframes snowflake-fall {
	0% {
		transform: translateY(-15vh);
	}
	100% {
		transform: translateY(125vh);
	}
}

@keyframes snowflake-fall-horizontal-1 {
	0% {
		transform: translateX(0) translateY(-15vh);
	}
	100% {
		transform: translateX(20vw) translateY(125vh);
	}
}

@keyframes snowflake-fall-horizontal-2 {
	0% {
		transform: translateX(0) translateY(-15vh);
	}
	100% {
		transform: translateX(-20vw) translateY(125vh);
	}
}

/* global styles | general */

::selection {
	background-color: var(--selection);
}

a {
	color: var(--main-color);
	text-decoration: underline;
}

a:hover {
	background-color: var(--main-color);
	cursor: pointer;
	color: rgba(24, 45, 75, 0.616);

	transition: box-shadow 0.1s, background-color 0s, color 0s;

	text-decoration: none;
}

pre,
p,
li,
h1,
h2,
h3,
h4,
td {
	margin: 0;
	font-weight: normal;
}

h4 {
	font-size: 1em;
}

p em {
	opacity: 0.7;
}

i {
	margin-right: 0.75em;
	vertical-align: middle;
}

summary {
	-webkit-user-select: none; /* Safari */
	user-select: none;
	outline: 2px solid var(--main-color);
	padding: 0.25em 0.5em;
	position: relative;
	background: linear-gradient(90deg, rgba(var(--bg-color), 0.2) 0%, transparent 70%);
	transition: all 0.3s;
}

summary::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--main-color);
	box-shadow: 0 0 10px var(--main-color);
}

summary h2 {
	display: inline;
	margin-left: 0.5em;
}

summary::marker {
	font-size: 1.5em;
}

summary:hover {
	cursor: pointer;
	background: linear-gradient(90deg, var(--main-color) 0%, rgba(var(--bg-color), 0.5) 70%, transparent 100%);
	color: rgba(24, 45, 75, 0.8);
	box-shadow: 0 0 15px rgba(var(--bg-color), 0.8);
}

details[open] summary {
	margin-bottom: 0.5em;
}

details[open] summary:not(:hover) {
	background: linear-gradient(90deg, rgba(var(--bg-color), 0.4) 0%, rgba(var(--bg-color), 0.2) 40%, transparent 80%);
}

#canvas {
	font-size: 1.75em;
	padding: 1.8em;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px; /* spacing between tags */
}

.tag {
	white-space: nowrap;
}


.tag-list {
	display: flex;
	gap: 0.5em;
	margin: 0.5em 0;
}

.tag {
	padding: 0.1em 0.3em;
	background: linear-gradient(90deg, transparent -5%, rgba(var(--bg-color), 0.3) 75%);
	border: 1px solid var(--main-color);
	position: relative;
	font-family: 'Courier New', monospace;
	letter-spacing: 1px;
}

.tag::before {
	content: '[';
	margin-right: 0.2em;
	opacity: 0.7;
}

.tag::after {
	content: ']';
	margin-left: 0.2em;
	opacity: 0.7;
}

.tag[class*='active'] {
	--tag-color: rgb(183, 241, 95);
	--bg-alpha: rgba(0, 255, 0, 0.3);
}

.tag[class*='inactive'] {
	--tag-color: rgb(230, 114, 37);
	--bg-alpha: rgba(255, 0, 0, 0.3);
}

.tag[class*='open-source'] {
	--tag-color: rgb(179, 138, 245);
	--bg-alpha: rgba(200, 95, 241, 0.3);
}

.tag[class*='active'],
.tag[class*='inactive'],
.tag[class*='open-source'] {
	border-color: var(--tag-color);
	color: var(--tag-color);
	background: linear-gradient(90deg, transparent -5%, var(--bg-alpha) 120%);
}

hr.dotted {
	border: none;
	border-top: 1px dotted var(--main-color);
	height: 1px;
	width: 100%;
}

.tooltip {
	position: absolute;
	background-color: rgba(var(--bg-color), 0.45);
	color: var(--main-color);
	padding: 5px 10px;
	border: 1px solid var(--main-color);
	font-size: 14px;
	pointer-events: none;
	white-space: nowrap;
}

/* Header container */
header {
	position: relative;
}

/* ASCII AND INTRODUCTION */
#title {
	font-size: 1.3em;
	font-family: 'Courier New', Courier, monospace;
	-webkit-user-select: none; /* Safari */
	user-select: none;
	margin-bottom: 1em;
	text-shadow:
		0 0 10px var(--main-color),
		0 0 20px var(--main-color),
		0 0 30px var(--main-color);
	position: relative;
	transition: all 0.3s;
}


#sub-title {
	font-size: 1em;
}

/* Toggle switch */
.toggle-switch {
	position: relative;
	width: 60px;
	height: 30px;
}

.toggle-switch input {
	display: none;
}

.toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	border: 2px solid var(--main-color);
	transition: 0.3s;
	border-radius: 30px;
}

.toggle-slider::before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background: var(--main-color);
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 0 10px var(--main-color);
}

.toggle-switch input:checked + .toggle-slider {
	background: rgba(var(--bg-color), 0.8);
	box-shadow: inset 0 0 10px var(--main-color);
}

.toggle-switch input:checked + .toggle-slider::before {
	transform: translateX(30px);
}

/* Settings tab styling */
.tabs .setting-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em;
	margin: 1em 0;
	background: rgba(var(--bg-color), 0.2);
	border-left: 3px solid var(--main-color);
}

.tabs .setting-item label {
	font-size: 1em;
	cursor: pointer;
	flex: 1;
}

.tabs #theme-select {
	background: rgba(0, 0, 0, 0.5);
	border: 2px solid var(--main-color);
	color: var(--main-color);
	padding: 0.5em 1em;
	font-size: 1em;
	font-family: 'Courier New', monospace;
	cursor: pointer;
	transition: all 0.3s;
}

.tabs #theme-select:hover,
.tabs #theme-select:focus {
	background: rgba(var(--bg-color), 0.8);
	box-shadow: 0 0 10px var(--main-color);
	outline: none;
}

.tabs #theme-select option {
	background: #000;
	color: var(--main-color);
	padding: 0.5em;
}

/* NAV BAR USED FOR TAB PAGES */
nav ul {
	list-style-type: none;
	display: flex;
	padding: 0;
	gap: 2.5em;
	position: relative;
}

nav ul::before {
	content: '>';
	position: absolute;
	left: -1em;
	color: var(--main-color);
	animation: nav-arrow-blink 2s infinite;
}

@keyframes nav-arrow-blink {
	0%, 50%, 100% { opacity: 1; }
	25%, 75% { opacity: 0.3; }
}

nav ul li a {
	padding: 0.2em 0.3em;
	position: relative;
	transition: all 0.3s;
	border: 1px solid transparent;
}

nav ul li a::before {
	content: '';
	position: absolute;
	top: -3px;
	left: -3px;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--main-color);
	border-left: 2px solid var(--main-color);
	opacity: 0;
	transition: opacity 0.3s;
}

nav ul li a::after {
	content: '';
	position: absolute;
	bottom: -3px;
	right: -3px;
	width: 8px;
	height: 8px;
	border-bottom: 2px solid var(--main-color);
	border-right: 2px solid var(--main-color);
	opacity: 0;
	transition: opacity 0.3s;
}

nav ul li a:hover::before,
nav ul li a:hover::after {
	opacity: 1;
}

.tab-active {
	background-color: var(--main-color);
	color: rgba(24, 45, 75, 0.616);
	text-decoration: none;
	border: 1px solid var(--main-color) !important;
}

.tab-active::before,
.tab-active::after {
	opacity: 1 !important;
}

/* PRINT ANIMATION WHEN CHANGING TABS AND ON PAGE LOAD */
.fade-in {
	opacity: 0;
}

.fade-in.visible:not(em) {
	opacity: 1;
	transform: translateY(0);
}

.fade-in.visible em {
	opacity: 0.7;
	transform: translateY(0);
}

@keyframes fade-in-anim {
	0% {
		opacity: 0.75;
		transform: scale(0.985) rotateX(-15deg);
	}
	35% {
		opacity: 0.8;
	}

	100% {
		opacity: 1;
		transform: scale(1) rotateX(0);
	}
}

.fade-in-anim:not(em) {
	animation: fade-in-anim 0.5s ease-out;
}

/* TABS */
.tabs:not(:target) {
	display: none;
}

.tabs {
	border: 2px solid var(--main-color);
	padding: 1.5em;
	backdrop-filter: blur(var(--tab-background-blur));
	background: linear-gradient(45deg, rgba(var(--bg-color), 0.05) 70%, rgba(var(--bg-color), 0.2) 110%);
	position: relative;
	box-shadow: 0 0 20px rgba(var(--bg-color), 0.5);
}

/* Corner decorations for tabs */
.tabs::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	width: 20px;
	height: 20px;
	border-top: 3px solid var(--main-color);
	border-left: 3px solid var(--main-color);
}

.tabs::after {
	content: '';
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	border-bottom: 3px solid var(--main-color);
	border-right: 3px solid var(--main-color);
}

/* Additional corner brackets */
.tabs {
	--corner-size: 15px;
}

.tabs > h2::before {
	content: '[ ';
	color: var(--main-color);
	opacity: 0.7;
}

.tabs > h2::after {
	content: ' ]';
	color: var(--main-color);
	opacity: 0.7;
}

/* GRID-SYSTEM FOR CONTENT OF TABS */
.grid-row,
.grid {
	display: flex;
	gap: 1em;
}

.grid {
	flex-direction: column;
}

.grid-row-box {
	padding: 0.5em;
	width: 100%;
	border: 2px solid var(--main-color);
	position: relative;
	background: linear-gradient(135deg, rgba(var(--bg-color), 0.1) 0%, transparent 50%);
}

/* Tech-style corners for grid boxes */
.grid-row-box::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	width: 12px;
	height: 12px;
	border-top: 2px solid var(--main-color);
	border-left: 2px solid var(--main-color);
	background: rgba(var(--bg-color), 0.5);
}

.grid-row-box::after {
	content: '';
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 12px;
	height: 12px;
	border-bottom: 2px solid var(--main-color);
	border-right: 2px solid var(--main-color);
	background: rgba(var(--bg-color), 0.5);
}

.grid-row-box-shrink {
	flex-shrink: 5;
}

/* HOME TAB */
#welcome-title {
	background: linear-gradient(90deg, var(--main-color) 0%, rgba(var(--bg-color), 0.5) 40%, transparent 100%);
	outline: 2px solid var(--main-color);
	margin-bottom: 0.5em;
	padding: 0.25em 0.5em;
	position: relative;
	color: white;
	text-shadow: 0 0 10px var(--main-color);
}

#welcome-title::before {
	content: '>';
	margin-right: 0.5em;
	color: rgba(0, 0, 0, 0.7);
	font-weight: bold;
}

#update-list em::after {
	content: '\A';
	white-space: pre;
}

#update-list p:not(:last-child) {
	margin-bottom: 0.75em;
}

#theme-list p:not(:last-child) {
	margin-bottom: 0.5em;
}

/* PROJECTS TAB */
#pr-list {
	padding-left: 0;
}

#pr-list li {
	list-style: none;
	border: 2px solid var(--main-color);
	border-width: 2px;
	background: linear-gradient(45deg, rgba(var(--bg-color), 0.05) 70%, rgba(var(--bg-color), 0.2) 110%);
	padding-bottom: 0.5em;
	position: relative;
	transition: all 0.3s;
}

/* Corner brackets for project items */
#pr-list li::before {
	content: '';
	position: absolute;
	top: -2px;
	right: -2px;
	width: 15px;
	height: 15px;
	border-top: 3px solid var(--main-color);
	border-right: 3px solid var(--main-color);
}

#pr-list li::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: -2px;
	width: 15px;
	height: 15px;
	border-bottom: 3px solid var(--main-color);
	border-left: 3px solid var(--main-color);
}

#pr-list li > *:not(:first-child) {
	padding: 0 0.5em;
}

#pr-list li:not(:last-child) {
	margin-bottom: 1.5em;
}

#pr-list li a {
	padding: 0.1em 0;
}

.pr-title {
	background: linear-gradient(90deg, var(--main-color) 0%, var(--main-color) 95%, transparent 100%);
	color: black;
	margin-bottom: 0.5em;
	padding: 0.25em;
	position: relative;
	font-weight: bold;
	letter-spacing: 1px;
	text-shadow: none;
}

.pr-title::before {
	content: '>';
	margin-right: 0.5em;
	font-weight: bold;
}

.pr-title::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 30px;
	background: linear-gradient(90deg, var(--main-color), transparent);
}

.pr-warning,
.pr-warning em {
	color: var(--warning-color);
}

.pr-info,
.pr-info em {
	color: var(--info-color);
}

/* PICTURES TAB */
.row,
.img-container {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	width: 100%;
	display: flex;
	justify-content: space-between;
	gap: 1.5em;
}

.row img,
.img-container {
	flex: 1 1 auto;
	-webkit-user-select: none; /* Safari */
	user-select: none;
	transition: filter 0.3s ease-in-out;
	width: 0;
}

.img-desc {
	position: absolute;
	vertical-align: bottom;
	align-items: end;

	width: 100%;
	height: 100%;
	display: flex;
	filter: opacity(0%);
	transition: 0.3s;
}

.img-desc:hover {
	filter: opacity(100%);
	background: linear-gradient(transparent 50%, black);
}

.img-container {
	position: relative;
}

.row img:hover {
	filter: brightness(1.5);
	cursor: pointer;
}

#photography .row img:hover {
	filter: brightness(1.2);
	cursor: default;
}

.pic-coll:not(:first-of-type) {
	display: none;
}

.pic-coll div img {
	filter: brightness(1.2);
	border: 1px dotted var(--main-color);
}

#pictures-list nav ul li a {
	padding: 0.2em 0.3em;
	-webkit-user-select: none; /* Safari */
	user-select: none;
}

#pictures-list nav {
	margin-top: -0.5em;
}

/* BLOG TAB */
#blog.post-open {
	display: block;
}

#blog-window {
	display: flex;
	flex-direction: column;
	gap: 1em;
	margin: 0.5em 0;
}

.post {
	border: 2px solid var(--main-color);
	position: relative;

	transition: all 0.5s;
	background: linear-gradient(45deg, rgba(var(--bg-color), 0.13) 70%, rgba(var(--bg-color), 0.2) 110%);
	background-size: 200% 200%;
	background-position: 50% 50%;
	filter: brightness(1);

	padding: 0.5em;
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

/* Tech corners for blog posts */
.post::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	width: 15px;
	height: 15px;
	border-top: 3px solid var(--main-color);
	border-left: 3px solid var(--main-color);
	transition: all 0.3s;
}

.post::after {
	content: '';
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 15px;
	height: 15px;
	border-bottom: 3px solid var(--main-color);
	border-right: 3px solid var(--main-color);
	transition: all 0.3s;
}

.post:hover {
	background: linear-gradient(45deg, rgba(var(--bg-color), 0.13) 70%, rgba(var(--bg-color), 0.95) 110%);
	background-size: 200% 200%;
	background-position: 100% 100%;
	filter: brightness(1.3);
	cursor: pointer;
	box-shadow: 0 0 20px rgba(var(--bg-color), 0.8);
	transform: translateX(5px);
}

.post:hover::before,
.post:hover::after {
	width: 20px;
	height: 20px;
}

.post-header {
	display: flex;
	justify-content: space-between;
	gap: 0.5em;
	position: relative;
	padding-bottom: 0.25em;
	border-bottom: 1px solid var(--main-color);
}

.post-date {
	position: relative;
	padding-left: 1em;
}

.post-date::before {
	content: '>';
	position: absolute;
	left: 0;
	color: var(--main-color);
	font-weight: bold;
}

.post-title {
	font-weight: bold;
	text-align: left;
	flex-grow: 1;
	letter-spacing: 0.5px;
}

.post-time-to-read {
	text-align: right;
	padding: 0 0.75em;
	background: linear-gradient(90deg, transparent -15%, rgba(var(--bg-color), 0.45) 65%);
	border: 1px solid var(--main-color);
	color: white;
}

.post-content {
	border-left: 1px solid var(--main-color);
	padding-left: 0.5em;
}

#post-content-full {
	white-space: pre-line;
	text-align: justify;
	max-width: 1000px;
}

.post-actions {
	display: flex;
	justify-content: space-between;
	gap: 0.5em;
}

.post-action-btn {
	padding: 0.3em;
	background: linear-gradient(90deg, transparent -15%, rgba(var(--bg-color), 0.3) 65%);
	outline: 1px solid var(--main-color);
	width: max-content;

	text-decoration: none;
}

.post-action-btn:hover {
	color: rgba(0, 0, 0, 0.65);
}

/* ABOUT TAB */
.contact-link {
	margin-bottom: 0.25em;
	position: relative;
	padding-left: 0.5em;
	transition: all 0.3s;
}

.contact-link::before {
	content: '>';
	position: absolute;
	left: -0.5em;
	color: var(--main-color);
	opacity: 0;
	transition: all 0.3s;
}

.contact-link:hover {
	padding-left: 1em;
}

.contact-link:hover::before {
	opacity: 1;
	left: 0;
}

/* RESPONSIVENESS */
@media screen and (max-width: 45em) {
	.no-mobile {
		display: none;
	}
	nav ul {
		gap: 0.25em;
		width: 100%;
		padding: 0.25em 0;
		display: flex;
		justify-content: space-between;
	}
	#rain-vid {
		object-fit: fill;
	}
	body {
		padding-bottom: env(safe-area-inset-bottom);
	}

	/* Blog post mobile layout */
	.post-header {
		flex-direction: column;
		gap: 0.3em;
		align-items: flex-start;
	}

	.post-title {
		order: 1;
		font-size: 1.1em;
		line-height: 1.3;
		width: 100%;
	}

	.post-date {
		order: 2;
		font-size: 0.85em;
		opacity: 0.8;
	}

	.post-time-to-read {
		order: 3;
		font-size: 0.75em;
		padding: 0.2em 0.5em;
		align-self: flex-start;
	}

	/* grid system */
	.row {
		display: block;
	}
	.row img {
		width: 100%;
	}
	.grid-row {
		flex-direction: column;
		margin-right: 1em;
	}

	/* pictures tab */
	.img-desc {
		filter: opacity(100%);
		left: 100%;
		padding: 0 0.5em;
		align-items: start;
	}
	.img-desc:hover {
		background: none;
	}
	.row-photography {
		flex-direction: column;
		display: flex;
		gap: 0;
	}
	.img-container {
		width: 50%;
	}

	/* about tab */
	.contact-link {
		margin-top: 0.5em;
	}
	.contact-link {
		margin-bottom: 0.75em;
	}
	.contact-link a {
		padding: 0.25em 0 0.25em 0;
	}
}

@media screen and (max-width: 1050px) {
	#title {
		font-size: 2.3vw;
		margin-bottom: 2em;
	}
	#canvas {
		padding: 0.5em;
	}
	.tabs {
		padding: 0.75em;
	}
}

@media screen and (min-width: 1600px) {
	/* Prevent the images from getting too big on wide screens */
	.row img {
		max-width: 800px;
	}
	.row {
		justify-content: left;
	}
}

@media (hover: none) {
	summary:hover {
		background-color: transparent;
		color: var(--main-color);
	}
}

/* To comply with outlinenone.com */
:focus {
	outline: 2px solid var(--main-color);
	color: var(--main-color);
	background: rgba(var(--bg-color), 0.3);

	text-decoration: none;
}
