/*
variables
(so we don't have to keep typing the same hex codes
and sizes over and over!)
--------------------------------------------------------
*/
:root {
	/* colors */
	--main_text_color: #2C2C2C;
	--light_accent_text_color: #818ceb;
	--med_accent_text_color: #606ee6;
	--dark_accent_text_color: #646AD8;
	--soft_text_color: #8C8C8C;
	--soft_border_color: #CCC;

	--bg_color_1: #FFF;
	--bg_color_2: #848EE6;
	--bg_color_3: #EBCCF0;
	--bg_color_4: #BFCDF3;
	--pink_color: #C11ADD;

	--button_color: #FFFF80;
	--button_shadow: #F2F240;
	--chill_button: #3646D9;
	--button_soft_shadow: #F4F4F4;
	--button_softest_shadow: #DDDDDD;
	--button_border_color: #666;
	--button_dark_color: #565bba;

	/* type */
  --comfy_font_size: 26px;
  --font_serif: "Avenir Next", "nunito-sans", sans-serif;
  --font_mono: "monaco", "source-code-pro", monospace;
  --lead: 1.35;

  /* dimensions */
  --space: calc(var(--lead) * 1em);
}

/*
webfonts
--------------------------------------------------------
*/
@font-face {
	font-family: "nunito-sans";
	font-weight: 400;
	font-style: normal;
	src: local('Nunito Sans'),
			 url('fonts/nunitosans-regular.woff2') format('woff2'),
			 url('fonts/nunitosans-regular.woff') format('woff');
}

@font-face {
	font-family: "nunito-sans";
	font-weight: 400;
	font-style: italic;
	src: local('Nunito Sans'),
			 url('fonts/nunitosans-italic.woff2') format('woff2'),
			 url('fonts/nunitosans-italic.woff') format('woff');
}

@font-face {
	font-family: "nunito-sans";
	font-weight: 800;
	font-style: normal;
	src: local('Nunito Sans Extrabold'),
			 url('fonts/nunitosans-extrabold.woff2') format('woff2'),
			 url('fonts/nunitosans-extrabold.woff') format('woff');
}

@font-face {
	font-family: "nunito-sans";
	font-weight: 900;
	font-style: normal;
	src: local('Nunito Sans Black'),
			 url('fonts/nunitosans-black.woff2') format('woff2'),
			 url('fonts/nunitosans-black.woff') format('woff');
}

@font-face {
	font-family: "source-code-pro";
	font-weight: 400;
	font-style: normal;
	src: local('Source Code Pro'),
			 url('fonts/sourcecodepro-regular.woff2') format('woff2'),
			 url('fonts/sourcecodepro-regular.woff') format('woff');
}

/*
base styles
--------------------------------------------------------
*/
/*
global
----------------------------
*/
/* apply a natural box model to everything */
*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body,
button,
textarea,
input {
	/* force grayscale antialiasing globally */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
	/* enable kerning and ligatures globally */
  text-rendering: optimizeLegibility;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font_serif);
	font-size: 1em;
	letter-spacing: 0.015em;
	line-height: var(--lead);
	color: var(--main_text_color);
	height: 100%;
	position:relative;

	margin: 0;
}

main {
	position: relative;
	min-height:100%;
}

article {
	position: relative;
	min-height:100%;
	padding-bottom:155px;
}

/*
typography
----------------------------
*/
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

h1 {
	font-weight: 900;
	letter-spacing: 0.53px;
	line-height: 2em;
}

h2 {
	color: var(--med_accent_text_color);
	letter-spacing: 0.68px;
}


h3 {
	color: var(--med_accent_text_color);
	font-size: 25px;
}

p,
ul,
ol {
	font-size: 20px;
}

p {
  margin: 0 0 var(--space * .5);
}

ul,
ol {
  margin: 0 0 var(--space);
}

