
/*====================================
  +++ GLOBAL +++
  ====================================*/

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

html {
	font-size: 100%;
}

html, body, main {
	height: 100%;
}

body {
	display: -webkit-flex;
	display: flex;
	font-family: 'primerprint_bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 1rem;
	font-weight: normal;
	font-style: normal;
	line-height: 1.5;
	text-align: center;
	-webkit-font-smoothing: antialiased;
  	-moz-osx-font-smoothing: grayscale;
	-moz-font-feature-settings: "kern";
	-moz-font-feature-settings: "kern=1";
	-ms-font-feature-settings: "kern";
	-o-font-feature-settings: "kern";
	-webkit-font-feature-settings: "kern";
	font-feature-settings: "kern";
	text-rendering:optimizeLegibility;
	color: #111;
}

@media screen and (orientation: portrait) {

	body {
		padding-bottom: 0;
	}

}

* {
	margin: 0;
	font-family: inherit;
	line-height: inherit;
	color: inherit;
}

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

::selection {
	background-color: transparent;
}

.lazyload,
.lazyloading {
    opacity: 0;
}

.lazyloaded {
    opacity: 1;
	-webkit-transition: opacity 1.5s;
	-moz-transition: opacity 1.5s;
	transition: opacity 1.5s;
}

/*====================================
  +++ UTILITY CLASSES +++
  ====================================*/

/* VISIBILITY */

[hidden] {
	display: none !important;
}

.hidden {
	z-index: -1;
	opacity: 0;
}

.transition-delay-short {
	-webkit-transition-delay: .75s;
	-moz-transition-delay: .75s;
	transition-delay: .75s;
}

.transition-delay {
	-webkit-transition-delay: 1.5s;
	-moz-transition-delay: 1.5s;
	transition-delay: 1.5s;
}

.transition-delay-long {
	-webkit-transition-delay: 3s;
	-moz-transition-delay: 3s;
	transition-delay: 3s;
}

.transition-delay-x-long {
	-webkit-transition-delay: 6s;
	-moz-transition-delay: 6s;
	transition-delay: 6s;
}

.hide-contents * {
	display: none;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
	width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
}

.fade {
	-webkit-transition-property: opacity;
	-moz-transition-property: opacity;
	transition-property: opacity;
	-webkit-transition-duration: 3s;
	-moz-transition-duration: 3s;
	transition-duration: 3s;
}

/* LAYOUT */

.block {
	display: block;
}

.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

.fixed {
	position: fixed;
}

.centered {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.top {
	top: .75rem;
	left: .75rem;
	right: .75rem;
}

.top-left {
	top: .75rem;
	left: .75rem;
}

.top-right {
	top: .75rem;
	right: .75rem;
}

.bottom-right {
	bottom: .75rem;
	right: .75rem;
}

.bottom-left {
	bottom: .75rem;
	left: .75rem;
}

.auto-width {
	width: auto;
}

.full-width {
	width: 100%;
}

.full-height {
	height: 100%;
}

.flex {
	display: -webkit-flex;
	display: flex;
}

.space-between {
	-webkit-justify-content: space-between;
	justify-content: space-between;
}

.align-items-center {
	-webkit-align-items: center;
	align-items: center;
}

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

.align-self-start {
	-webkit-align-self: flex-start;
	align-self: flex-start;
}

.align-dead-center {
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
}

.space-children > * + * {
	margin-left: .75rem;
}

.grid {
	display: grid;
	grid-gap: 10px;
	border: 10px solid;
}

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

	.columns {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
	}

	.columns > * {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.column-66 {
		width: 66.6666%;
	}

	.column-75 {
		width: 75%;
	}

}

@media screen and (orientation: landscape) {

	.page-title {
		width: 25%;
	}

}

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

	/* .columns {
		margin-left: -3rem;
		margin-right: -3rem;
	} */

	.page-title {
		transform: translateX(-1.5rem);
	}

	.columns > * {
		padding-left: 3rem;
		padding-right: 3rem;
	}

}

/* SPACING */

.stack-small > * + * {
	margin-top:.75rem;
}

.stack-medium > * + * {
	margin-top: 1.5rem;
}

/* TYPOGRAPHY */

.left-align {
	text-align: left;
}

.center-align {
	text-align: center;
}

.uppercase {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}


/* COLOURS */

.white {
	color: #fff;
	fill: #fff;
}

.white-background {
	background-color: #fff;
}

.grey {
    color: #bfbfbf;
    fill: #bfbfbf;
}

.red {
	color: #fe0000;
}


/* DECORATIVE */

