html, body, 
.container {
	position: relative;
	width: 100%;
	height: 100%;
}

body {
	overflow-y: scroll;
	background: #444;
}

.splitlayout {
	position: relative;
	overflow-x: hidden;
	min-height: 100%;
    height: 100%;
	width: 100%;
    background: #444;
}

.splitlayout.open-left{
    background: #facd00 !important;
}

.splitlayout.open-right{
    background: #00429c !important;
}

/* Loading */
.loading{
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(40,40,40,1);
    z-index: 1000;
    transform: translateY(0%);
    transition: transform .6s;
    text-align: center;
}

.loading.away{
    transform: translateY(-100%);
}

.loading img{
    top: 50%;
    position: relative;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.6s;
}

.loading.fadein img{
    opacity: 1;
}

/* Hover */
@media screen and (min-width: 49.4375em) {
    .reset-layout .side-left:hover{width:55%;}
    .reset-layout .side-right:hover{width:55%;}

    .hover-left .reset-layout .side-right{width: 45%; filter: blur(3px) grayscale(70%)}
    .hover-right .reset-layout .side-left{width: 45%; filter: blur(3px) grayscale(70%)}

    .reset-layout .side-left:hover .intro-content{
        border-left-width: 30px;
        background: rgba(250,205,0,0.4);
    }

    .reset-layout .side-right:hover .intro-content{
        border-right-width: 30px;
        background: rgba(0, 66, 156, 0.6);
    }
}


.side-left .intro-content{
    border-left: 0px solid #facd00;
    box-sizing: border-box;
}

.reset-layout .side-left .intro-content{
    background: rgba(250,205,0,0);
}

.reset-layout .side-right .intro-content{
    background: rgba(0, 66, 156, 0);
}

.side-right .intro-content{
    border-right: 0px solid #00429c;
    box-sizing: border-box;
}

.open-left .side-left .intro-content{
    background: rgba(250,205,0,0);
}

.open-right .side-right .intro-content{
    background: rgba(0, 66, 156, 0);
}



/* Intro sides */
.side {
	position: fixed;
	top: 0;
	z-index: 100;
	height: 100%;
    width: 50%;
	text-align: center;
	-webkit-backface-visibility: hidden;
}

.open-left .side,
.open-right .side {
	cursor: default;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 499;
	visibility: hidden;
	width: 100%;
	height: 100%;
	opacity: 0;
}

.side-left .overlay {
	background: rgba(0,0,0,0.7);
}

.side-right .overlay {
	background: rgba(0,0,0,0.3);
}

.side-left {
	left: 0;
    background: url('../imgs/split_mech.jpg') center/cover;
	background: url('../imgs/split_dark.png') center/cover, url('../imgs/split_mech.jpg') center/cover;
	color: #fff;
    -webkit-box-shadow: inset -1px 0px 0px 0px rgba(255,255,255,1);
-moz-box-shadow: inset -1px 0px 0px 0px rgba(255,255,255,1);
box-shadow: inset -1px 0px 0px 0px rgba(255,255,255,1);
}

.side-right {
	right: 0;
    background: url('../imgs/split_dental.jpg') center/cover;
	background: url('../imgs/split_dark.png') center/cover, url('../imgs/split_dental.jpg') center/cover;
	color: #fff;
    -webkit-box-shadow: inset 1px 0px 0px 0px rgba(255,255,255,1);
-moz-box-shadow: inset 1px 0px 0px 0px rgba(255,255,255,1);
box-shadow: inset 1px 0px 0px 0px rgba(255,255,255,1);
}

/* Intro content, profile image and name, back button */
.intro-content {
	position: absolute;
	bottom: 0;
	left: 50%;
	padding: 0;
	width: 100%;
    height: 100%;
	cursor: pointer;
	-webkit-transform: translateY(0%) translateX(-50%);
	transform: translateY(0%) translateX(-50%);
}

.open-right .intro-content, .open-left .intro-content{
    width: 50%;
}

.profile {
	margin: 0 auto;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: #47a3da;
}

.profile img {
	max-width: 100%;
	border-radius: 50%;
	opacity: 0.6;
}

