/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */   
@font-face {
	font-family: "Raleway Extra Light";
	src: url('../fonts/raleway-extralight-webfont.woff2') format('woff2'),
		 url('../fonts/raleway-extralight-webfont.woff') format('woff'),
		 url('../fonts/raleway-extralight-webfont.ttf') format('truetype');
}
@font-face {
	font-family: "Raleway Regular";
	src: url('../fonts/raleway-regular-webfont.woff2') format('woff2'),
		 url('../fonts/raleway-regular-webfont.woff') format('woff'),
		 url('../fonts/raleway-regular-webfont.ttf') format('truetype');
}
@font-face {
	font-family: "Raleway Black";
	src: url('../fonts/raleway-black-webfont.woff2') format('woff2'),
		 url('../fonts/raleway-black-webfont.woff') format('woff'),
		 url('../fonts/raleway-black-webfont.ttf') format('truetype');
}
@font-face {
	font-family: "Bebas Neue Bold";
	src: url('../fonts/bebasneue-bold-webfont.woff2') format('woff2'),
		 url('../fonts/bebasneue-bold-webfont.woff') format('woff');
}

body {
	font-family: sans-serif;
	font-size: 24px;
}
section {
	position: relative;
}
h2 {
	position: absolute;
	margin: 0;
	font-family: "Raleway Extra Light", Helvetica, Arial, sans-serif;
	/*font-size: 2em;*/
	font-size: 3vw;
	font-weight: 300;
	line-height: 1;
	color: #fff;
}
h2 span {
	display: inline-block;
	font-family: "Bebas Neue Bold", Helvetica, Arial, sans-serif;
	font-size: 2em;
	font-weight: 700;
}
h2 strong {
	font-family: "Raleway Black", Helvetica, Arial, sans-serif;
	font-weight: 900;
}
h2 a {
	display: inline-block;
	margin-top: 20.833333333333334%;
	padding: 7px 15px 10px;
	box-sizing: border-box;
	font-size: .5em;
	text-transform: none;
	text-decoration: none;
	color: #fff;
	transition: .25s linear;
}
section figure {
	position: relative;
	margin: 0;
	padding: 0;
}
section figure img {
	position: absolute;
	width: 80%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.float-left {
	float: left;
}
.float-right {
	float: right;
}
.clear {
	clear: both;
}
.two-cols {
	width: calc(2*16.666%);
}
.asterics {
	position: absolute;
	bottom: 5px;
	margin: 0;
	font-family: "Raleway Extra Light", Helvetica, Arial, sans-serif;
	font-size: 1.2vw;
	font-weight: 300;
	line-height: 1;
	color: #fff;
}

#page {
	position: relative;
	height: calc(8*16.67vw);
	width: 100%;
	overflow: hidden;
}

/* sizes */
#section_1 {
	width: calc(3*16.666%);
	height: 16.67vw;
}
#section_2,
#section_3,
#section_7,
#section_8,
#section_10,
#section_11 {
	width: calc(3*16.666%);
	height: calc(2*16.67vw);
}
#section_4,
#section_5 {
	width: calc(2*16.666%); /* The container has fixed width. */
	width: 100%;
	height: 16.67vw;
}
#section_6 {
	width: 16.666%;
	height: calc(3*16.666vw);
}
#section_8 {
	width: calc(3*16.666%+2px);
}
#section_9 {
	width: calc(3*16.666%);
	height: 16.67vw;
}

#section_1 {
	position: absolute;
	left: 16.666%;
	top: calc(2*16.67vw);
	z-index: 2;
}
#section_7 {
	top: 16.67vw;
}
#section_8,
#section_11 {
	top: -16.67vw;
}