.rounded-corners {
	border-radius: 5px;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.fade-in {
	animation-name: fadeIn;
	animation-duration: 1.5s;
}


/* TRANSFORMS */

.shrink {
	transform: scale(.25);
}


/*====================================
  +++ GLOBAL ELEMENTS +++
  ====================================*/

/* HEADER */

nav {
	top: .75rem;
	right: .75rem;
	z-index: 1;
}

nav a {
	font-size: 1rem;
	padding: 0.1875rem 1.125rem;
	border: 2px solid;
}

nav a + a {
	margin-left: 1.125rem;
}

@media screen and (min-width: 37.5em) { /* 600px */

	nav {
		top: 1.5rem;
		right: 1.5rem;
	}

	nav a {
		font-size: 1.125rem;
	}

}

@media screen and (min-width: 75em) { /* 1200px */

	nav a {
		font-size: 1.3125rem;
	}

}

header {
	top: .75rem;
	left: .75rem;
	right: .75rem;
	z-index: 0 !important;
	margin-top: 0 !important;
}

@media screen and (orientation: landscape) {

	header.stack-medium > * + * {
		margin-top: 0;
	}

}

@media screen and (orientation: portrait) {

	header {
		-webkit-flex-direction: column;
		flex-direction: column;
	}

	.page-title {
		width: 50%;
	}

}

@media screen and (orientation: portrait) and (min-width: 37.5em) {

	header {
		-webkit-flex-direction: row;
		flex-direction: row;
	}

	.page-title {
		width: 25%;
	}

}

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

	header {
		top: 1.5rem;
		left: 1.5rem;
		right: 1.5rem;
	}

}

/* BUTTONS */

button {
	background: transparent;
	border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
	cursor: pointer;
}

button,
.button {
	z-index: 1;
	font-size: 1.5rem;
}

button:focus {
	outline: 0;
}

button.control {
	height: 3rem;
	padding-left: 3.75rem;
}

.button {
	padding: 1rem 1rem 1rem 4rem;
	/* border: 2px solid; */
}

button.control svg,
.button svg {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

button.control svg {
	left: 0;
	height: 3rem;
}

.button svg {
	left: 1.25rem;
	height: 2rem;
}

.button.white:hover,
.button.white:focus {
	border-color: #fff;
	background-color: #fff;
	fill: #111;
	color: #111;
}

.modal {
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.75);
}


/* LAYOUT */

header {
	z-index: 1;
}

nav a,
nav svg {
	height: 3rem;
}

main {
	margin: auto;
	background-image: url('img/island-background.jpg');
	background-repeat: no-repeat;
	background-size: cover;
}

main,
.illustration,
.letter {
	width: 100%;
	height: 100%;
}

.illustration {
	display: -webkit-flex;
	display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
	top: 0;
	z-index: -1;
	padding: 12.5vh 3rem 25vh;
}

@media screen and (orientation: portrait) {

	.illustration {
		padding: 12.5vh 1.5rem 25vh;
	}

}

.illustration > * {
	max-height: 100%;
}

.letter {
	padding: 12.5vh 25vw 25vh;
	cursor: pointer;
	fill: #fff;
	-ms-touch-action: none;
}

@media screen and (orientation: portrait) {

	.letter {
		padding: 12.5vh 4.5rem 25vh;
	}

}

.segment {
	fill: transparent;
	cursor: pointer;
}

.traced {
	fill: #fe0000;
}

.stroke-2,
.stroke-3 {
	display: none;
}

.traced {
	-webkit-transition: fill 0.75s ease-out;
	-moz-transition: fill 0.75s ease-out;
	transition: fill 0.75s ease-out;
}

.reward-trigger {
	bottom: .75rem;
}

.letter-guide {
	width: 3rem;
}

/* CAROUSEL */

.carousel,
.carousel .carousel-cell,
.carousel-nav .carousel-cell {
	height: 100%;
}

.carousel {
	-webkit-flex-grow: 1;
	flex-grow: 1;
}

.carousel .carousel-cell {
	width: 101.05%;
}

.carousel-nav {
	position: fixed;
	left: 6rem;
	right: 6rem;
	bottom: 3rem;
}

@media screen and (orientation: portrait) {

	.carousel-nav {
		left: 5.25rem;
		right: 5.25rem;
		bottom: 3.75rem;
	}

	.carousel-nav img {
		max-height: 4.5rem;
	}

}

@media screen and (orientation: portrait) and (min-width: 37.5em) {

	.carousel-nav {
		left: 6rem;
		right: 6rem;
		bottom: 5.75rem;
	}

	.carousel-nav img {
		max-height: 6rem;
	}

}

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

	.carousel-nav {
		bottom: 4.5rem;
	}

}

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

	.carousel-nav {
		bottom: 5.75rem;
	}

}

.carousel-nav .flickity-slider {
	display: flex;
	align-items: center;
	height: 100%;
}

.carousel-nav .carousel-cell {
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
	/* width: 101.05%; */
	width: 50%;
	padding: 0 .375rem;
}