.intro-content h1{
    width: 100%;
    bottom: 0;
    position: absolute;
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.intro-content h1 span{
    padding-top: 10px;
    border-top: 1px white solid;
    display: block;
    width: 50%;
    margin: 0 auto;
    transition: width .6s;
}

.open-left .intro-content h1 span, .open-right .intro-content h1 span{
    width: 80%;
}

.back {
	position: fixed;
	top: 2.6em;
	z-index: 500;
	display: block;
	visibility: hidden;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: #fff;
	text-align: center;
	font-size: 22px;
	line-height: 44px;
	opacity: 0;
	pointer-events: none;
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.5);
}

.mobile-layout .back { /* fixed positioning will make this not clickable after scrolling on some mobile devices */
	position: absolute;
}

.back-left {
	left: 12.5%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	
        background: rgba(255,255,255,1);
        color: black !important;
}

.back-right {
	right: 12.5%;
	-webkit-transform: translateX(50%);
	transform: translateX(50%);
	
        background: rgba(255,255,255,1);
        color: black !important;
}

.open-right .back-left,
.open-left .back-right {
	visibility: visible;
	opacity: 1;
	-webkit-transition-delay: 0.3s;
	transition-delay: 0.3s;
	pointer-events: auto;
}

.back:hover {
	color: #ddd;
}

/* Pages */
.page {
	position: relative;
	top: 0;
	overflow: auto;
	min-height: 100%;
	width: 75%;
	height: auto;
	font-size: 1.4em;
	-webkit-backface-visibility: hidden;
}

.page-right {
	left: 25%;
	outline: 5px solid #00429c; /* avoid rounding gaps */
	background: #00429c;
	color: #fff;
	-webkit-transform: translateX(100%);
	transform: translateX(100%);
}

.splitlayout.open-right {
	background: #ecf0f1;
}

.page-left {
	left: 0;
	outline: 5px solid #facd00; /* avoid rounding gaps */
	background: #facd00;
	color: #fff;
	text-align: right;
	-webkit-transform: translateX(-100%);
	transform: translateX(-101%);
}

.splitlayout.open-left {
	background: #34495e;
}

/* Inner page content */
.page-inner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

.page-inner section{
    padding: 3rem;
}

.page-inner section {
	padding-bottom: 1em;
}

.page-inner h2 {
	margin: 0 0 0 0;
	font-weight: 300;
	font-size: 5em;
    font-weight: 700;
}

.page-inner p {
	font-weight: 300;
	font-size: 1.2em;
}

.page-inner a{
    margin-top: 25px;
    padding: 7px 15px 9px 15px;
    border: 3px solid white;
    display: inline-block;
    font-size: 2.5rem;
}

/* All transitions */
.page {
	-webkit-transition: transform 0.6s;
	transition: transform 0.6s;
}

.side {
	-webkit-transition: transform 0.6s, width 0.6s;
	transition: transform 0.6s, width 0.6s, border 0.6s;
}

.overlay {
	-webkit-transition: opacity 0.6s, visibility 0.1s 0.6s;
	transition: opacity 0.6s, visibility 0.1s 0.6s;
}

.intro-content {
	-webkit-transition: -webkit-transform 0.6s, top 0.6s, background 0.6s, width 0.6s;
	transition: transform 0.6s, top 0.6s, background 0.6s, width 0.6s;
}

.reset-layout .intro-content{
    -webkit-transition: -webkit-transform 0.6s, top 0.6s, border 0.3s linear, background 0.6s, width 0.6s;
	transition: transform 0.6s, top 0.6s, border 0.3s linear, background 0.6s, width 0.6s;
}

