
/*
 * Variables
 */
:root {
	--shadow: #111a;
	--bdfilter: blur(8px) opacity(0.95) brightness(0.9);
	--hue: 280;
}

/* @import "https://www.nerdfonts.com/assets/css/webfont.css"
<i class="nf nf-custom-vim"></i> */
@font-face {
	font-family: "FiraCode Nerd Font";
	src: url("../assets/fonts/FiraCodeNerdFontMono-Regular.ttf") format("truetype");
	font-stretch: normal;
	font-style: normal;
	font-weight: 700;
}

/*
 * Keyframes
 */
@keyframes glitch {
	0% {
		transform: translate(-2px, -2px);
	}

	25% {
		transform: translate(2px, -2px);
	}

	50% {
		transform: translate(2px, 2px);
	}

	75% {
		transform: translate(-2px, 2px);
	}

	100% {
		transform: translate(-2px, -2px);
	}
}

/*
 * Tags
 */
* {
	margin: 0;
	color: white;
	cursor: default;
	transition-duration: 0.2s;
	font-family: "FiraCode Nerd Font";
	scrollbar-color: hsl(var(--hue), 100%, 50%) var(--shadow);
}

html {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	cursor: default;
	transition-duration: 0.2s;
	line-height: 1.6;

	animation-name: bg;
	animation-duration: 8s;
	animation-iteration-count: infinite;

	background-color: hsl(var(--hue), 70%, 40%);
	background-image: linear-gradient(20deg, rgb(0, 0, 0) 0%,
			hsl(var(--hue), 70%, 60%) 10%,
			hsl(var(--hue), 70%, 30%) 30%,
			hsl(var(--hue), 70%, 60%) 55%,
			hsl(var(--hue), 70%, 30%) 75%,
			hsl(var(--hue), 70%, 60%) 90%,
			hsl(var(--hue), 70%, 30%) 100%);
}

html::before {
	content: "";
	z-index: -1;
	width: 500vw;
	aspect-ratio: 1/1;
	background-image: url("../assets/bg.webp");
	transform: rotate(20deg) scale(1.45);
	display: block;
	position: fixed;
	background-size: 128px;
}

body {
	padding: 0 10%;
	padding-top: 10px;
	overflow-x: hidden;
}

a {
	cursor: pointer;
}

button, .btn {
	background-color: var(--shadow);
	border: 1px solid hsl(var(--hue), 100%, 50%);
	padding: 4px 8px;
	border-radius: 5px;
	cursor: pointer;
	max-width: fit-content;
	font-size: medium;
	backdrop-filter: var(--bdfilter);
	background-color: #0003;
	
}

button:hover, .btn:hover {
	background-color: hsl(var(--hue), 100%, 50%);
}

code {
	background-color: var(--shadow);
	border-radius: 5px;
	color: hsl(var(--hue), 100%, 50%);
	padding: 5px 8px;
	cursor: text;
	backdrop-filter: var(--bdfilter);
}

pre {
	border: 1px solid hsl(var(--hue), 100%, 50%);
	backdrop-filter: var(--bdfilter);
	background-color: var(--shadow);
	padding: 8px;
	max-width: fit-content;
	cursor: text;
}

kbd {
	backdrop-filter: var(--bdfilter);
	background-color: var(--shadow);
	border: 1px solid hsl(var(--hue), 100%, 50%);
	border-radius: 5px;
	box-shadow: 1px 1px 0 hsl(var(--hue), 100%, 50%);
	padding: 2px 8px;
}

h1 {
	font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h2 {
	font-family: cursive;
}


/*
 * Glitchy Logo
 */
#logo-container {
	position: sticky;
	text-align: center;
	backdrop-filter: var(--bdfilter);
	padding: 15px 0;
	font-size: xx-large;
	box-shadow: 0 0 10px 5px var(--shadow);
	display: flex;
	justify-content: space-around;
	align-items: center;
	z-index: 2;
	background-color: rgba(33,33,33, .75);
}

.social {
	padding-right: 8px;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
}

.social > * {
	flex-basis: calc(100% / 2);
	height: 40px;
}
.social > *:hover {
	transform: scale(1.1);
}

.social > *:link {
	text-decoration: none;
}

#social-right > * {
	text-shadow: -2px 2px 10px hsl(var(--hue), 100%, 50%);
}
#social-right > *:hover {
	text-shadow: -2px 2px 5px hsl(var(--hue), 100%, 50%);
}
#social-left > * {
	text-shadow: 2px 2px 10px hsl(var(--hue), 100%, 50%);
}
#social-left > *:hover {
	text-shadow: 2px 2px 5px hsl(var(--hue), 100%, 50%);
}

#logo {
	font-size: 2em;
}
#logo > * {
	mix-blend-mode: screen;
}

#logo > :nth-child(1) {
	color: #ff0048;
	position: absolute;
	transform: translate(-1px, -1px);
	animation-name: glitch;
	animation-duration: 4s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

#logo > :nth-child(2) {
	color: #0034ff;
	position: absolute;
	transform: translate(1px, 1px);
	animation-name: glitch;
	animation-duration: 4.03s;
	animation-iteration-count: infinite;
	animation-delay: 1s;
	animation-timing-function: linear;
}

#logo > :nth-child(3) {
	color: #4f4;
	animation-name: drunk-rotate;
	animation-duration: 3s;
	animation-iteration-count: infinite;
	text-shadow: 0 0 10px white;
}


