@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:400,700&subset=latin,latin-ext);
/* NORMALIZE */
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}

html {
	overflow-y: scroll;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	font-family: "Alegreya Sans", arial, sans-serif;
	font-size: 22px;
	line-height: 1.4;
	text-align: center;
	color: #333;
	background: #FFF;
}

/******************** GRID & LAYOUT **************************/
.row {
	width: 100%;
	clear: both;
	overflow: hidden;
}

.col {
	position: relative;
	vertical-align: middle;
	text-align: center;
}

.col-1 { width: 100%; }

@media screen and (min-width: 640px) {
	.row {
		display: table;
		table-layout: fixed;
	}
	
	.col {
		display: table-cell;
	}

	.col-12 { width: 50%;}
	.col-12:first-child { text-align: right; }
	.col-12:nth-child(2) { text-align: left; }
}

.cf:after {
	content: "";
	display: table;
	clear: both;
}

.max-text-width {
	margin: .5em auto;
	max-width: 700px;
}

.add-spacing { padding: 2.5em 1em;}
.add-spacing-top { padding-top: 2.5em; }
.add-spacing-bottom { padding-bottom: 2.5em; }

.col-padding { padding: 0 1em; }
.float-left { float: left; }
.float-right { float: right; }

/******************** TYPOGRAPHY **************************/
h1, h2, h3, h4 {
	font-weight: normal;
	font-variant: small-caps;
	line-height: 1.25;
	margin: 0 .25em .75em;
}

h1 { font-size: 2.7em; }
h2 { font-size: 2.4em; }
h3 { font-size: 2em; }
h4 { font-size: 1.75em; }

.big-header {
	margin: 0;
	padding: .5em .5em;
}

.underlined {
	border-bottom: 2px dashed;
}

.drop-cap {
	color: #FFF;
	border-radius: 50%;
	background: #333;
	padding: 0 .4em;
}

.larger-text {
	font-size: 1.3em;
	line-height: 1.5;
	letter-spacing: .03em;
	word-spacing: .15em;
}

.highlight {
	background: #FFF;
	color: #E2715D;
}

.highlight-alt {
	background: #333;
	color: #EDC493;
}

.highlight, .highlight-alt {
	border-radius: .2em;
	letter-spacing: .05em;
	padding: 0 5px;
}

cite { letter-spacing: .02em; }
cite:before { content: "\201E"; }
cite:after  { content: "\201D"; }

/******************** LINKS **************************/
.button {
	font-size: 1.1em;
	display: inline-block;
	margin: .2em;
	padding: .5em 2em;
	text-decoration: none;
	color: #333;
	border-radius: .2em;
	border-bottom: 3px solid;
	background-color: rgba(0,0,0,.2);
	border-color: rgba(0,0,0,.2);
}

.color-0 .button,
.color-1 .button {
	background-color: #282828;
	border-color: #202020;
}
.color-2 .button {
	background-color: #CC5B47;
	border-color: #AA4C3B;
}
.color-3 .button {
	background-color: #CEA371;
 	border-color: #A5825B;
}

.color-0 .button:hover, .color-0 .button:focus,
.color-1 .button:hover, .color-1 .button:focus {
	background-color: #232323;
	border-color: #1C1C1C;
}
.color-2 .button:hover, .color-2 .button:focus {
 	background-color: #AA4C3B;
	border-color: #914132;
}
.color-3 .button:hover, .color-3 .button:focus {
 	background-color: #A5825B;
	border-color: #896C4B;
}

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

.big-link {
	display: inline-block;
	padding: .5em;
	color: #333;
	font-size: 1.5em;
	text-decoration: none;
	-webkit-transition: color .3s;
	-moz-transition: color .3s;
	transition: color .3s;
}

.color-0,
.color-2,
.color-3,
.color-3 .button,
.color-3 .button:hover,
.color-3 .button:focus {
	color: #333;
}