/* backgrounds */
#section_1 {
	background: repeating-linear-gradient(-45deg, #fa5a5a, #fa5a5a .5%, #fff .5%, #fff 1.5% );
}
#section_2 {
	background: #00be70;
	background-image:
		repeating-linear-gradient(-45deg, #00be70, #00be70 .75%, #fff .75%, #fff 2.25% );
	background-size: 33.333% 100%;
	background-position: 0 0;
	background-repeat: no-repeat;
}
#section_3 {
	background: #5480b4;
	background-image:
		repeating-linear-gradient(45deg, #5480b4, #5480b4 .75%, #fff .75%, #fff 2.25% );
	background-size: 66.666% 50%;
	background-position: 100% 100%;
	background-repeat: no-repeat;
}
#section_5 {
	background-color: #5480b4;
}
#section_6 {
	background-color: #fa5a5a;
}
#section_8 {
	background: #00be70;
	background-image:
		repeating-linear-gradient(45deg, #00be70, #00be70 1%, #fff 1%, #fff 3% );
	background-size: 33.333% 50%;
	background-position: 0 0;
	background-repeat: no-repeat;
}
#section_9 {
	background: #fff;
	background-image:
		radial-gradient(#ffcb4f 33.5%, transparent 0), 
		radial-gradient(#ffcb4f 33.5%, transparent 0);
	background-size: 50px 50px;
	background-position: 0 13px, 25px 38px;
}
#section_10 {
	background-color: #ffcb4f;
}
#section_11 {
	background: #fa5a5a;
	background-image:
		radial-gradient(#fa5a5a 0, #fa5a5a 0),
		radial-gradient(#ffcb4f 33.5%, transparent 0),
		radial-gradient(#ffcb4f 33.5%, transparent 0);
	background-size: 100% 50%, 50px 50px, 50px 50px;
	background-position: 0 0, 0 13px, 25px 38px;
	background-repeat: no-repeat, repeat, repeat;
}

/* content */
#section_1 h1 {
	width: 100%;
	height: 100%;
	margin: 0;
}
#section_1 a {
	display: block;
	position: relative;
	width: calc(66.666% - 8.333%);
	height: calc(100% - 25%);
	left: 4.1666666666666664%;
	top: 12.25%;
	background-color: #fff;
	transition: .25s linear;
}
#section_1 a img {
	position: absolute;
	width: 80%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
#section_1 a img:last-of-type {
	opacity: 0;
	transition: .25s linear;
}
#section_1 a:hover {
	background-color: #fa5a5a;
}
#section_1 a:hover img:last-of-type {
	opacity: 1;
}

#section_2 h2 {
	position: absolute;
	width: 33.333%;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
}
#section_2 h2 span {
	margin-bottom: 16.666666666666666%;
}
#section_2 h2 a {
	background-color: #ffcb4f;
}
#section_2 h2 a:hover {
	color: #ffcb4f;
	background-color: #fff;
}
#section_2 figure {
	width: 66.666%;
	height: 100%;
}
#section_2 .asterics {
	position: absolute;
	width: 33.333%;
	right: 0;
	text-align: center;
}

#section_3 h2 {
	position: absolute;
	width: 33.333%;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
}
#section_3 h2 span {
	margin-top: 16.666666666666666%;
}
#section_3 h2 a {
	background-color: #fa5a5a;
}
#section_3 h2 a:hover {
	color: #fa5a5a;
	background-color: #fff;
}
#section_3 figure {
	width: 66.666%;
	height: 100%;
	left: 33.333%;
}

#section_4 h2 {
	height: 100%;
	width: 100%;
}
#section_4 h2 a {
	display: block;
	position: relative;
	background-color: #fff;
	width: 87.5%;
	height: calc(100% - 25%);
	left: 6.25%;
	top: 12.25%;
	margin: 0;
	padding: 0;
	border: 2px solid #5480b4;
	transition: .25s linear;
}
#section_4 h2 a * {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
#section_4 h2 a img {
	width: auto;
	height: 40%;
	top: 16%;
}
#section_4 h2 a img:last-of-type {
	opacity: 0;
	transition: .25s linear;
}
#section_4 h2 a:hover {
	background-color: #fa5a5a;
	border: 2px solid #fa5a5a;
}
#section_4 h2 a:hover img:last-of-type {
	opacity: 1;
}
#section_4 h2 a:hover strong {
	color: #fff;
}
#section_4 h2 a strong {
	bottom: 16%;
	font-size: 1.5em;
	color: #5480b4;
}

#section_5 h2 {
	position: absolute;
	width: 50%;
	left: 12.5%;
	top: 50%;
	transform: translate(-12.5%, -50%);
}
#section_5 h2 a {
	background-color: #fa5a5a;
}
#section_5 h2 a:hover {
	color: #fa5a5a;
	background-color: #fff;
}
#section_5 figure {
	width: 66.666%;
	height: 100%;
	left: 33.333%;
}

#section_6 h2 {
	position: absolute;
	top: 75%;
	transform: translateY(-50%);
	text-align: center;
}
#section_6 h2 strong {
	font-family: "Raleway Regular";
}
#section_6 h2 span {
	margin-top: 20px;
}
#section_6 h2 a {
	margin-top: 30px;
	background-color: #5480b4;
}
#section_6 h2 a:hover {
	color: #5480b4;
	background-color: #fff;
}
#section_6 figure {
	width: 100%;
	height: 60%;
}

