:root {
	--text-color: #333;
	--background-color: #fafafa;
	--header-background-color: #eee;
	--alternate-background-color: #ddd;

	--login-button-text-color: var(--background-color);
	--login-button-background-color: #787d9b;
}

@font-face {
	font-family: 'Open Sans';
	font-weight: 400;
	font-style: normal;
	src: url('/fonts/OpenSans-regular.woff2') format('woff2'), url('/fonts/OpenSans-regular.woff') format('woff');
}

@font-face {
	font-family: 'Play';
	font-weight: 400;
	font-style: normal;
	src: url('/fonts/Play-regular.woff2') format('woff2'), url('/fonts/Play-regular.woff') format('woff');
}


*, *:before, *:after {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	font-family: "Open Sans", sans-serif;
	font-style: normal;
	line-height: 1em;
}

html, body {
	font-size: 100%;
}

body {
	position: relative;
	background-color: var(--background-color);
	color: var(--text-color);
	padding: 0;
	margin: 0;
}

.overlay {
	position: fixed;
	visibility: hidden;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 100;
	background-color: var(--background-color);
	opacity: 0;
	transition: opacity .3s;
	cursor: pointer;
}
.overlay.show {
	opacity: .9;
	visibility: visible;
}


img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

div,ul,li,h1,p {
	margin: 0;
	padding: 0;
}
a {
	text-decoration: none;
}


p {
	line-height: 1.3em;
	margin-bottom: 0.75em;
	font-size: 3vw;
}
p:last-child {
	margin-bottom: 0;
}
h1 {
	font-style: normal;
	margin-bottom: 1.5em;
	line-height: 1.4em;
	font-size: 3.6vw;
	letter-spacing: 1px;
}
/* stop growing things */
@media (min-width: 600px) {
	p {
		font-size: 16px;
	}
	h1 {
		line-height: 1.2em;
		font-size: 1.2em;
	}
}



em {
	font-weight: bold;
	line-height: inherit;
}

li {
	line-height: 1.7em;
	list-style-type: "";
}


.row {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
	max-width: 75em;
	*zoom: 1;
}
.row:before, .row:after {
	content: " ";
	display: table;
}
.row:after {
	clear: both;
}


#browser-warning {
	padding: 20px 50px;
	text-align: center;
	background-color: #ce0404;
}
#browser-warning * {
	color: white;
}

.header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
	background-color: var(--header-background-color);
}
.logo {
	margin: 3vw;
	display: inline-block;
	text-align: center;
}
.logo div {
	font-family: 'Play', Arial, sans-serif;
}
.logo div:first-child {
	transform: rotateY(180deg);
	font-size: 10vw;
	line-height: 8vw;
}
.logo div:last-child {
	font-size: 2vw;
}
.button {
	width: 25vw;
	height: 10vw;
	font-size: 4vw;
	border: solid 0 transparent;
	border-radius: 5px;
	color: var(--login-button-text-color);
	background-color: var(--login-button-background-color);
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	cursor: pointer;
}
.bumpDown {
	margin-top: 20vw;
	margin-bottom: 6vw;
}
/* stop growing things */
@media (min-width: 400px) {
	.logo {
		margin: 12px;
	}
	.logo div:first-child {
		font-size: 40px;
		line-height: 32px;
	}
	.logo div:last-child {
		font-size: 8px;
	}
	.button {
		width: 100px;
		height: 40px;
		font-size: 16px;
	}
	.bumpDown {
		margin-top: 80px;
	}
}

input[type="text"], textarea {
	border: none;
	width: 100%;
	height: 40px;
	padding: 10px;
	margin-bottom: 10px;
	font-size: 120%;
}
textarea {
	height: 80px;
}
input:focus, textarea:focus {
	outline: none;
}

.login, .signUp {
	float: right;
	margin: 10px 0;
}
.signUp {
	margin-right: 10px;
}


#slider {
	position: relative;
	border: solid 0 transparent;
	border-radius: 10px;
	box-shadow: 0 0 10px var(--text-color);
	text-align: center;
	font-size: 2.3vw;
}

#slides {
	height: 20em;
	padding: 0px;
	margin: 0px;
	list-style-type: none;
}

#slides li {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	opacity: 0;

	text-align: center;

	transition: opacity 0.5s;

	font-size: 1.5em;
	padding: 1.5em 2.2em;
	box-sizing: border-box;
	background-size: cover;
	background-position: center;

	display: flex;
	flex-direction: column;
	justify-content: center;
}

#slides li.showing{
	opacity: 1;
}


#previous, #next {
	position: absolute;
	top: 50%;
	display: inline-block;
	width: 2em;
	height: 2em;
	margin-top: -1em;
	cursor: pointer;
}
#previous {
	left: 0em;
}
#next {
	right: 1em;
}
#previous:after, #next:after {
	position: absolute;
	content: " ";
	height: 0;
	width: 0;
	border: solid 0 transparent;
	border-top-width: 1em;
	border-bottom-width: 1em;
}
#next:after {
	border-left-width: 1em;
	border-left-color: #111;
}
#previous:after {
	border-right-width: 1em;
	border-right-color: #111;
}


