*,
*::after,
*::before {
	box-sizing: border-box;
}

body {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-optical-sizing: auto;
  font-style: normal;  
  line-height: 1.2;  
  background:#f0f0f0;  
	color: #131314;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
  overflow: hidden;
  right: 10%;
  position: absolute;
  width: 86vw;
  left: 10%;
}

h2, h3 {
  text-transform: lowercase;
}

a {
	text-decoration: none;
	color: #a6a9ac;
	outline: none;
}

a:hover,
a:focus {
	color: #131314;
}

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

.js .loading::before {
	content: '';
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #efeff2;
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1001;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	margin: -25px 0 0 -25px;
	pointer-events: none;
	border-radius: 50%;
	background: #dcdcde;
	animation: loaderAnim 0.8s ease-out infinite alternate forwards;
}

#logo-wrapper {
	text-align:center;
	margin-top:1rem;
}

/* topnav */
.mobile-container {
  max-width: 100vw;
  margin: auto;
  background-color: none;
  border-radius: 10px;
  height: 500px;
}


.mobile {
	visibility:hidden;
}

.topnav {
  overflow: hidden;
}

.topnav #myLinks {
  display: none;
}

#desktopnav {
  float: right;
  width: 80%;
  text-align: right;
  margin-top: -2rem;
}

#desktopnav a {
  color: #999 !important;
  text-decoration: none;
  text-transform: lowercase;
}
#desktopnav span {
  color: #000 !important;
  text-decoration: none;
  text-transform: lowercase;
}

#myLinks {
	float: left;
	position:absolute;
	right:3rem;
	z-index:1000;
}
.topnav a, .topnav span {
  float: left;
  color: #888;
  padding: 4px 10px;
  text-decoration: none;
  font-size: 17px;
}

.topnav span {
  color: #000;
}


.topnav a.icon {
  float: right;
}

.topnav a:hover {
  color: black;
}

.active {
  background-color: #04AA6D;
  color: white;
}

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

/* Icons */


.github {
	position: absolute;
	top: 0;
	right: 0;
	width: 6em;
	height: 6em;
}

.github__deco {
	position: absolute;
	z-index: -1;
	fill: #e6e6e6;
}

.icon--github {
	font-size: 1.15em;
	margin: 1em 0 0 2.5em;
}

/* Content */
.content {
	padding: 3em 0;
}

.content--grid {
	display: grid;
	padding: 10vh 2vw;

	grid-template-columns: 50% 50%;
}

.content--related {
	font-size: 0.85em;
	display: grid;
	justify-content: center;
	align-content: center;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 2em;
	padding: 10em 0;
	text-align: center;
	letter-spacing: 0.05em;

	grid-template-columns: repeat(auto-fill, 260px);
	grid-gap: 4em;
}

.content--related > p {
	grid-column: 1 / -1;
}

/* Header */
.codrops-header {
	position: relative;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	width: 100%;
	padding: 5vw;
}

.codrops-header__title {
	font-size: 1.625em;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
	padding: 0.5em 0;
	letter-spacing: 0.5em;
	text-transform: uppercase;
}

/* Top Navigation Style */
.codrops-links {
	position: relative;
	display: flex;
	margin: 0 1em 0 0;
	text-align: center;
	white-space: nowrap;
}

.codrops-icon {
	display: inline-block;
	margin: 0.5em;
}

.codrops-icon:first-child {
	margin-left: 0;
}
/* Related post item */
.media-item {
	display: block;
	transition: color 0.3s;
}

.media-item__img {
	max-width: 100%;
	opacity: 0.8;
	border-radius: 60px/100px;
	transition: opacity 0.3s;
}

.media-item:hover .media-item__img,
.media-item:focus .media-item__img {
	opacity: 1;
}

.media-item__title {
	font-weight: normal;
	margin: 0;
	padding: 0.5em;
}


/* items */

.item {
	position: relative;
	width: 700px;
	max-width: 100%;
	margin: 0 0 0vh auto;
	cursor: crosshair;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	grid-column: span 2;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

.item:nth-of-type(even) {
	margin: 0 auto 0 0;
}

.item:first-of-type {
	grid-column: span 2;
}

.item__svg {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	min-height: 500px;
	margin: 0 auto;
}

.item__clippath,
.item__deco,
.item__img {
	transform-origin: 50% 50%;
}

.item__meta {
	position: absolute;
	top: 0;
	display: contents;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}

.item__number {
	position: absolute;
	top: 0;
	width: 100%;
	padding: 12.5% 0 0 3em;
	letter-spacing: 0.5em;
	text-transform: uppercase;
}

.item__specimen {
	font-size: 5em;
	line-height: 0.9;
	vertical-align: text-bottom;
	letter-spacing: -0.025em;
	display:block;
  font-weight: 1;
}

.item__reference {
	font-size: 1.8em;
	-webkit-writing-mode: vertical-rl;
	writing-mode: vertical-rl;
	display:none;
}

.item__title {
	font-size: 1.4em;
	font-weight: 400;
	width: 100%;
	margin: 1em 0 0 0;
	text-align: center;
	letter-spacing: 0.125em;
	color: #999;
}

.item__subtitle {
	font-size: 1.2em;
	font-weight: 400;
	margin: 1em 0 0;
	text-align: center;
	letter-spacing: 0.15em;
	opacity: 0;
}

/* Individual styles */
.item--style-1 .item__deco {
	fill: #fff;
}

.item--style-2 .item__deco {
	fill: #fff;
}

.item--style-3 .item__deco {
	fill: #fff;
}

.item--style-3 .item__deco {
	color: #fff;
}

.item--style-4 .item__deco {
	fill: #fff;
}

.item--style-5 .item__deco {
	fill: #fff;
}

.item--style-6 .item__deco {
	fill: #fff;
}

.item--style-7 .item__deco {
	fill: #fff;
}

.item--style-7 .item__deco {
	color: #fff;
}

.item--style-8 .item__deco {
	fill: #fff;
}

.item--style-9 .item__deco {
	fill: #fff;
}

.hint {
	display:none;		
	}

@media screen and (max-width: 60em) {
	.item:first-of-type {
		grid-column: span 2;
	}
	.content--grid {
		grid-row-gap: 1vh;
	}
.hint {
	display:block;
	width: 100vw;
	margin-left:-2vw;		
	}
	
}

@media screen and (max-width: 40em) {
.codrops-header__title {
		font-size: 1em;
	}
	.content--grid {
		padding: 2vh 4vw;
	}
	.item__number {
		font-size: 0.75em;
	}
	.item__svg {
		min-height: 360px;
	}
.mobile {
	visibility:visible;
}
#desktopnav  {
	visibility:hidden;
}
}