html {
	font-family: 'Roboto', sans-serif;
	font-size: 20px;
	position: relative;
	padding: 0;
	margin: 0;
}

body {
	font-size: 0.7rem;
	min-height: 100%;
	overflow-y: scroll;
	color: #1B1B1B;
	font-weight: 300;
}

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

a,
a:active,
a:focus,
a:hover {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

.mobilescroll {
	cursor: url('../img/mobile_cursor.png') -9 -9, auto;
}

/* ============================================
 * Menu
 * ============================================ */

.menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 20rem;
	height: 100%;
	background: var(--color);
	color: #FFF;
	padding: 2rem;
	z-index: 1;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	-ms-align-items: flex-start;
	align-items: flex-start;
	justify-content: space-between;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	-ms-flex-direction: column;
	-o-flex-direction: column;
	flex-direction: column;
	overflow: auto;
}

.menu .header {
	width: 100%;
}

.menu .logo {

}

.menu .logo img {
	width: 100%;
	max-width: 7rem;
}

.menu .header h1 {
	font-size: 0.8rem;
	font-weight: 300;
	margin: 0.5rem 0 0;
}

.menu .header h2 {
	font-size: 1rem;
	margin: 1rem 0 0 0;
	border-top: solid 1px;
	border-bottom: solid 1px;
	padding: 0.5rem 0;
}

.menu .header h2 strong {
	font-weight: 500;
}

.menu .header h2 em {
	font-weight: 300;
	font-style: normal;
	font-size: 0.7rem;
	margin-left: 0.3rem;
}

.menu .round {
	width: 100%;
	margin: 2rem 0;
}

.menu .round h3 {
	font-size: 0.8rem;
	font-weight: 500;
	margin: 0 0 0.5rem 0;
}

.menu .round ul {
	list-style-type: none;
	margin: 0 0 1.5rem 0;
	padding: 0 0 0 1rem;
}

.menu .round ul:last-child {
	margin-bottom: 0;
}

.menu .round ul li {
	margin-bottom: 0.25rem;
	font-size: 0;
}

.menu .round ul li strong {
	font-weight: 300;
	display: inline-block;
	vertical-align: middle;
	font-size: 0.7rem;
	margin-right: 1rem;
}

.menu .round ul li a {
	display: inline-block;
	vertical-align: middle;
	width: 1.2rem;
	height: 1.2rem;
	margin-right: 0.2rem;
	background: center center no-repeat rgba(0,0,0,0.1);
	background-size: 0.6rem;
}

.menu .round ul li a.active,
.menu .round ul li a:hover {
	background-color: rgba(0,0,0,0.25);
}

.menu .round ul li a.mobile {
	background-image: url('../img/icons/mobile.svg');
}

.menu .round ul li a.desktop {
	background-image: url('../img/icons/desktop.svg');
}

.menu .round ul li a:last-child {
	margin-right: 0;
}

.menu .footer {
	width: 100%;
}

.menu .history {
	margin-bottom: 2rem;
}

.menu .history h2 {
	margin: 0 0 0.75rem;
	position: relative;
}

.menu .history h2 span {
	display: inline-block;
	padding: 0 0.5rem 0 0;
	background: var(--color);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 500;
	font-size: 0.6rem;
	position: relative;
	z-index: 1;
	line-height: 0.75rem;
}

.menu .history h2:before {
	content: '';
	position: absolute;
	left: 1rem;
	top: 0.3rem;
	right: 0;
	background: #FFFFFF;
	display: block;
	height: 1px;
}

.menu .history ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	font-size: 0;
}

.menu .history ul li {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0.1rem 0.1rem 0;
}

.menu .history ul a {
	display: block;
	font-size: 0.7rem;
	background: rgba(0,0,0,0.1);
	padding: 0.5rem;
	text-align: center;
}

.menu .history ul a strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 0.2rem;
}

.menu .history ul a em {
	display: block;
	font-style: normal;
	font-size: 0.55rem;
}

.menu .history ul a.active,
.menu .history ul a:hover {
	background: rgba(0,0,0,0.25);
}

.menu .copy {
	font-size: 0.6rem;
}

.menu .copy a {
	font-weight: 500;
}