.color-0 .button,
.color-0 .button:hover,
.color-0 .button:focus,
.color-1,
.color-1 .button,
.color-1 .button:hover,
.color-1 .button:focus,
.color-2 a:hover,
.color-2 a:focus,
.color-2 .button,
.color-2 .button:hover,
.color-2 .button:focus {
	color: #FFF;
}
.big-link:hover, .big-link:focus,
.color-0 a,
.color-1 a:hover,
.color-1 a:focus,
.color-3 a {
	color: #E2715D;
}
.big-link:active,
.color-1 a,
.color-2 a {
	color: #EDC493;
}
.color-0 a:hover,
.color-0 a:focus,
.color-3 a:hover,
.color-3 a:focus{
	color: #AA4C3B;
}

a {
	display: inline-block;
	-webkit-transition: background-color .5s, border-color .3s, color .3s;
	-moz-transition: background-color .5s, border-color .3s, color .3s;
	transition: background-color .5s, border-color .3s, color .3s;
}

/******************** COLORS **************************/

.color-0 {
	background-color: #FFF;
}
.color-1 {
	background-color: #333;
}
.color-2 {
	background-color: #E2715D;
}
.color-3 {
	background-color: #EDC493;
}

/******************** ICONS / NAV **************************/

.thumb:after,
.icon-envelope,
.icon-zoom-in,
.icon-board,
.icon-pictures,
.icon-arrow-up {
	overflow: hidden;
	width: 48px;
	height: 48px;
 	background-repeat: no-repeat;
	background-image: url(../img/sprites.png);
	background-image: url(../img/sprites.svg), none;
}

.icon-envelope,
.icon-zoom-in,
.icon-board,
.icon-pictures,
.icon-arrow-up {
	position: relative;
	display: inline-block;
	text-indent: 100%;
	white-space: nowrap;
}

.icon-envelope {
	background-position: 0 0;
	width: 48px;
}
.icon-zoom-in {
	background-position: -48px 0;
	width: 48px;
}
.icon-board {
	background-position: -96px 0;
	width: 48px;
}
.icon-pictures {
	background-position: -144px 0;
	width: 48px;
}
.icon-arrow-up {
	background-position: -192px 0;
	width: 48px;
}

.icon-box {
	display: inline-block;
	position: relative;
	height: 48px;
	width: 48px;
	padding: .75em;
	margin: .5em 1em;
	border-radius: 50%;
	background: #FFF;
}

.anim-float-up:hover [class*="icon-"],
.anim-float-up:focus [class*="icon-"] {
	-webkit-animation: float-up .5s ease-in-out infinite alternate;
	-moz-animation: float-up .5s ease-in-out infinite alternate;
	animation: float-up .5s ease-in-out infinite alternate;
}

.nav {
	list-style: none;
}

.icon-nav .icon-box {
	-webkit-transition: background .5s;
	-moz-transition: background .5s;
	transition:  background .5s;
}

.icon-nav a, .icon-link {
	margin: .5em 1em;
	border-radius: 50%;
}

.icon-nav a .icon-box, .icon-link .icon-box {
	margin: 0;
}


.icon-nav .icon-box:hover,
.icon-nav .icon-box:focus {
	background: #EDC493;
}

.icon-nav .icon-box:active {
	background: #E2715D;
}

.icon-nav .icon-box:hover [class*="icon-"],
.icon-nav .icon-box:focus [class*="icon-"] {
	-webkit-animation: rotate-360 .5s ease-in-out 1;
	-moz-animation: rotate-360 .5s ease-in-out 1;
	animation: rotate-360 .5s ease-in-out 1;
}


.icon-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.list-inline {
	display: inline-block;
}

.main-header {
	position: relative;
}

.main-header .big-header {
	text-align: left;
}

.thumb:after,
.main-header .icon-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
}

.main-header .icon-nav {
	width: 100%;
	height: 103px;
	text-align: right;
}

@-webkit-keyframes float-up {
	0% { -webkit-transform: translateY(0);}
	100% { -webkit-transform: translateY(-35%);}
}
@-moz-keyframes float-up {
	0% { -moz-transform: translateY(0);}
	100% { -moz-transform: translateY(-35%);}
}
@keyframes float-up {
	0% { -webkit-transform: translateY(0);
		transform: translateY(0);}
	100% { -webkit-transform: translateY(-35%);
		transform: translateY(-35%);}
}