#dots {
	position: relative;
	bottom: 0.5em;
	display: inline-block;
	margin: 0 0.5em;
}
#dots div {
	display: inline-block;
	width: 0;
	height: 0;
	border-radius: 50%;
	background-color: #ddd;
	margin: 0 0.5em;
	cursor: pointer;
	border: 0.5em solid transparent;
}
#dots div.active {
	background-color: #111;
}
#dots.counter div.active {
	background: conic-gradient(
			#111 0,
			#111 var(--countdown),
			#777 var(--countdown)
		)
		border-box;
	mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	animation: deplete 10s linear forwards infinite;
}

@keyframes deplete {
	100% {--countdown: 0%;}
}

@property --countdown {
	syntax: "<percentage>";
	initial-value: 100%;
	inherits: false;
}

#seeMore {
	position: absolute;
	bottom: 0.6em;
	right: 1.5em;
	cursor: pointer;
}
span.down {
	display: inline-block;
	width: 1em;
	height: 0.55em;
	margin-left: -0.5em;
}
span.down:after {
	position: absolute;
	content: " ";
	border: solid 0 transparent;
	border-width: 0.5em 0.5em 0;
	border-top-color: #111;
}

.row.video {
	margin-top: 6vw;
	margin-bottom: 6vw;
}
.video1Wrapper {
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	margin-bottom: 0;
	max-width: 40em;
}
#video1 .poster {
	border: solid 0 transparent;
	border-radius: 10px;
	box-shadow: 0 0 10px var(--text-color);
}
#video1.videoOverlay {
}
.videoOverlay {
	position: relative;
	cursor: pointer;
}
.videoPlayer {
	width: 100%;
	display: none;
	border: solid 0 transparent;
	border-radius: 10px;
	box-shadow: 0 0 10px var(--text-color);
}
#video2Player {
	margin-top: 3vw;
}
.poster {width: 100%;}
.playButton {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20%;
	transform: translate(-50%, -50%);
}
#video2 .playButton {
	margin-left: 1.5vw;
}


.bgimg {
	position: relative;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	font-size: 2.9vw;
}

.img-1 {
	background-image: url(/img/bg1Mock.jpg);
}
.img-1 .spacer {
	height: calc(200px + 40vw);
	max-height: 500px;
}

.img-2 {
	background-image: url(/img/bg2Mock.jpg);
	background-position: center 100%;
	background-size: 300%;
}
.img-2 .spacer {
	min-height: 300px;
}

.caption {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 80%;
	max-width: 73em;
	border: solid 0 transparent;
	border-radius: 10px;

	transform: translate(-50%, -50%);
	background-color: var(--alternate-background-color);
	text-align: center;
	padding: 1.5em;
}

.caption p {
	margin-top: .8em;
}
.link {
	color: var(--text-color);
	text-decoration: underline;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}

#slides h1, .bgimg h1 {
	margin: 0.3em;
	font-size: 1.5em;
	font-weight: normal;
	line-height: 1em;
	text-transform: uppercase;
}

/* stop growing things */
@media (min-width: 800px) {
	#slider, .bgimg {
		font-size: 18px;
	}
}

.alternate-row-wrapper {
	scroll-margin-top: 65px;
}

.alternate-row-wrapper:nth-child(even) {
	background-color: var(--alternate-background-color);
}

.case-img {
	padding: 3vw 3vw 3vw 0;
	float: left;
	/*cursor: pointer;*/
}
.alternate-row-wrapper:nth-child(odd) .case-img {
	padding: 3vw 0 3vw 3vw;
	float: right;
}
.case-text {
	padding: 3vw;
}

img.small {
	width: 400px;
	height: calc(400px/3*2);
	border: solid 0 transparent;
	border-radius: 10px;
	box-shadow: 0 0 10px var(--text-color);
	background-color: #787d9b;
}


@media (max-width: 50em) {
	.alternate-row-wrapper .row {
		padding: 4vw;
	}
	.case-img, .alternate-row-wrapper:nth-child(odd) .case-img, .case-text {
		padding: 6vw;
	}
	#video2 .playButton {
		margin: 0;
	}
	.case-img img.small {
		width: 100px;
		height: calc(100px/3*2);
	}
	.case-text p {
		clear: both;
	}
}

.case-img img.large {
	visibility: hidden;
	z-index: 999;
	position: fixed;
}
.case-img img.large.show {
	visibility: visible;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%);
	width: auto;
	max-width: 98%;
	height: auto;
	max-height: 95%;
}



#signUp {
	position: fixed;
	display: none;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%);
	z-index: 200;
	width: 600px;
	border: solid 0 transparent;
	border-radius: 10px;
	background-color: var(--alternate-background-color);
	padding: 30px;
}
@media (max-width: 52em) {
	#signUp {
		width: 90%;
	}
}

#signUpSending, #signUpOK, #signUpNotOK {
	display: none;
	height: 40px;
}


#footer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 70px;
	text-align: center;
}

.case-text a {
	color: var(--text-color);
	text-decoration: underline;
}

.disclaimer {
	color: var(--text-color);
	font-size: 80%;
	padding-top: 5%;
}
.disclaimer a {
	text-decoration: underline;
	color: var(--text-color);
}
