/* === Global & Element settings ===*/
html {
	--light: #ccc;
	--dark: #111;
	--midtones: #999;
	--green: #396;
	--transpgreen: #396;
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	position: relative;
	text-align: center;
	color: var(--light);
	background-color: var(--dark);
	
	font-family: system-ui, sans-serif;
}
h1, h2, h3, h4 {
	font-family: "Quicksand", Roboto, system-ui, sans-serif;
}
h1 {
	font-size: clamp(4rem, 7vw, 12rem);
	font-weight: 200;
	letter-spacing: 0.5rem;
}
h2 {
	font-size: clamp(2rem, 3vw, 6rem);
	font-weight: 400;
	letter-spacing: 0.5rem;
}
h3 {
	margin: 0 0.2rem;
	
	font-size: clamp(1.5rem, 2vw, 4rem);
	font-weight: 600;
}
h4 {
	margin: 1rem 0.2rem;
	
	font-size: clamp(1rem, 1vw, 2rem);
	font-weight: 400;
}
p {
	padding: 0.5rem 0 1.5rem;
	
	font-size: 1rem;
}
section {
	padding: 3rem;
	
	/*border-bottom: solid var(--light) 1px; */
}


/* === Links css reset ===*/
a:hover {
	text-shadow: 0px 0px 10px var(--primarytext);
}
a {
	outline-color: transparent;
	text-decoration: underline var(--green);
	color: var(--primarytext);
}


/* === Reusable classes ===*/
.centeritems {
	display: flex;
	align-items: center;
	justify-content: center;
}
.gridsymmetric {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
}
.wrapper {
	display: flex;
}
.svgfilter {
	display: none;
}



/* === Div that appears on page load ===*/
#preloader {
	height: 100vh;
	width: 100vw;
	position: fixed;
	z-index: 11;
	font-style: italic;
	
	animation: load 2s linear both;
	text-shadow: 0px 0px 5px var(--light);
}

main {
	min-height: 100vh;
}


/* === Nav section ===*/
#nav {
	display: flex;
	justify-content: space-between;
	
	color: var(--green);
}


/* === Blog section ===*/
#blog {
	text-align: left;
}
.slab {
	min-height: 30vh;
	width: 50vw;
	padding: 2rem 4rem;
	
	border: solid var(--light) 1px;
	border-radius: 2rem;
	
	box-shadow: 0 0 30px 0 var(--midtones);
}
#blogtitle {
	margin-bottom: 2rem;
	
	text-align: right;
}


/* === Buttons section ===*/
#buttons .wrapper {
	flex-direction: row;
	justify-content: space-between;
	
	width: 40vw;
}
.adjacentbutton > div {
	background-color: var(--green);
	
	transition: all 0.3s ease;
}
.adjacentbutton > div:nth-of-type(1) {
	width: 10vh;
	height: 2px;
}
.adjacentbutton > div:nth-of-type(2) {
	width: 2px;
	height: 10vh;
}
.adjacentbutton:hover > div {
	box-shadow: 0 0 30px 5px var(--green);
}
.adjacentbutton:nth-of-type(1) {
	rotate: -45deg;
}
.adjacentbutton:nth-of-type(2) {
	rotate: 135deg;
}



/* === At-rules ===*/
@keyframes load {
	0% {
		opacity: 100%;
		background-color: var(--dark);
	}
	50% {
		opacity: 100%;
		background-color: var(--dark);
		color: var(--midtones);
	}
	99% {
		z-index: 11;
	}
	100% {
		z-index: -1;
		opacity: 0%;
		color: var(--dark);
	}
}

@keyframes zindex {
	0% {
		z-index: 0;
	}
	30% {
		z-index: calc(6 - var(--sectionnumber));
	}
	70% {
		z-index: calc(6 - var(--sectionnumber));
	}
	100% {
		z-index: 0;
	}
}
@keyframes bluraway {
	0% {
		transform: translateZ(-10vh);
		filter: blur(6rem);
		opacity: 0%;
	}
	30% {
		filter: blur(0);
		opacity: 100%;
	}
	70% {
		filter: blur(0);
		opacity: 100%;
	}
	100% {
		transform: translateZ(10vh);
		filter: blur(6rem);
		opacity: 0%;
	}
}
@keyframes widefade {
	10% {
		opacity: 0%;
	}
	20% {
		opacity: 100%;
	}
	80% {
		opacity: 100%;
	}
	90% {
		opacity: 0%;
	}
}


@media (max-width: 130vh) {
	.gridsymmetric {
		grid-template-columns: 1fr 1fr;
	}
	
	#hero {
		flex-direction: column;
		justify-content: space-between;
	}
	#hero div {
		margin: 6rem 4rem;
	}
	#hero div:nth-of-type(1) {
		align-self: end;
	}
	#hero div:nth-of-type(2) {
		align-self: start;
	}
}
@media (max-width: 950px) {
	.gridsymmetric {
		grid-template-columns: 1fr;
	}
	#about {
		--degrees: 80deg;
	}
	.bubble div {
		rotate: -80deg;
		background-color: #f005
	}
	.slab {
		width: 95vw;
		padding: 2rem 2rem;
	}
}
