
@font-face {
	font-family: 'AvenirHeavy';
	src: url('../fonts/AvenirLTStd-Heavy.woff');
}

@font-face {
	font-family: 'AvenirMedium';
	src: url('../fonts/Avenir-Medium-09.ttf'),
		url('../fonts/Avenir-Medium-webfont.woff');
}

.mobile-header {
	display: none;
}

* {
	box-sizing: border-box;
}

body {
	height: 100vh;
	width: 100vw;
	margin: 0;
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
	padding: 0;
	margin: 0;
}

p {
	padding: 0;
	margin: 0;	
}

/*--- Colours ---*/

.teal {
	background-color: rgb(0,170,168)
}

.blue {
	background-color: rgb(27,117,188)
}

.red {
	background-color: rgb(240,78,51)
}

.pink {
	background-color: rgb(237,25,121)
}

.green {
	background-color: rgb(0,151,99)
}

.orange {
	background-color: rgb(250,173,65)
}

.purple {
	background-color: rgb(133,75,157) 
}

.lightgrey {
	background-color: rgb(188,190,192)
}

/*--------------------------------*/

/*--- Main Body ---*/

.wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.wrapper > div {
	position: relative;
	width: 20vw;
	height: 20vw;
	margin: 0.8vw 0.4vw 0 0.4vw;
	padding: 2vw;
	color: white;
	cursor: pointer;
	opacity: 1;
	-webkit-transition: 0.66s ease;
	-o-transition: 0.66s ease;
	transition: 0.66s ease;
}
.wrapper > div a {
	color: white;
}

.wrapper > div.lightgrey p {
	font-family: AvenirMedium;
	margin-top: 1.2vw;
	font-size: 1.2vw;
}

.wrapper > div.fadeout {
	opacity: 0;
	-webkit-transition: 0.66s ease;
	-o-transition: 0.66s ease;
	transition: 0.66s ease;
} 

.wrapper > div h6 {
	font-family: AvenirHeavy;
	font-family: AvenirMedium;
	font-size: 2.3vw;
	font-weight: 800;
	line-height: 1.3;
}

.wrapper > div.blue.alt h6.alt {
	opacity: 1;
	-webkit-transition: 1s ease;
	-o-transition: 1s ease;
	transition: 1s ease;	
}

.wrapper > div h6 {
	position: absolute;
	top: 2vw;
	left: 2vw;
	font-size: 2.1vw;
	opacity: 1;
	-webkit-transition: 1s ease;
	-o-transition: 1s ease;
	transition: 1s ease;
}

.wrapper > div h6.alt {
	opacity: 0;
	-webkit-transition: 1s ease;
	-o-transition: 1s ease;
	transition: 1s ease;
}

.wrapper > div.blue.alt {
	background-color: rgb(27,117,188);
	-webkit-transition: 1s ease;
	-o-transition: 1s ease;
	transition: 1s ease;
}

.wrapper > div.alt h6 {
	opacity: 0;
	-webkit-transition: 1s ease;
	-o-transition: 1s ease;
	transition: 1s ease;	
}

.wrapper > div.alt h6.alt {
	opacity: 1;
	-webkit-transition: 1s ease;
	-o-transition: 1s ease;
	transition: 1s ease;	
}

/*--------------------------------*/

/*--- Content Container ---*/

.content-container {
	position: absolute;
	height: 100vh;
	width: 100%;
	top: 0;
	left: 0;
	background-color: white;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	-webkit-transition: 0.66s ease;
	-o-transition: 0.66s ease;
	transition: 0.66s ease;
}
.hidden-element {
	opacity: 0;
	visibility: hidden;
}

.content-container.current {
	opacity: 1;
	visibility: visible;
	pointer-events: all;	
	-webkit-transition: 0.66s ease;
	-o-transition: 0.66s ease;
	transition: 0.66s ease;
}

.book.active {
	display: block;
	background: rgba(0,0,0,.8);
	z-index: 9;
}
.book {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: none;
}
.book .close_book {
    position: absolute;
    color: white;
    font-size: 30px;
    font-family: AvenirMedium;
    top: 20px;
    right: 40px;
    cursor: pointer;
}