.menu .copy a:hover {
	border-bottom: solid 1px;
}

/* ============================================
 * Content
 * ============================================ */

.template {
	margin-left: 20rem;
	padding: 2rem;
	-ms-align-items: center;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	display: none;
	position: relative;
}

.template.active {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
}

.template-desktop {
	background: url('../img/devices/desktop.png');
	width: 1280px;
	height: 733px;
	position: relative;
	background-size: 100%;
}

.template-desktop .wrapper {
	position: absolute;
	overflow-y: scroll;
	width: 856px;
	height: 484px;
	left: 212px;
	top: 35px;
}

.template-mobile {
	background: url('../img/devices/mobile.png');
	width: 434px;
	height: 868px;
	position: relative;
	background-size: 100%;
}

.template-mobile .wrapper {
	position: absolute;
	overflow: hidden;
	width: 378px;
	height: 786px;
	left: 28px;
	top: 57px;
	border-radius: 3px 3px 40px 40px;
}

.template.full {
	padding-bottom: 4.4rem;
}

.template.full .mobilescroll {
	cursor: default;
}

.template.full .template-desktop,
.template.full .template-mobile {
	background: none;
	width: 100%;
	height: auto;
}

.template.full .template-desktop .wrapper,
.template.full .template-mobile .wrapper {
	width: auto;
	height: auto;
	left: auto;
	top: auto;
	position: relative;
	overflow: visible;
	text-align: center;
}

.device-switcher {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	cursor: pointer;
	width: 2.4rem;
	height: 2.4rem;
	background: center center no-repeat #bbb;
	background-size: 1.2rem;
}

.device-switcher.mobile {
	background-image: url('../img/icons/mobile.svg');
}

.device-switcher.desktop {
	background-image: url('../img/icons/desktop.svg');
}

.device-switcher.active {
	background-color: var(--color);
}


/* ============================================
 * Small desktop
 * ============================================ */
@media screen and (max-width: 1720px) {
	.template-desktop {
		width: 960px;
		height: 550px;
	}

	.template-desktop .wrapper {
		left: 159px;
		top: 26px;
		width: 642px;
		height: 364px;
	}
}

@media screen and (max-width: 1380px) {
	.template-desktop {
		width: 720px;
		height: 413px;
	}

	.template-desktop .wrapper {
		left: 119px;
		top: 19px;
		width: 482px;
		height: 274px;
	}
}

@media screen and (max-height: 920px) {
	.template-mobile {
		width: 320px;
		height: 640px;
	}

	.template-mobile .wrapper {
		left: 20px;
		top: 41px;
		width: 280px;
		height: 581px;
		border-radius: 5px 5px 30px 30px;
	}
}

/* ============================================
 * Mobile
 * ============================================ */
@media screen and (max-width: 1220px) {
	.template-desktop,
	.template-mobile {
		background: none;
		width: 100%;
		height: auto;
	}

	.template-desktop .wrapper,
	.template-mobile .wrapper {
		width: auto;
		height: auto;
		left: auto;
		top: auto;
		position: relative;
		overflow: visible;
		text-align: center;
	}

	.device-switcher {
		display: none;
	}
}

@media screen and (max-width: 972px) {
	body {
		padding-top: 2rem;
	}

	.template {
		margin-left: 0;
		padding: 0;
		-ms-align-items: flex-start;
		align-items: flex-start;
		min-height: 0;
	}

	.menu {
		width: 100%;
		height: auto;
		padding: 3rem 1rem 1rem;
		min-height: 100vh;
		z-index: 5;
		display: none;
	}

	.menu-mobile {
		top: 0;
		left: 0;
		width: 100%;
		position: fixed;
		z-index: 10;
		height: 2rem;
		background: var(--color);
		cursor: pointer;
		padding: 0.6rem 1rem;
	}

	.menu-mobile .button {
		width: 0.8rem;
		height: 0.8rem;
		background: url('../img/icons/menu.svg') center center no-repeat;
		background-size: contain;
	}

	.menu-mobile.active {
		background: rgba(0,0,0,0.25);
	}

	.menu-mobile.active .button {
		background-image: url('../img/icons/close.svg');
	}

	.menu-mobile.active ~ .menu {
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		display: flex;
	}
}