@-webkit-keyframes rotate-360 {
	0% { -webkit-transform: rotate(0);}
	100% { -webkit-transform: rotate(360deg);}
}
@-moz-keyframes rotate-360 {
	0% { -moz-transform: rotate(0);}
	100% { -moz-transform: rotate(360deg);}
}
@keyframes rotate-360 {
	0% { -webkit-transform: rotate(0);
		transform: rotate(0);}
	100% { -webkit-transform: rotate(360deg);
		transform: rotate(360deg);}
}

/******************** IMAGES **************************/

img {
	max-width: 100%;
}

.bg-img {
	position: relative;
	background-size: cover;
 	background-repeat: no-repeat;
	background-position: 50% 50%;
	overflow: hidden;
	width: 100%;
	max-height: 615px;
	max-height: 84vh;
}

.bg-img:before {
	content: "";
	display: block;
	padding-bottom: 50%;
}

.thumb {
	position: relative;
	margin: .25em;
	border-radius: .5em;
	width: 200px;
	height: 200px;
	border: 10px solid #FFF;
	border: 15px solid rgba(255,255,255,.5);
	-webkit-transition: border .3s;
	-moz-transition: border .3s;
	transition: border .3s;
	overflow: hidden;
}

.thumb:hover,
.thumb:focus {
	border-color: rgba(255,255,255,.25);
}


.thumb:before,
.thumb:after {
	display: block;
	content: "";
	opacity: 0;
	-webkit-transition: -webkit-transform .3s, opacity .3s;
	-moz-transition: -moz-transform .3s, opacity .3s;
	transition: transform .3s, opacity .3s;
}

.thumb:before {
	opacity: 1;
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	z-index: 1;
	background: rgba(237,196,147,.5);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(237,196,147,.5)), color-stop(100%,rgba(226,113,93,.5))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(237,196,147,.5) 0%,rgba(226,113,93,.5) 100%); /* Chrome10+,Safari5.1+ */
	background: linear-gradient(to bottom, rgba(237,196,147,.5) 0%,rgba(226,113,93,.5) 100%); /* W3C */

	-webkit-transform: translateY(-200px);
	-moz-transform: translateY(-200px);
	-ms-transform: translateY(-200px);
	transform: translateY(-200px);
}

.thumb:after {
	z-index: 2;
	background-position: -48px 0;
	-webkit-transform: translateY(100px);
	-moz-transform: translateY(100px);
	-ms-transform: translateY(100px);
	transform: translateY(100px);
}

.thumb:hover:before,
.thumb:focus:before,
.thumb:hover:after,
.thumb:focus:after {
	-webkit-transform: none;
	-moz-transform: none;
	-ms-transform: none;
	transform: none;
	opacity: 1;
}

.bomb {
	position: relative;
	overflow: hidden;
}

.bomb:before {
	position: absolute;
	content: "";
 	bottom: -2em;
	left: -2em;
	width: 384px;
	height: 384px;
	background: url(http://ember.eu/game/images/bomba.gif) no-repeat, none;
	background-size: 384px;
	opacity: .1;
}

/******************** LIGHTBOX **************************/

.lightbox {
	display: none;
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	font-size: 20px;
	background: #E2715D;
	background: rgba(237,196,147,.9);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(237,196,147,.9)), color-stop(100%,rgba(226,113,93,.9))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(237,196,147,.9) 0%,rgba(226,113,93,.9) 100%); /* Chrome10+,Safari5.1+ */
	background: linear-gradient(to bottom, rgba(237,196,147,.9) 0%,rgba(226,113,93,.9) 100%); /* W3C */
}

.lightbox figure {
	position: relative;
	top: 50%;
	display: inline-block;
	overflow: hidden;
	border: 10px solid #333;
	border-radius: 5px;
 	min-width: 100px;
	min-height: 100px;
	margin-top: -50px;
	background: #333 url(http://ember.eu/game/images/bomba.gif) no-repeat;
	background-position: center;
	background-size: 96px;
}