/*v*/
a {
	color: var(--dark_accent_text_color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

label {
	display: block;
}

mark {
	background-color: white;
	padding: 0.08em;
}

input, button, select, textarea {
	font-family: inherit;
	font-size: inherit;
	padding: 0.4em;
	margin: 0 0 0.5em 0;
	box-sizing: border-box;
	border: 1px solid var(--soft_border_color);
	border-radius: 2px;
}

input:disabled {
	color: var(--soft_border_color);
}

input[type="range"] {
	height: 0;
}

.button {
	background-color: var(--button_soft_shadow);
	outline: none;
}

.button:active {
	background-color: var(--button_softest_shadow);
}

.button:focus {
	border-color: var(--button_border_color);
}

/** main button styles **/
a.button {
	/** positioning **/
	position: relative;
	top: 0;
	margin-top: 0;
	margin-bottom: 10px;

	/** make a.button look pretty **/
	display: inline-block;
	text-align: center;
	padding: 10px 24px;
	min-width: 4em;
	background-color:	var(--button_color); /* Yellow */
	border: none;
	border-radius: 12px;
	cursor: pointer;
	opacity: 0.83;


	/** 3D Block Effect **/
	box-shadow: 0 10px 0 0 #F2F240;

	/* a.button text */
	font-size: 18px;
	font-weight: 900;
	color: #3646D9;
}

a.button:hover {
	opacity: 1;
	text-decoration: none;
}

a.button:active {
	/** Remove 3D Block Effect on Click **/
	box-shadow: none;
	top: 10px;
	margin-bottom: 0;

	background-color:	var(--button_color);
}

a.button:active,
a.button:focus {
	/** Remove Chrome's Ugly Yellow Outline **/
	outline: 0;
}

/* dotted button */

a.dotted {
	padding: 13px 25px;
	background-color: transparent;
	border-radius: 30px;
	border: 2px dashed rgba(255, 255, 255, 0.44);
	margin: 1em 0 0;
	text-align: center;
	font-weight: bold;
	font-size: 15px;
	color: #FFF;
}
a.dotted:hover {
	background-color: rgba(111, 123, 230, 0.28);
	text-decoration: none;
}

a.dark {
	color: var(--dark_accent_text_color);
	border-color: var(--dark_accent_text_color);
}

img {
	display: block;
	max-width: 100%;
}

article {
	padding: 1em 2em;
	margin: auto;
  max-width: 960px;
  font-size: var(--comfy_font_size);
}

nav {
	/* positioning nav */
	width: 100%;
	left: 0;

	display: flex;
	justify-content: flex-end;
	margin-right: 3rem;
	margin: 0 -1em;

	background: white;
	padding: 1.5em 0 0;

	--navPadding: 1em 2em;
}

nav a {
	color: #8c8c8c;
	font-size: 20px;
	font-weight: bold;
	padding: var(--navPadding);
}
nav a:hover {
	color: #666;
	text-decoration: none;
}

nav ul {
	list-style: none;
}

nav li{
  display: inline;
}

@media all and (max-width: 554px) {
	article {
		padding: 1em;
	}
	nav {
		justify-content: center;
	}
	nav a {
		/* type */
		--navPadding: .4em;
	}
}

hr {
	height: .25em;
	padding: 0;
	margin: 24px 0;
	background-color:
	#e1e4e8;
	border: 0;
}

footer {
	text-align: center;
	bottom: 0;
	width: 100%;
	background: var(--bg_color_1);
  padding-top: 50px;
  padding-bottom: 30px;
}

footer .directory {
	margin:auto;
	width: 80%;
	justify-content: space-around;
}

footer .flex-row h2 {
	text-align: center;
}



/*
columns
--------------------------------------------------------
*/
/* For mobile phones: */
[class*="col-"] {
  width: 100%;
}


@media only screen and (min-width: 600px) {
  /* For tablets: */
  .col-s-1 {width: 8.33%;}
  .col-s-2 {width: 16.66%;}
  .col-s-3 {width: 25%;}
  .col-s-4 {width: 33.33%;}
  .col-s-5 {width: 41.66%;}
  .col-s-6 {width: 50%;}
  .col-s-7 {width: 58.33%;}
  .col-s-8 {width: 66.66%;}
  .col-s-9 {width: 75%;}
  .col-s-10 {width: 83.33%;}
  .col-s-11 {width: 91.66%;}
  .col-s-12 {width: 100%;}
}

@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
}

/*
components
--------------------------------------------------------
*/
.pageNotFound {
	text-align: center;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	align-items: center;
	justify-content: center;
	height: 70vh;
}

.pageNotFound h1 {
	color: var(--med_accent_text_color);
	margin-bottom: 20px;
}


/*
bulletin
----------------------------
*/
.bulletin {
	/* dimensions */
	--width: 66.55em;
	--gutter: 5em;

	/* type */
	/* we'll set font-size in px so that computing em values is straightforward */
	--alpha: 49px;
	--beta: 45px;
	--gamma: 35px;
	--delta: 20px;

	/*--lead: 1.178;*/
}

/* reduce font-size as viewport narrows */
@media all and (max-width: 980px) {
	.bulletin {
		/* type */
		--alpha: 40px;
		--beta: 36px;
		--gamma: 28px;

		--gutter: 1em;
	}
}

@media all and (max-width: 660px) {
	.bulletin {
		/* type */
		--alpha: 32px;
		--beta: 29px;
		--gamma: 22px;
		--delta: 16px;
	}
}

.bulletin {
	/* include horizontal padding in overall width */
	max-width: calc(var(--width) + (var(--gutter) * 2));

	/* we establish the base font-size for the component here, which will be equal to 1em from here on */
	font-size: var(--delta);
	line-height: 1.35;
	color: var(--dark_accent_text_color);

	padding: 0 var(--gutter) 2em;
	margin: 0 auto;
}

.bulletin h2,
.bulletin h3,
.bulletin h4 {
	line-height: 1.163;
	margin: 0;
}

.bulletin h2 {
	font-size: var(--alpha);
	font-weight: 900;
	color: var(--main_text_color);
	margin-bottom: 0.857em;
}

.bulletin h3 {
	font-family: var(--font_serif);
	font-weight: 900;
	font-size: var(--beta);
	color: var(--med_accent_text_color);
	margin-bottom: 0.933em;
}

.bulletin p {
	margin: 0;
}

.bulletin img, iframe {
	display: block;
	width: 100%;
}

.bulletin a {
	transition: opacity 0.2s ease;
}

.bulletin a:hover {
	opacity: 0.86;
}

/* header */
.bulletin--header {
	text-align: center;
	padding-top: 3.5em;
	margin-bottom: 3.5em;
}

.bulletin--header p {
	font-family: var(--font_serif);
	font-size: var(--gamma);
	color: var(--dark_accent_text_color);
	text-align: center;
}

@media all and (max-width: 980px) {
	.bulletin--header {
		margin-bottom: 5em;
	}
}

/* grid */
.bulletin--grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

@supports (display: grid) {
	.bulletin--grid {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		grid-column-gap: 2.65em;
		grid-row-gap: 1.5em;
	}
}

.bulletin--item {
	width: calc((100% / 3) - (2.65em / 2));
	margin: 0;
}

	@supports (display: grid) {
		.bulletin--item {
			width: auto;
		}
	}

.bulletin--item a {
	display: block;
}

.bulletin--caption {
	padding-top: 1.1em;
}

.bulletin--caption p {
	font-family: var(--font_mono);
	font-size: var(--delta);
	color: var(--dark_accent_text_color);
	margin-bottom: var(--space);
}

@media all and (max-width: 980px) {
	.bulletin--item {
		width: calc((100% / 2) - (2.65em / 2));
	}

	@supports (display: grid) {
		.bulletin--grid {
			grid-template-columns: 1fr 1fr;
		}

		.bulletin--item {
			width: auto;
		}
	}
}

@media all and (max-width: 720px) {
	@supports (display: grid) {
		.bulletin--grid {
			display: block;
		}
	}

	.bulletin--item {
		width: auto;
	}

	.bulletin--item + .bulletin--item {
		padding-top: 1.5em;
	}
}

/* Main splash home page */

/* splash section */
.splash, .splash-video {
  /* colors */
  --textDark: #2c2c2c;
  --compliment: #606ee6;
  --complimentDark: #646AD8;

  /* dimensions */
  --width: 66.55em;
  --space: 5em;


  /* type */
  /* we'll set font-size in px so that computing em values is straightforward */
  --alpha: 89px;
  --beta: 68px;
  --gamma: 36px;

	display: flex;
  flex-direction: column;
  flex-grow: 1;
	align-items: center;
	justify-content: space-between;
	height: 85vh;
	/* padding: 4em 0; */
	width: 100%;
	margin: 0 auto;
}

.splash-video {
	padding: 0;
	display: flex;
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 1100px;
	padding: 1em 2em;
}


.video-background {
	background-color: var(--bg_color_4);
	padding: 2em;
}

.video-background h2 {
	font-size: 48px;
}

@media all and (max-width: 414px) {
	.video-background h2 {
		font-size: 28px;
	}
}


/* reduce font-size as viewport narrows */
@media all and (max-width: 980px) {
  .splash, .splash-video {
    /* type */
    --alpha: 80px;
    --beta: 66px;
    --gamma: 28px;
  }
}

@media all and (max-width: 660px) {
.splash, .splash-video {
    /* type */
    --alpha: 62px;
    --beta: 39px;
    --gamma: 22px;
    --delta: 16px;
  }
}

@media all and (max-width: 414px) {
.splash {
    /* type */
    --alpha: 52px;
    --beta: 39px;
    --gamma: 22px;
    --delta: 16px;

		height: 65vh;
		width: 95%;
  }
	.video-background {
		padding: 1em;
	}
}

@media all and (max-width: 375px) {
	.splash {
		/* type */
		--alpha: 40px;
		--beta: 29px;
		--gamma: 22px;
		--delta: 10px;

		height: 65vh;
		width: 95%;
	}
}

@media all and (max-width: 375px) {
	.splash-video {
		/* type */
		--alpha: 20px;
		--beta: 15px;
		--gamma: 12px;
		--delta: 10px;
	}
}

/* .splash-video h1 {
	font-size: var(--alpha);
	color: white;
	text-align: center;
} */

@media all and (max-width: 375px) {
  .video-background {
    padding: .6em;
  }
	.splash-video {
    width: 100%;
	}
}

.splash h1,
.splash h2,
.splash h3 {
  text-align: center;
}

.splash h1 {
  font-size: var(--alpha);
	line-height: normal;
}
.splash h2 {
  font-size: var(--beta);
  color: var(--complimentDark);
  margin: 0.2em;
	line-height: normal;
}
.splash h3 {
  font-size: var(--gamma);
  color: var(--compliment);
	font-weight: initial;
	font-family: var(--font_mono);
}
.splash p {
  font-family: "source-code-pro", monospace;
  font-size: 19px;
  text-align: center;
  color: var(--complimentDark);
}
.splash div :global(a):hover {
 text-decoration: none;
 }
 .splash-aligner {
   display: flex;
   align-items: center;
   justify-content: space-between;
	 margin: 0 auto;
 	 max-width: 950px;
	 padding: 2em 0 3em;
	 width: 100%;
 }

.get-started-apps {
  display: flex;
	padding: 2em 0;
}

.get-started-apps img {
	display: block;
	height: auto;
	max-width: 130px;
}


.get-started-apps .icon {
	max-width: 100px;
	height: auto;
	border-radius: 14px;
}


@media (max-width: 375px) { /*breakpoint*/
  .get-started-apps {
    flex-direction: column;
  }
}

/*
youtube lazy load styling
*/

.youtube {
		width: 100%;
    margin-bottom: 30px;
    position: relative;
    padding-top: 56.24%;
		background-color: var(--bg_color_1);
    overflow: hidden;
    cursor: pointer;
		-moz-user-select:none;
		-ms-user-select:none;
		user-select:none;
}

.youtube img {
    width: 100%;
    top: -16.84%;
    left: 0;
    display:block;
}

.youtube .overlay {
	position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

.youtube:hover > .overlay {
	opacity: 0.99;
	background-color: #fff;
	-moz-transition: opacity .25s cubic-bezier(0.25,0.0,0.2,1);
	-webkit-transition: opacity .25s cubic-bezier(0.25,0.0,0.2,1);
	transition: opacity .25s cubic-bezier(0.25,0.0,0.2,1);
}

.youtube:hover > img {
    opacity: 0.96;
}

.play-button {
    width: 80px;
    height: 50px;
		opacity: 0.7;
		background-color: var(--main_text_color);
    z-index: 1;
    border-radius: 7px;
}

.youtube:hover > .play-button {
		opacity: 0.99;
		background-color: var(--bg_color_2);
		-moz-transition: opacity .2s cubic-bezier(0.0,0.0,0.2,1);
		-webkit-transition: opacity .2s cubic-bezier(0.0,0.0,0.2,1);
		transition: opacity .2s cubic-bezier(0.0,0.0,0.2,1);
}

.youtube .play-button:before {
    content: "";
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent #fff;
}

.youtube img,
.youtube .play-button {
    cursor: pointer;
}
.youtube img,
.youtube iframe,
.youtube .overlay,
.youtube .play-button,
.youtube .play-button:before {
    position: absolute;
}
.youtube .play-button,
.youtube .play-button:before {
    top: 50%;
    left: 50%;
    transform: translate3d( -50%, -50%, 0 );
}
.youtube iframe {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border:0;
}


/*
Vimeo
Styling
*/
.vimeo {
		width:100%;
    position: relative;
		padding-top: 56.24%;
		overflow:hidden;
		cursor:pointer;
		-moz-user-select:none;
		-ms-user-select:none;
		user-select:none;
		margin: .5em 0 0;
}

.vimeo img {
    width: 100%;
    display:block;
		top: 0%;
		position: absolute;
    left: 0;
}

.vimeo .overlay {
	position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

.vimeo-play-button {
	width: 80px;
	height: 50px;
	opacity: 1;
	background-color: var(--med_accent_text_color);
	border-radius: 7px;
	position: absolute;
	bottom: 1em;
	left: 1em;
	right: 1em;
}

.vimeo .vimeo-play-button:before {
	content: "";
	border-style: solid;
	border-width: 12px 0 12px 22px;
	border-color: transparent transparent transparent #fff;
  z-index:1;
}

.vimeo img,
.vimeo-play-button {
    cursor: pointer;
}
.vimeo img,
.vimeo iframe,
.vimeo .overlay,
.vimeo .vimeo-play-button,
.vimeo .vimeo-play-button:before {
    position: absolute;
}
.vimeo-play-button,
.vimeo-play-button:before {
    top: 50%;
    left: 50%;
    transform: translate3d( -50%, -50%, 0 );
	  z-index:1;
}

.vimeo iframe {
	width:100%!important;
  height:100%!important;
  position:absolute;
  top:0;
  left:0;
  z-index:3;
  border:0;
}

/* quotes */

#quote {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: row;
		background: var(--bg_color_4);
		padding: 3em 8em;
		font-family: "nunito-sans", sans-serif;
}

#quote .quotes {
	color: white;
	font-family: 'Times New Roman', sans serif;
	font-size: 9em;
	line-height: 86px;
	align-self: flex-start;
}

@media all and (max-width: 600px) {
	#quote {
		padding: 2em;
	}
	#quote span {
		display: none;
	}
}

.flex-end {
	align-self: flex-end;
}
