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




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

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

/* Loader */
.js2 .loading::before {
	content: '';
	position: fixed;
	color: #fff;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(253,237,98,0.9);
	z-index: 100;
	text-align: center;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
}

.js2 .loading::after {
	content: '';
	position: fixed;
	top: 50%;
	left: 50%;
	width: 70px;
	height: 70px;
	margin: -35px 0 0 -35px;
	pointer-events: none;
	z-index: 101;
	border: 7px solid #4133b4;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
	-webkit-animation: loaderAnim 0.8s ease-out infinite alternate forwards;
	animation: loaderAnim 0.8s ease-out infinite alternate forwards;
}

@-webkit-keyframes loaderAnim {
	to {
		-webkit-transform: translate3d(0,-100px,0);
		transform: translate3d(0,-100px,0);
	}
}

@keyframes loaderAnim {
	to {
		-webkit-transform: translate3d(0,-100px,0);
		transform: translate3d(0,-100px,0);
	}
}


@keyframes octocat-wave {
	0%, 100% { transform: rotate(0); }
	20%, 60% { transform: rotate(-25deg); }
	40%, 80% { transform: rotate(10deg); }
}

@media (max-width:500px) {
	.github-corner:hover .octo-arm {
		animation: none;
	}
	.github-corner .octo-arm {
		animation: octocat-wave 560ms ease-in-out;
	}
}


/* Content */
.content {
	position: relative;
}

.content--blended p {
	padding: 0 0 2em 0;
	max-width: 65vw;
	margin: 0 0 0 auto;
	text-align: justify;
	font-size: 1.65em;
	line-height: 1.5;
}

.content--blended p:nth-of-type(even) {
	margin: 0 auto 0 0;
}

.sound {
	text-decoration: underline;
}

/* Related demos */
.content--related {
	font-size: 1.35em;
	font-weight: bold;
	padding: 3em 0 6em;
	text-align: right;
}

.media-item {
	width: 250px;
	display: inline-block;
	vertical-align: top;
	-webkit-transition: color 0.3s;
	transition: color 0.3s;
	margin-left: 1em;
	padding: 3em 0 0;
}

.media-item__img {
	max-width: 100%;
	opacity: 0.3;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

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

.media-item__title {
	margin: 0;
	padding: 0.5em;
	font-size: 1em;
}

@media screen and (max-width: 50em) {
	.codrops-header__title {
		font-size: 1.5em;
	}
	.content--blended p,
	.content--blended p:nth-of-type(even),
	.content--related {
		font-size: 1.15em;
		text-align: left;
		margin: 0;
		padding: 1em 0;
		max-width: none;
	}
	.media-item {
		width: calc(50% - 0.5em);
		margin: 0;
		padding: 0;
		font-size: 0.65em;
	}
}