.content-container > div {
	position: absolute;
	display: flex;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.content-container > div.current-section {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

.content-container > div > div {
	width: 50%;
}

.content-container > div > div:nth-child(1) {
	padding: 20px 80px 80px 8.8vw;
}

.content-container > div > div:nth-child(1) > div {
	display: flex;
	flex-wrap: wrap;
	align-content: baseline;
	width: 100%;
	height: 100%;	
}

.content-container > div > div:nth-child(2) {	
	max-height: 100vh;
	overflow-y: scroll;
	padding: 80px 8vw 20px 8vw;
	background-color: white;
}

.content-container > div.survey-forms > div:nth-child(2) p {
	margin-bottom: 0;
}
.content-container > div > div:nth-child(2) p {
    margin-left: 20px;
    font-family: AvenirMedium;
    font-size: 1.25vw;
    line-height: 1.5;
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 65px);
    margin-bottom: 15px;
}

.content-container > div > div:nth-child(2) li {
	font-family: AvenirMedium;
	font-size: 1.25vw;
	line-height: 1.5;	
}

.content-container > div > div:nth-child(2) p a,
.content-container > div > div:nth-child(2) p a:hover {
	color: rgb(27,117,188);
}

.content-container > div > div:nth-child(2) div {
	width: 100%;
	margin-bottom: 20px;
}

.content-container > div > div:nth-child(2) div a {
    width: 40px;
    display: inline-block;
    vertical-align: middle;
}

.content-container > div > div:nth-child(2) div img {
	display: inline-block;
	vertical-align: top;
	width: 40px;
	margin-right: 20px;
}

.content-container > div > div:nth-child(2) div span {
	display: inline-block;
	vertical-align: middle;
	width: calc(100% - 75px);
	font-family: AvenirMedium;
	font-size: 1.2vw;
	color: rgb(55,55,55);
	text-decoration: none;
	font-weight: 800;
}

.media {
	position: relative;
	width: calc(20.6vw - 45px);
	height: calc(20.6vw - 45px);
	border: 4px solid white;
	overflow: hidden;
}

.media img {
	position: absolute;
	top: 50%;
	left: 55%;
	height: 75%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.media video {
	position: absolute;
	top: 50%;
	left: 50%;
	height: 100%;
	background-color: black;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.title {
	width: calc(20.6vw - 45px);
	height: calc(20.6vw - 45px);
	margin-left: 10px;
	padding: 1.8vw 2vw;
	border: 4px solid white;	
}

.title h2 {
	font-family: AvenirHeavy;
	color: white;
	font-size: 1.9vw;
}

.survey-forms .title {
	color: rgb( 55,55,55);
}

/*flip book start*/

.book_link.blue-text {
    font-family: AvenirMedium;
    font-size: 1.25vw;
    line-height: 1.5;
    margin-top: 0;
}
.book_link {
    width: 100%;
    text-align: center;
    margin-top: 5%;
	font-family: AvenirMedium;
	font-size: 1.1vw;
	color: white;
	cursor: pointer;
	text-decoration: underline;
}

.t {
  display: table;
  width: 100%;
  max-height: 100%;
}

.tc {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.rel {
  position: relative;
}

/*--- Flip Book ---*/
.book .page img {
	position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
	max-height: 100%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
    border: 4px solid rgb(250,173,65);
}

.book .booklet {
	display: block;
	position: absolute !important;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%) !important;
	-ms-transform: translate(-50%, -50%) !important;
	-o-transform: translate(-50%, -50%) !important;
	transform: translate(-50%, -50%) !important;
}

.page_prev,
.page_next {
	position: absolute;
	width: 5vw;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
}

.page_prev{
	left: 5vw;
}

.page_next{
	right: 5vw;
}

.portraitmode {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
}
/*--- Flip Book end ---*/


.categories {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.categories div {
	width: calc(10.3vw - 27.5px);
	height: calc(10.3vw - 27.5px);
	margin-top: 10px;
	margin-left: 10px;
	padding: 0.5vw;
	color: white;
	border: 4px solid transparent;
	cursor: pointer;
}
.categories div a {
	color: white;
	text-decoration: none;
}

.categories div h6 {
	font-family: AvenirHeavy;
	font-size: 1vw;
}

.categories div:nth-child(4n + 1) {
	margin-left: 0px;
}

.what-is-it.current-section .categories .orange,
.who-ran-it.current-section .categories .pink,
.when-was-it.current-section .categories .teal,
.thanks.current-section .categories .blue,
.who-sees-it.current-section .categories .purple,
.data-security.current-section .categories .red,
.the-survey-results.current-section .categories .green,
.survey-questions.current-section .categories .lightgrey {
	border: 4px solid white;
}

.go-home {
	position: absolute;
	top: 20px;
	right: 40px;
	height: 30px;
	cursor: pointer;
}

.fire-popup span {
	width: auto !important;
	color: rgb(27,117,188) !important;
	line-height: 1.5;
	font-weight: 400 !important;
	text-decoration: underline !important;
	cursor: pointer;
}

.form-popup,
.form-popup div {
	display: none;
}

.form-popup {
	position: absolute;
	width: auto !important;
	margin: 0 0 0 0 !important;
	padding: 20px 40px !important;
	background-color: white;
	-webkit-box-shadow: 0px 0px 20px 4px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 0px 20px 4px rgba(0,0,0,0.75);
	box-shadow: 0px 0px 20px 4px rgba(0,0,0,0.75);
	-webkit-transform: translate(-50%, 25px);
	-ms-transform: translate(-50%, 25px);
	-o-transform: translate(-50%, 25px);
	transform: translate(-50%, 25px);
}

.form-popup div {
	width: auto !important;
	margin: 0 0 0 0 !important;
}

.form-popup div p {
	width: auto !important;
	margin: 0 !important;
	white-space: nowrap;
}

.form-popup div p a {
	width: auto !important;
}

.form-popup.current,
.form-popup div.current {
	display: flex;
	flex-flow: column;
}

.form-popup .close-popup {
    position: absolute;
	color:black;
	font-size: 24px;
	font-family: AvenirMedium;
	top: 0;
	right: 7px;
	cursor: pointer;
	display: block;
	width: auto !important;
	margin-bottom: 0 !important;
	line-height: 1;
}

/*--------------------------------*/

/*--- Footer ---*/

footer {
	width: 100%;
	max-height: 18vh;
	/*min-height: 8vh;*/
	height: calc(100vh - 41.6vw);
	padding-top: 0.8vw;
	pointer-events: none;
}

footer > div {
	position: relative;
	height: 100%;
	width: 82.4%;
	margin-left: 8.8%;
}

footer .flex-container {
	position: absolute;
	height: 100%;
	width: 22vw;
	top: 0;
	left: 0;
	pointer-events: all;
	-webkit-transition: 1.2s ease;
	-o-transition: 1.2s ease;
	transition: 1.2s ease;
}

footer .flex-container.instant {
	-webkit-transition: 0s;
	-o-transition: 0s;
	transition: 0s;
}

footer .flex-container img {
	position: absolute;
	max-width: 100%;
	height: 40%;
	top: 50%;
	right: 0;
	opacity: 0;
	visibility: hidden;
	-webkit-transition: 1.2s ease;
	-o-transition: 1.2s ease;
	transition: 1.2s ease;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
}

footer .flex-container img.current {
	opacity: 1;
	visibility: visible;
	-webkit-transition: 1.2s ease;
	-o-transition: 1.2s ease;
	transition: 1.2s ease;
}

footer .flex-container img.instant {
	-webkit-transition: 0s;
	-o-transition: 0s;
	transition: 0s;
}

footer .nz-govt-container {
	position: absolute;
	height: 100%;
	width: 20vw;
	right: 0;
	opacity: 1;
	-webkit-transition: 0.66s ease;
	-o-transition: 0.66s ease;
	transition: 0.66s ease;	
}

footer .nz-govt-container img {
	position: absolute;
	top: 50%;
	right: 0;
	max-width: 100%;
	height: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);

}

footer .nz-govt-container.fadeout {
	opacity: 0;
	-webkit-transition: 0.66s ease;
	-o-transition: 0.66s ease;
	transition: 0.66s ease;
}

footer .question-mark {
	position: absolute;
	height: 100%;
	width: 37vw;
	top: 0;
	left: 22vw;
	-webkit-transition: 1.2s ease;
	-o-transition: 1.2s ease;
	transition: 1.2s ease;
}

footer .question-mark.fadeout {
	width: 5vw;
	-webkit-transition: 1.2s ease;
	-o-transition: 1.2s ease;
	transition: 1.2s ease;
}

footer .question-mark.instant {
	-webkit-transition: 0s;
	-o-transition: 0s;
	transition: 0s;	
}

footer .question-mark img {
	position: absolute;
	height: 105%;
	bottom: 0;
	right: 0;
	opacity: 0;
	-webkit-transition: 1.2s ease;
	-o-transition: 1.2s ease;
	transition: 1.2s ease;
	-webkit-transform: translateX(50%);
	-ms-transform: translateX(50%);
	-o-transform: translateX(50%);
	transform: translateX(50%);
}	

footer .question-mark img.current {
	opacity: 1;
	-webkit-transition: 1.2s ease;
	-o-transition: 1.2s ease;
	transition: 1.2s ease;
}

footer .question-mark img.instant {
	-webkit-transition: 0s;
	-o-transition: 0s;
	transition: 0s;
}