.lightbox img {
 	min-width: 90px;
	min-height: 90px;
	vertical-align: middle;
}

.lightbox .captions {
	position: absolute;
	font-size: .75em;
	bottom: 0;
	left: 0;
	background: #333;
	background: rgba(51,51,51,.8);
	width: 100%;
	padding: .5em 0;
	text-align: left;
	color: #FFF;
}

.lightbox figcaption {
	padding-left: 10px;
	float: left;
	margin-right: 10px;
	margin-top: 2px;
}

.lightbox .counter-caption {
	display: none;
	font-size: .9em;
	padding: .3em 10px;
}

.lightbox  .close {
	display: inline-block;
 	position: absolute;
	right: 2.5%;
	bottom: 0;
	font-size: 1.5em;
	text-align: right;
	text-transform: uppercase;
	padding: .15em 10px;
}

.lightbox .counter-caption,
.lightbox  .close {
	color: #EDC493;
}

.lightbox  .close:hover,
.lightbox  .close:focus {
	color: #FFF;
}

.lightbox .prev,
.lightbox .next,
.lightbox .close {
	text-decoration: none;
	font-weight: bold;
	text-shadow: 2px 0 #333;
}

.lightbox .prev, .lightbox .next {
	display: none;
	position: absolute;
	width: 50%;
	height: 100%;
	top: 0;
	font-size: 6em;
	color: #FFF;
}

.lightbox .prev:hover, .lightbox .prev:focus,
.lightbox .next:hover, .lightbox .next:focus {
	color: #333;
}

.lightbox .prev {
	left: 0;
}

.lightbox .next {
	right: 0;
}

.lightbox .next:before,
.lightbox .prev:before {
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.lightbox .next:before {
	right: 10px;
	content:"\203A";
}

.lightbox .prev:before {
	left: 10px;
	content: "\2039";
}


.lightbox.prev-image .prev,
.lightbox.next-image .next {
	display: block;
}


@media only screen and (max-width: 1000px) {
	body {
		font-size: 20px;
	}

	.main-header icon-nav {
		background: #333;
	}
	.main-header .icon-nav {
		position: static;
		text-align: center;
		height: auto;
	}

	.main-header .big-header {
		text-align: center;
	}
}

@media only screen and (max-width: 500px) {
	body {
		font-size: 18px;
	}

	h1 { font-size: 2.25em; }
	h2 { font-size: 2em; }
	h3 { font-size: 1.75em; }
	h4 { font-size: 1.5em; }

	.col-1, .col-12 {
		width: 100%;
		display: block;
	}

	.col-12:first-child,
	.col-12:nth-child(2) {
		text-align: center;
	}

	.push-12 {
		margin-left: 0;
	}

	.col-padding {
		padding: 0;
	}

	.larger-text {
		font-size: 1.1em;
	}

	.button {
		font-size: 1em;
	}

 	.big-header {
		padding: .5em 0;
	}

	.full-size {
		height: auto;
	}

	.icon-nav .icon-box {
		margin: .5em .25em;
	}

	.icon-nav a, .icon-link {
		margin: .5em .25em;
	}

	.big-link {
		padding: .2em;
		font-size: 1.2em;
	}

	.max-text-width {
		padding: 0 2%;
		width: 96%;
	}

	.add-spacing {
		padding: 1.5em 1em;
	}

}


/******************** PRINT STYLESHEET **************************/

@media print {
	.big-header {
		text-align: center;
	}

	a[href^="#"] {
		display: none;
	}

	* {
		background: #FFF !important;
		color: #111 !important;
		border: 0 !important;
	}

	body {
		max-width: 800px;
		margin: 0 auto;
		font-size: 14px;
	}

	.bg-img {
		display: none;
	}

	img {
		border: 1px solid #333 !important;
	}

	h1 {
		text-align: center !important;
	}

	.button {
		margin: 0 !important;
		padding: 0 !important;
	}

	.drop-cap {
		padding: 0;
	}

	a {
		color: #333;
	}

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

	 [class*="icon-"] {
		display: none;
	 }
	.add-spacing {
		padding: 10px;
	}

}