#section_7 div {
	position: absolute;
	width: 50%;
	height: 50%;
	right: 0;
	top: 0;
}
#section_7 div h2 {
	position: absolute;
	right: 25%;
	top: 50%;
	transform: translate(25%, -50%);
	text-align: right;
	color: #fa5a5a;
}
#section_7 h2 a {
	color: #fa5a5a;
	border: 1px solid #fa5a5a;
	box-sizing: border-box;
}
#section_7 h2 a:hover {
	color: #fff;
	background-color: #fa5a5a;
}
#section_7 figure {
	width: 66.666%;
	height: 100%;
}
#section_7 figure img {
	transform: translate(-50%, -50%) rotateY(180deg);
}

#section_8 h2 {
	position: absolute;
	width: 33.333%;
	left: 12.25%;
	top: 75%;
	transform: translate(-24%, -50%);
}
#section_8 h2 a {
	color: #00be70;
	background-color: #fff;
}
#section_8 h2 a:hover {
	color: #fff;
	background-color: #ffcb4f;
}
#section_8 figure {
	width: 66.666%;
	height: 100%;
	left: 33.333%;
}

#section_9 h2 {
	position: absolute;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.7vw;
	text-align: center;
}
#section_9 a {
	position: absolute;
	display: block;
	width: calc(33.333% - 30px);
	height: calc(100% - 30px);
	right: 15px;
	top: 15px;
	margin: 0;
	padding: 0;
	background-color: #ffcb4f;
	box-sizing: border-box;
	border-radius: 50%;
	overflow: hidden;
}
#section_9 a:after {
	content: "";
	position: absolute;
	display: block;
	width: calc(100% - 30px);
	height: calc(100% - 30px);
	right: 14px;
	top: 15px;
	border: 2px solid #fff;
	border-radius: 50%;
	transition: .25s linear;
}
#section_9 a:hover h2 {	
	color: #ffcb4f;
	z-index: 3;
}
#section_9 a:hover:after {
	background-color: #fff;
}
#section_9 figure {
	width: 50%;
	height: 100%;
	left: 10%;
}

#section_10 h2 {
	position: absolute;
	width: 50%;
	right: 12.5%;
	top: 50%;
	transform: translate(16.5%, -50%);
	text-align: right;
}
#section_10 h2 span {
	margin-top: 16.666666666666666%;
}
#section_10 h2 a {
	background-color: #fa5a5a;
}
#section_10 h2 a:hover {
	color: #fa5a5a;
	background-color: #fff;
}
#section_10 figure {
	width: 66.666%;
	height: 100%;
}

#section_11 h2 {
	position: absolute;
	width: 50%;
	left: 12.5%;
	top: 12.25%;
	transform: translate(-16.5%, -25%);
}
#section_11 h2 a {
	background-color: #ffcb4f;
}
#section_11 h2 a:hover {
	color: #ffcb4f;
	background-color: #fff;
}
#section_11 figure {
	width: 100%;
	height: 100%;
}
#section_11 figure img {
	width: 70%;
}


@media screen and (max-width: 1000px) {
	#section_9 a {
		width: calc(33.333% - 10px);
		height: calc(100% - 10px);
		right: 5px;
		top: 5px;
    }
}