/*
 * Header (Navigaton buttons)
 */
 #header {
	margin: 20px 0;
	display: flex;
	position: sticky;
	top: 10px;
	z-index: 1;
	backdrop-filter: var(--bdfilter);
	padding: 8px 16px;
	/*! border: 1px solid #dab6ff21; */
	box-shadow: 0 0 10px 5px var(--shadow);
	justify-content: center;
	gap: 8px;
	margin-top: 50px;
	background-color: rgba(33,33,33, .75);
}

#header > li {
	list-style-type: none;
	font-size: large;
}

#header > li:hover {
	text-decoration: underline;
}

#header > .btn {
	padding: 3px 12px;
	backdrop-filter: blur(3px);
	border-radius: 5px;
	box-shadow: inset 0 0 5px hsl(var(--hue), 100%, 50%), 0 0 12px hsl(var(--hue), 100%, 50%);
}
#header > .btn:hover {
	width: fit-content;
	background: #111111c2;
	box-shadow: inset 0 0 5px hsl(var(--hue), 100%, 50%), 0 0 18px 2px hsl(var(--hue), 100%, 50%);
}

#header > .btn:hover {
	cursor: pointer;
}


/*
 * Footer (Footnotes & quote)
 */
#footer {
	width: calc(100vw - 50px);
	padding: 20px 25px;
	background: #17171794;
	backdrop-filter: var(--bdfilter);
	display: flex;
	padding-bottom: 50px;
	grid-gap: 8px;
	position: absolute;
	left: 0;
	border-top: 5px solid hsl(var(--hue), 100%, 50%);
	box-shadow: inset 0 16px 16px -16px hsl(var(--hue), 100%, 50%), 0 0 16px hsl(var(--hue), 100%, 50%), 0 0 40px hsla(var(--hue), 100%, 50%, 0.5), inset 0 40px 40px -40px hsla(var(--hue), 100%, 50%, 0.5);
	background-color: rgba(33,33,33, .75);
	font-size: small;
}

#footer > #copyright {
	text-align: center;
	display: block;
	text-shadow: 0 0 8px hsl(var(--hue), 100%, 50%);
	margin-top: 4px;
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translate(-50%);
	width: max-content;
}

.f-left {

	width: calc(50% - 4px);
	padding: 8px;
}

.f-right {
	width: calc(50% - 4px);
	padding: 8px;
}

.f-divider {
	background: hsl(var(--hue), 100%, 50%);
	width: 1.2px;
	box-shadow: 0 0 8px 1px hsl(var(--hue), 100%, 50%)
}


#post-container {
	padding: 2px 5px;
	min-height: 50vh;
	margin-bottom: 20px;
	grid-gap: 32px;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 200px);
}

/*
 * Quote
 */
#footer #quote {
	letter-spacing: 0.9px;
}


/*
 * Work in Progress thingy
 */
.triangle {
	width: 0;
	height: 0;
	border: 50px solid transparent;
	position: fixed;
	top: 100%;
	left: 100%;
	transform: translate(-50%, -50%) rotate(45deg);
	border-left: 50px solid hsl(var(--hue), 100%, 50%);
	animation-name: border;
	animation-duration: 8s;
	animation-iteration-count: infinite;
	box-shadow: -10px 0px 20px var(--shadow);
	z-index: 1;
}

.wip {
	position: fixed;
	right: 0;
	bottom: 0;
	background: hsl(var(--hue), 100%, 50%);
	color: white;
	padding: 8px;
	font-size: large;
	transform: translate(100%, 500%) rotate(45deg);
	transform-origin: 100% 50%;
	animation-name: bg;
	animation-duration: 8s;
	animation-iteration-count: infinite;
	z-index: 1;
	border-radius: 5px;
	transition-timing-function: cubic-bezier(.18, .89, .32, 1.28);
	text-shadow: 1px 0 0 black, 0 1px 0 black, -1px 0 0 black, 0 -1px 0 black;
}

.wip:hover, .triangle:hover ~ .wip {
	transform: translate(0%, 50%) rotate(45deg);
	transform-origin: 100% 50%;
	right: 15px;
	bottom: 15px;
	font-size: x-large;
}


/* portable smol tv (phones) */
@media screen and (max-width: 650px) {
	#social {
		position: relative;
	}
	#header {
		margin-top: 120px;
		flex-wrap: unset;
		align-items: center;
		gap: 8px;
	}
	.spacer {
		flex-grow: unset !important;
		width: 30%;
	}
	.button {
		width: calc(50% - 32px) !important;
	}
	#logo {
		font-size: 1.5em;
	}
}

/* portable tv (phones) */
@media screen and (max-width: 800px) {
	#header {
		position: relative;
		flex-wrap: wrap;
		margin-top: 20px;
		gap: 5px;
	}
	#header>* {
		width: 40%;
		padding: 12px 16px;
	}
	body {
		padding: 0;
		padding-top: 10px;
	}
	#logo-container {
		width: 100vw;
		left: 0;
		top: 0;
	}
	#post-container {
		padding: 0;
	}
	#header > .btn {
		border-radius: 0;
	}
}

/* big screens */
@media screen and (min-width: 1280px) {
	body {
		padding: 0 calc(25% / 2);
	}
}

/* big fucking screens */
@media screen and (min-width: 1900px) {
	body {
		padding: 0 15%;
	}
	#post-container {
		flex-direction: column;
		flex-wrap: wrap;
		flex-direction: row;
		justify-content: space-around;
	}
}