@media screen and (orientation: portrait) and (min-width: 37.5em) {

	.carousel-nav .carousel-cell {
		width: 25%;
		padding: 0 .75rem;
	}

}

@media screen and (orientation: landscape) {

	.carousel-nav .carousel-cell {
		width: 18.75%;
		padding: 0 .75rem;
	}

	.carousel-nav img {
		max-height: 3rem;
	}

}

@media screen and (orientation: landscape) and (min-width: 56.25em) {

	.carousel-nav .carousel-cell {
		width: 12.5%;
		padding: 0 .75rem;
	}

	.carousel-nav img {
		max-height: 6rem;
	}

}

@media screen and (orientation: landscape) and (min-width: 75em) {

	.carousel-nav .carousel-cell {
		width: 12.5%;
		padding: 0 1.5rem;
	}

	.carousel-nav img {
		max-height: 9rem;
	}

}

.flickity-button-icon {
	fill: #111;
}

.flickity-button {
	background: rgba(255,255,255, 0.75);
}

.flickity-button:hover {
	background: rgba(255,255,255, 1);
	animation: none;
}

/* LISTS */

ul * + * {
	margin-left: 1em;
}

/* IMAGES */

figure{
	line-height: 0;
}

figure img{
	margin-top: 0;
	line-height: 0;
}

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

figcaption{
	margin-top: 0;
    line-height: 1.5;
}

/* VIDEO / EMBEDS */

iframe {
	max-width: 100%;
}

.embed-container,
.embed-youtube {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
}

.embed-youtube iframe,
.embed-youtube object,
.embed-youtube embed,
.embed-container iframe,
.embed-container object,
.embed-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-wrapper {
	width: 100%;
}

.flowplayer {
	font-family: 'primerprint_bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	background-color: #000;
}

/* Hide Flowplayer UI */
.fp-header,
.fp-controls,
.fp-switch,
.is-waiting .play-button,
.is-playing .play-button,
.is-ended .play-button
{
	display: none !important;
}

/* Centre loading animation for older iOS */
.fp-wait {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Remove filter so play button shows on old iOS */
.flowplayer svg {
	filter: none !important;
}

/* LINKS */

a{
	text-decoration: none;
	color: #111;
	-webkit-transition: color .2s, background-color .2s, fill .2s;
	-moz-transition: color .2s, background-color .2s, fill .2s;
	transition: color .2s, background-color .2s, fill .2s;
}

a:hover, a:focus{
	color: #fff;
	fill: #fff;
}

.grid a {
	width: 100%;
	height: 100%;
}



/*====================================
  +++ GLOBAL TYPOGRAPHY +++
  ====================================*/


/* HEADINGS */

h1, h2, h3 {
	font-weight: normal;
	line-height: 1;
}

h1,
h1.caption {
	margin: 0;
	font-size: 2rem;
}

@media screen and (orientation: landscape) {

	h1,
	h1.caption {
		font-size: 1.5rem;
	}

}

@media screen and (orientation: portrait) {

	h1.caption {
		font-size: 1.125rem;
	}

}

@media screen and (orientation: portrait) and (min-width: 37.5em) {

	h1.caption {
		font-size: 2rem;
	}

}

@media screen and (min-width: 56.25em) { /* 900px */

	h1 {
		font-size: 2rem;
	}

}

@media screen and (min-width: 75em) { /* 1200px */

	h1 {
		font-size: 2.625rem;
	}

}

@media screen and (min-width: 100em) { /* 1200px */

	h1 {
		font-size: 3.4375rem;
	}

}



p {
	max-width: 62.5rem;
	font-size: 1.125rem;
	line-height: 1.5;
	text-align: left;
}

@media screen and (orientation: portrait) {

	p {
		font-size: 1.3125rem;
		text-align: center;
	}

}

@media screen and (orientation: portrait) and (min-width: 37.5em) {

	p {
		font-size: 1.5rem;
		text-align: left;
	}

}

@media screen and (orientation: landscape) and (min-width: 56.25em) {

	p {
		font-size: 1.5rem;
	}

}

@media screen and (min-width: 75em) { /* 1200px */

	p {
		font-size: 2rem;
	}

}

@media screen and (min-width: 100em) { /* 1600px */

	p {
		font-size: 2.625rem;
	}

}

p + p {
	margin-top: 1.5rem;
}


/*====================================
  +++ COMPONENTS +++
  ====================================*/

.panel {
    padding: .75rem;
	background-color: #fff;
}

.circle {
	position: relative;
	display: block;
	width: 100%;
	padding-bottom: 100%;
}

.circle > * {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.circle > * > * {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
    padding: 2.25rem;
	text-align: center;
}

.play-button svg {
	height: 6rem;
}
