
body {
	min-height: 100vh;
	color: #57585c;
	background: #000;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Fade effect */
.js body {
	opacity: 0;
	transition: opacity 0.3s;
}

.js body.render {
	opacity: 1;
}

/* Page Loader */
.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	pointer-events: none;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-text);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

button:focus {
	outline: none;
}

.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}

.content {
	flex-direction: column;
	height: auto;
	min-height: 0;
}

.content--fixed {
	position: relative;
	z-index: 1000;
	display: block;
	padding: 0.85em;
}

.codrops-header {
	flex-direction: column;
	align-items: center;
}

.codrops-header__title {
	font-weight: bold;
	padding-bottom: 0.25em;
	text-align: center;
}

.info {
	margin: 0;
}

.codrops-links {
	margin: 0;
}

.message {
	position: relative;
	z-index: 100;
	padding: 1em;
	text-align: center;
	color: var(--color-bg);
	background: var(--color-text);
}

/* Icons */
.icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
}

main {
	position: relative;
	width: 100%;
}

/* Header */
.codrops-header {
	position: relative;
	z-index: 100;
	display: flex;
}

.codrops-header__title {
	font-size: 1em;
	font-weight: bold;
	margin: 0;
	padding: 0.75em 0;
}

.info {
	color: var(--color-info);
	text-align: center;
}

/* Top Navigation Style */
.codrops-links {
	position: relative;
	display: flex;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
}

.codrops-icon {
	display: inline-block;
	margin: 0.15em;
	padding: 0.25em;
}

.demos {
	text-align: center;
	line-height: 2;
	margin: 1rem 0 0 0;
}

.github {
	display: block;
}

.content {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.content--switch {
	padding: 2.5rem 1rem;
}

.demo--current {
	opacity: 0.5;
}

@media screen and (min-width: 55em) {
	.message {
		display: none;
	}
	
	.codrops-header {
		flex-direction: row;
		align-items: flex-start;
		align-items: center;
		align-self: start;
		grid-area: header;
		justify-self: start;
	}

	.codrops-links {
		margin-right: 1rem;
	}

	.info {
		text-align: left;
		margin: 0 0 0 1.25em;
	}

	.content {
		margin: 0 auto;
		min-height: 100vh;
	}

	.js .content--switch {
		display: none;
	}

	.js .content--switch-current {
		display: flex;
	}

	.content--fixed {
		position: fixed;
		z-index: 10;
		top: 0;
		left: 0;
		display: grid;
		align-content: space-between;
		width: 100%;
		max-width: none;
		min-height: 0;
		height: 100vh;
		padding: 1.5em;
		pointer-events: none;
		grid-template-columns: 70% 30%;
		grid-template-rows: auto auto 4em;
		grid-template-areas: 'header ...'
		'... ...'
		'menu demos';
	}

	.content--fixed a {
		pointer-events: auto;
	}

	.demos {
		grid-area: demos;
		align-self: end;
		justify-self: end;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0;
	}

	.demo:nth-child(2) {
		margin: 0 3rem 0 1.5rem;
	}
}


/* @import url('https://fonts.googleapis.com/css?family=Josefin+Sans:400,700|Playfair+Display'); */





	.menu-trigger--close {
		color: #000;
		align-self: center;
		padding-right: 17x !important;
	}

	.grim {
		display: grid;
		position: fixed;
		z-index: 1000;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		grid-template-columns: repeat(32,3.125vw);
		grid-template-rows: repeat(32,3.125vh);
		pointer-events: none;
	}

	.grim--open {
		pointer-events: auto;
	}

	.grim__item {
		position: relative;
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
	}

	.grim__item:first-child {
		grid-area: 1 / 31 / 3 / 12;
	}

	.grim__item:nth-child(2) {
		grid-area: 25 / 1 / 33 / 9;
	}

	.grim__item:nth-child(3) {
		grid-area: 1 / 33 / 3 / 31;
	}

	.grim__item:nth-child(4) {
		grid-area: 20 / 9 / 33 / 17;
	}

	.grim__item:nth-child(5) {
		grid-area: 17 / 9 / 20 / 17;
	}

	.grim__item:nth-child(6) {
		grid-area: 17 / 17 / 33 / 25;
	}

	.grim__item:nth-child(7) {
		grid-area: 17 / 1 / 25 / 9;
	}

	.grim__item:nth-child(8) {
		grid-area: 17 / 25 / 33 / 33;
	}

	.grim__item:nth-child(9) {
		grid-area: 1 / 1 / 17 / 12;
	}

	.grim__item:nth-child(10) {
		grid-area: 3 / 12 / 17 / 23;
	}
	
	.grim__item:nth-child(11) {
		grid-area: 3 / 23 / 17 / 33;
	}

	.grim__item-bg {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		opacity: 0;
		box-shadow: 0 0 0 2px currentColor;
		background: currentColor;
	}

	.grim__item-bg--1 { color: #1D2027; }
	.grim__item-bg--2 { color: #15171B; }
	.grim__item-bg--3 { color: #fcfdff; }
	.grim__item-bg--4 { color: #0F1013; }
	.grim__item-bg--5 { color: #FA950F; }

	.grim__item-bg--6 { color: #7296de; }
	.grim__item-bg--7 { color: #00C4FF; }
	.grim__item-bg--8 { color: #FA950F; }
	.grim__item-bg--9 { color: #1D2027; }
	.grim__item-bg--10 { color: #505CC1; }

	.grim__item-img {
		position: absolute;
		width: 100%;
		height: 100%;
		opacity: 0;
		background-repeat: no-repeat;
		background-size: 100% auto;
		background-position: 50% 100%;
		background-color: currentColor;
		background-size: cover;
	}

	.grim__item-img--1 { color: #fcfdff; }
	.grim__item-img--2 { color: #a9bdd6; }
	.grim__item-img--3 { color: #9ed4d4; }
	.grim__item-img--4 { color: #d0bebe; }
	.grim__item-img--5 { color: #0F1013; }

	.grim__item-content {
		position: relative;
		color: #fff;
		overflow: hidden;
	}
	.grim__item-inner:hover .grim__item-desc::after {
		color: #fff !important;
	}

	.grim__item-content:hover,
	.grim__item-content:focus {
		color: #fff;
	}

	.grim__item-inner {
		padding: 0 1rem;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		text-align: center;
		position: relative;
		opacity: 0;
	}

	.grim__item-title {
		font-weight: normal;
		margin: 0;
		font-size: 3vmax;
		font-family: 'Poppins', sans-serif;
	}

	/* .grim__item:nth-child(-n+6) .grim__item-title {
		font-size: 2vmax;
	} */

	.grim__item:nth-child(5) .grim__item-title {
		color: #fff;
		font-size: 1.5vmax;
	}

	.grim__item-desc {
		font-size: 0.85rem;
		margin: 0.5rem 0 0 0;
	}

	.grim__item-desc::after {
		content: '\2014';
		position: relative;
		display: block;
		font-size: 1.75rem;
	}

	.menu-trigger--close {
		border: 0;
		background-color: #fff;
		padding-right: 17px !important;
	}
	
	.menu-trigger--close:hover {
		background-color: #f14e23;
	}
	
	.menu-trigger--close:hover svg path {
		fill: #fff !important;
	}
	/*  */

	.grim__item:hover .grim__item-desc::after {
		color: #FA950F !important;
	}

	/* .menu-close-button {
		padding-right: 17px !important;
	} */