/* Mobile version starts here */
@media screen and (max-width: 767px) {
	section,
	figure {
		width: 100% !important;
		left: 0 !important;
	}
	h2 {
		width: auto !important;
		left: 8% !important;
		font-size: 10vw;
		text-align: left !important;
		transform: none !important;
	}

	#page {
		overflow: visible;
	}
	.float-right {
		float: none;
	}
	.two-cols {
		width: 100%;
	}
	.asterics {
		font-size: 4vw;
		bottom: 10px;
	}

	/* resetting position */
	#section_1 {
		position: relative;
		height: 100vw;
		left: 0;
		top: 0;
		background: repeating-linear-gradient(-45deg, #00be70, #00be70 1%, #fff 1%, #fff 3% );
		z-index: 1;
	}
	#section_1 a {
		width: 92%;
		height: 42.66666666666667%;
		left: 8%;
		top: 8%;
	}

	#section_2 {
		height: 100vw;
		background: #00be70;
		z-index: 2
	}
	#section_2 h2 {
		top: auto;
		bottom: 16%;
		text-align: left;
	}
	#section_2 h2 span {
		margin-bottom: 9%;
	}
	#section_2 h2 a {
		margin-top: 11.2%;
	}
	#section_2 figure img {
		top: 0;
	}
	#section_2 .asterics {
		left: 8%;
	}

	#section_3 {
		height: 100vw;
		background: #5480b4;
		z-index: 2
	}
	#section_3 h2 {
		top: 8%;
	}
	#section_3 figure img {
		transform: translate(-50%, 0);
	}

	#section_4 {
		height: 100vw;
		background: #fff;
		background-image:
			repeating-linear-gradient(-45deg, #5480b4, #5480b4 1%, #fff 1%, #fff 3% );
		background-size: 100% 50%;
		background-position: 0 0;
		background-repeat: no-repeat;
	}
	#section_4 h2 {
		width: 92% !important;
		height: 50%;
		top: 50%;
	}
	#section_4 h2 a {
		width: calc(100% - 8%);
		height: calc(100% - 16%);
		left: 0;
		top: 8%;
	}

	#section_5 {
		height: 100vw;
	}
	#section_5 h2 {
		top: 8%;
	}
	#section_5 figure img {
		width: 70%;
		top: auto;
		bottom: 8%;
		transform: translate(-50%, 0);
	}

	#section_6 {
		height: calc(100vw + 50vw);
		background: #fa5a5a;
		background-image:
			repeating-linear-gradient(-45deg, #fa5a5a, #fa5a5a 1%, #fff 1%, #fff 3% );
		background-size: 100% 50vw;
		background-position: center bottom;
		background-repeat: no-repeat;
	}
	#section_6 h2 {
		top: 5.222%;
	}
	#section_6 figure {
		height: 100vw;
	}
	#section_6 figure img {
		width: 65%;
		transform: translate(-50%, 0);
	}

	#section_7 {
		height: calc(100vw + 50vw);
		top: 0;
		background-image:
			repeating-linear-gradient(-45deg, #00be70, #00be70 1%, #fff 1%, #fff 3% );
		background-size: 100% 50vw;
		background-position: center bottom;
		background-repeat: no-repeat;
	}
	#section_7 div {
		width: 100vw;
		height: 100vw;
	}
	#section_7 div h2 {
		top: 8%;
		right: 0;
	}
	#section_7 h2 a {
		margin-top: 9vw;
	}
	#section_7 figure {
		height: 100vw;
	}
	#section_7 figure img {
		top: 66.666%;
		transform: translate(-50%, 0) rotateY(180deg);
	}

	#section_8 {
		height: calc(100vw + 50vw);
		top: 0;
		background-image:
			repeating-linear-gradient(-45deg, #00be70, #00be70 1%, #fff 1%, #fff 3% );
		background-size: 100% 50vw;
		background-position: center bottom;
		background-repeat: no-repeat;
	}
	#section_8 h2 {
		top: 5.222%;
	}
	#section_8 figure {
		height: 100vw;
	}
	#section_8 figure img {
		top: 60%;
		transform: translate(-50%, 0);
	}

	#section_9 {
		height: 100vw;
		background-image:
			radial-gradient(#fff 0, #fff 0),
			radial-gradient(#ffcb4f 33.5%, transparent 0),
			radial-gradient(#ffcb4f 33.5%, transparent 0);
		background-size: 100% 50%, 50px 50px, 50px 50px;
		background-position: 0 0, 0 13px, 25px 38px;
		background-repeat: no-repeat, repeat, repeat;
		z-index: 3;
	}
	#section_9 figure img {
		transform: translate(-50%, 50%);
	}
	#section_9 a {
		width: calc(100% - 40%);
		height: calc(100% - 40%);
		right: 20%;
		top: 8%;
	}
	#section_9 h2 {
		font-size: 8vw;
		left: 50% !important;
		top: 50%;
		transform: translate(-50%, -50%) !important;
	}

	#section_10 {
		height: calc(100vw + 50vw);
		z-index: 2;
	}
	#section_10 h2 {
		top: 33.333%;
		right: auto;
	}
	#section_10 h2 a {
		margin-top: 9vw;
	}
	#section_10 h2 span {
		margin-top: 4.5vw;
	}
	#section_10 figure {
		height: 100vw;
	}
	#section_10 figure img {
		width: 80%;
		transform: translate(-50%, 105%);
	}

	#section_11 {
		height: calc(100vw + 50vw);
		top: 0;
		background: #fa5a5a;
		background-image:
			radial-gradient(#fa5a5a 0, #fa5a5a 0),
			radial-gradient(#ffcb4f 33.5%, transparent 0),
			radial-gradient(#ffcb4f 33.5%, transparent 0);
		background-size: 100% 100vw, 50px 50px, 50px 50px;
		background-position: 0 50vw, 0 13px, 25px 38px;
		background-repeat: no-repeat, repeat, repeat;
	}
	#section_11 h2 {
		top: calc(50vw + 4%);
	}
	#section_11 h2 a {
		margin-top: 11.2%;
	}
	#section_11 figure {
		height: 100vw;
		top: 50vw;
	}
	#section_11 figure img {
		transform: translate(-50%, 0%);
	}
}

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
