
.demo-2 {
	--color-text: #fff;
	--color-bg: #000;
	--color-link: #ddd;
	--color-link-hover: #fff;
	--color-menu: #fff;
	--font-menu: hothouse, sans-serif;
	--fontsize-menu: 10px;
}

.demo-3 {
	--color-text: #fff;
	--color-bg: #e2c6cc;
	--color-link: #000;
	--color-link-hover: #fff;
	--color-menu: #000;
	--font-menu: laca-text, sans-serif;
	--fontsize-menu: 18px;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
    content: '';
    position: fixed;
    z-index: 1000;
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.js .loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.4;
    background: var(--color-link);
    animation: loaderAnim 0.7s linear infinite alternate forwards;

}

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

.hidden {
	opacity: 0;
	position: absolute;
	pointer-events: none;
	z-index: -1;
}


.title {
	font-size: 1rem;
	margin: 0 0 1rem;
	font-weight: normal;
}

.links {
	display: inline;
}

.demos {
	margin: 1rem 0;
}

.demo--current,
.demo--current:hover {
	border-color: transparent;
}

.text--menu {
	border: none;
	color: var(--color-link);
	margin: 1rem 0;
}

.credits a {
	color: currentColor;
}

.menu {
    height: 55px;
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.menu__item {
    border: none;
    transition: none;
    cursor: pointer;
    position: relative;
}

.menu__text {
	fill: var(--color-menu);
    display: block;
    font-family: var(--font-menu);
    font-weight: 700;
    position: relative;
    height: 66px;
    font-size: 15px;
    width: 565px;
    pointer-events: none;
}
.white .menu {
    margin-left: 0;
}
.white .menu__text {
    font-size: 18px;
    fill: #fff;
    height: 85px;
}
@media screen and (max-width: 900px){

	.menu__text {
	    font-size: 11px;
	    width: 300px;
	}
}
@media screen and (max-width: 600px){
	.menu {
	    height: 49px;
	}
	.menu__text {
	    height: 52px;
	    font-size: 10px;
	    width: 215px;
	}
}

.menu__text text {
	transform-origin: 50% 50%;
	transform-box: view-box;
}

.menu__text text:nth-child(2) { 
	opacity: 0;
}

@media screen and (min-width: 53em) {

	.title {
		grid-area: title;
		margin: 0;
	}
	.demos {
		margin: 0;
		grid-area: demos;
		display: flex;
		flex-direction: column;
	}
	.demo, .links a {
		margin-bottom: 0.5rem;
	}
	.links {
		grid-area: links;
		display: flex;
		flex-direction: column;
		margin-bottom: 3rem;
		padding-top: 0.5rem;
	}
	.credits {
		margin: 0;
		grid-area: credits;
		align-self: end;
	}
	.text--menu {
		grid-area: text-menu;
		margin: 0;
	}
	.text--subscribe {
		grid-area: text-subscribe;
		justify-self: end;
	}
	.menu {
		grid-area: menu;
	}
}
