*,
*::after,
*::before {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	font-family: 'Avenir Next', Avenir, Helvetica, Arial, sans-serif;
	color: #393a3e;
	background: lavender;
}

a {
	text-decoration: none;
	color: #000;
	outline: none;
}

a:hover,
a:focus {
	color: #1d48f3;
}

.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;
}

.view {
	position: relative;
	display: flex;
	justify-content: flex-end;
	overflow: hidden;
	height: 100vh;
	margin: 0 0 0 215px;
}

.content {
	z-index: 1;
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: 25px 50px;
	background-size: auto 100%;
}

.deco__text {
	font-size: 0.8em;
	line-height: 1;
	margin: 0;
	color: #bcb8e8;
}

/* Header */
.codrops-header {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	height: 100%;
	text-align: right;
}
.codrops-header__deco {
	font-size: 2em;
	line-height: 1;
	//padding: 1em 0;
	color: #1d48f3;
	writing-mode: vertical-rl;
}

.codrops-header__title {
	font-size: 8.5em;
	line-height: 0.8;
	margin: 0 -7px 0;
	padding: 0;
}

.codrops-header__tagline {
	width: 50%;
	margin: 0 0 0 auto;
	padding: 0;
}

/* Top Navigation Style */
.btn {
	border: none;
	background: none;
}

.btn:focus {
	outline: none;
}

.btn--back {
	font-size: 1.5em;
	position: absolute;
	z-index: 1002;
	top: 1em;
	right: 1em;
	opacity: 0;
	color: #1d48f3;
}

.btn--menu {
	font-size: 0.85em;
	position: absolute;
	z-index: 1000;
	top: 0;
	left: 0;
	display: none;
	margin: 10px 0 0 6px;
}

.btn--menu-active .icon--menu, .icon--cross {
	display: none;
}

.btn--menu-active .icon--cross {
	display: block;
}

/* Demo links */
.demos {
	display: flex;
	align-items: center;
	margin: 2em 0 0 auto;
}
.demo {
	position: relative;
	display: block;
	margin: 0 0 0 1.5em;
}

.demo:hover, .demo:focus {
	outline: none;
}

.demo--current {
	pointer-events: none;
	color: #fff;
}

.demo--current::before {
	content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    width: 100%;
    height: 32px;
    margin: -17px 0px 0px -5px;
    padding: 0 10px;
    border-radius: 10%;
    background: #1d48f3;
}
/* Content */
.tabscontent {
	pointer-events: none;
}
.tabscontent__item {
	position: fixed;
	z-index: 1001;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	width: 100%;
	height: 100vh;
	opacity: 0;
}

.tabscontent__item--current, .tabscontent__item--current ~ .btn--back {
	pointer-events: auto;
}
.column {
	width: 30vw;
}
.demo-3 {
	/*color: #fc0;*/
	background: #2a3137;
}
.demo-3 a {
	color: #fff;
}
.demo-3 a:hover,
.demo-3 a:focus,
.demo-3 .btn--menu:hover {
	color: #fc0;
}
.demo-3 .view {
	margin: 0;
	padding: 5vw 5vw calc(10vw + 1em);
}
.demo-3 .content {
	padding: 0;
}
.demo-3 .codrops-header {
	justify-content: flex-end;
	align-items: flex-start;
	width: 100%;
	height: calc(100% + 3.25em);
	text-align: left;
}
.demo-3 .codrops-header__title {
	color: #999;
	font-family: 'Poppins', sans-serif;
	font-size: 7em;
	line-height: 0.6;
	margin: auto 0 0 -40px;
	padding: 0.2em 0 0 0;
}
.demo-3 .codrops-header__tagline {
	color: #999;
	font-size: 1.5em;
	margin: 0.25em 0 0 -2em;
}
.demo-3 .btn--menu {
	font-size: 1em;
	top: auto;
	bottom: 0;
	left: 50%;
	display: block;
	margin: 0 -0.75em 1em;
	color: #fbf9fa;
}
.demo-3 .demos {
	margin: 1em 0 0;
}
.demo-3 .demo:first-child {
	margin: 0;
}
.demo-3 .demo.demo--current {
	padding: 0px 5px;
	color: #2a3137;
}
.demo-3 .demo--current::before {
	background: #fc0;
}
.demo-3 .btn--back {
	color: #6c7d8c;
	top: 0.5em;
	right: 0.5em;
}
.demo-3 .btn--back .icon {
	transform: rotate(-90deg);
}
.demo-3 .codrops-header__deco {
	font-size: 2.25em;
	position: absolute;
	right: -0.575em;
	//bottom: 2em;
	color: #fc0;
}
.demo-3 .codrops-header::after {
	font-size: 5em;
	font-weight: bold;
	position: absolute;
	top: 0;
	left: -40px;
	color: #fff;
}
.box {
	height: calc(100vh - 55px);
    position: relative;
    width: 100vw;
    min-width: 300px;
    /* height: 100%; */
    margin-top: 55px;
    background-size: cover;
    background-position: 50% 0;
    overflow-y: auto;
}

@media screen and (max-width: 40em) {
	.view {
		overflow: auto;
		height: auto;
		min-height: calc(100vh - 69px);
		margin: 0;
	}
	.demo-3 .view {
		height: calc(100vh - 69px);
	}
	.content {
		flex-direction: column;
		padding: 10px;
	}
	.codrops-header__info {
		font-size: 1.15em;
	}
	.deco__text, .demos__text {
		display: none;
	}
	.codrops-header__deco {
		font-size: 1.25em;
	}
	.codrops-header__title {
		font-size: 5.5em;
		margin: 0 -4px;
	}
	.codrops-header__tagline {
		width: auto;
	}
	.demos {
		align-items: flex-start;
		margin-top: 1em;
	}
	.codrops-header__info::after {
		font-size: 7em;
	}
	.btn--back {
		top: 0;
		right: 0;
	}
	.btn--menu {
		display: block;
	}
	.column__title {
		margin: 1em 0 0;
	}
	.demo-3 .codrops-header__title {
		font-size: 2em;
		margin: 0;
	}
	.demo-3 .codrops-header__tagline {
		font-size: 1em;
		margin-left: 0;
	}
	.demo-3 .codrops-header::after {
		font-size: 3em;
		left: 10px;
	}
	.demo-3 .codrops-header__deco {
		font-size: 0.85em;
	}
}