.intro-content h1,
.back {
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

/* Open and close */

/* We need to set the position and overflow for the respective page scroll */
.reset-layout .page,
.splitlayout.open-right .page-left,
.splitlayout.open-left .page-right,
.splitlayout.close-right .page-left,
.splitlayout.close-left .page-right {
	position: absolute;
	overflow: hidden;
	height: 100%;
}

.splitlayout.open-right .page-right,
.splitlayout.open-left .page-left {
	position: relative;
	overflow: auto;
	height: auto;
}

.open-right .side-left .overlay,
.open-left .side-right .overlay {
	visibility: visible;
	opacity: 1;
	-webkit-transition: opacity 0.6s;
	transition: opacity 0.6s;
}

/* Right side open */
.open-right .side-left {
	-webkit-transform: translateX(-60%);
	transform: translateX(-60%);
}

.open-right .side-right {
	z-index: 200;
	-webkit-transform: translateX(-150%);
	transform: translateX(-150%);
}

.close-right .side-right {
	z-index: 200;
}

.open-right .side-right .intro-content {
	-webkit-transform: translateY(0%) translateX(0%) scale(1);
	transform: translateY(0%) translateX(0%) scale(1);
}

.open-right .page-right {
	-webkit-transform: translateX(0%);
	transform: translateX(0%);
}

/* Left side open */
.open-left .side-right {
	-webkit-transform: translateX(60%);
	transform: translateX(60%);
}

.open-left .side-left {
	z-index: 200;
	-webkit-transform: translateX(150%);
	transform: translateX(150%);
}

.close-left .side-left {
	z-index: 200;
}

.open-left .side-left .intro-content {
	-webkit-transform: translateY(0%) translateX(-100%) scale(1);
	transform: translateY(0%) translateX(-100%) scale(1);
}

.open-left .codropsheader {
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.3s, visibility 0.1s 0.3s;
	transition: opacity 0.3s, visibility 0.1s 0.3s;
}

.open-left .page-left {
	-webkit-transform: translateX(0%);
	transform: translateX(0%);
}

/* Media Queries */
@media screen and (max-width: 83em) {
	.intro-content { font-size: 60%; }
}

@media screen and (max-width: 58em) {
	body { font-size: 90%; }
}

@media screen and (max-width: 49.4375em) {
	.open-right .side-right {
		-webkit-transform: translateX(-175%);
		transform: translateX(-175%);
	}

	.open-right .side-left {
		-webkit-transform: translateX(-100%);
		transform: translateX(-100%);
	}

	.open-left .side-right {
		-webkit-transform: translateX(100%);
		transform: translateX(100%);
	}

	.open-left .side-left {
		-webkit-transform: translateX(175%);
		transform: translateX(175%);
	}

	.page {
		width: 100%;
	}

	.page-right {
		left: 0;
		padding-left: 15%;
	}

	.page-left {
		padding-right: 15%;
	}

	.intro-content {
		width: 100%;
	}

	.open-right .side-right .intro-content {
		top: 100%;
		-webkit-transform: translateY(-150px) translateX(-12.5%) scale(0.5);
		transform: translateY(-150px) translateX(-12.5%) scale(0.5);
	}

	.open-left .side-left .intro-content {
		top: 100%;
		-webkit-transform: translateY(-150px) translateX(-87.5%) scale(0.5);
		transform: translateY(-150px) translateX(-87.5%) scale(0.5);
	}

	.open-right .intro-content h1,
	.open-left .intro-content h1 {
		opacity: 0;
	}

	.back-left {
		left: 50%;
        top: 0.6em;
	}

	.back-right {
		right: 50%;
        top: 0.6em;
	}
}

@media screen and (max-width: 42.5em) {
	body { font-size: 80%; }
	.intro-content { font-size: 50%; }
}

@media screen and (max-height: 41.125em) {
	/*.intro-content {
		-webkit-transform: translateY(-25%) translateX(-50%);
		transform: translateY(-25%) translateX(-50%);
	}*/
}

@media screen and (max-width: 39.375em) {
	.intro-content .profile { -webkit-transform: scale(0.5); transform: scale(0.5); }
}

@media screen and (max-width: 320px) {
	body { font-size: 70%; }
}

@media screen and (max-width: 1000px) {
    .intro-content h1{
        font-size: 3.5em;
    }
    
    .intro-content h1 img{
        height: 100px;
    }
}

@media screen and (max-width: 791px) {
    .open-left .side-left{
        transform: translateX(202%)
    }
    .open-right .side-right{
        transform: translateX(-202%)
    }
    .open-right .page-left{
        transform: translateX(-102%);
    }
    .open-left .page-right{
        transform: translateX(102%);
    }
    .page-right{
        padding-left: 0;
        text-align: center;
    }
    .page-left{
        padding-right: 0;
        text-align: center;
    }
}

@media screen and (max-width: 645px) {
    .page-inner h2{
        font-size: 2.5em;
    }
}