/*! HTML5 Boilerplate v5.3.0 | 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
 *
 * These selection rule sets have to be separate.
 * 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: 'helen2_bgcondensed';
	src: url('../font/helen2_bg_cond-webfont.eot');
	src: url('../font/helen2_bg_cond-webfont.eot?#iefix') format('embedded-opentype'),
	     url('../font/helen2_bg_cond-webfont.woff2') format('woff2'),
	     url('../font/helen2_bg_cond-webfont.woff') format('woff'),
	     url('../font/helen2_bg_cond-webfont.ttf') format('truetype'),
	     url('../font/helen2_bg_cond-webfont.svg#helen2_bgcondensed') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'intro_rust_bookbase';
	src: url('../font/fontfabric_-_intro_rust_book_base-webfont.eot');
	src: url('../font/fontfabric_-_intro_rust_book_base-webfont.eot?#iefix') format('embedded-opentype'),
	     url('../font/fontfabric_-_intro_rust_book_base-webfont.woff2') format('woff2'),
	     url('../font/fontfabric_-_intro_rust_book_base-webfont.woff') format('woff'),
	     url('../font/fontfabric_-_intro_rust_book_base-webfont.ttf') format('truetype'),
	     url('../font/fontfabric_-_intro_rust_book_base-webfont.svg#intro_rust_bookbase') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
  font-family: 'fontello';
  src: url('../font/fontello.eot?38229597');
  src: url('../font/fontello.eot?38229597#iefix') format('embedded-opentype'),
       url('../font/fontello.woff2?38229597') format('woff2'),
       url('../font/fontello.woff?38229597') format('woff'),
       url('../font/fontello.ttf?38229597') format('truetype'),
       url('../font/fontello.svg?38229597#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'fontello';
    src: url('../font/fontello.svg?38229597#fontello') format('svg');
  }
}
*/
 
 [class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
 
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
 
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
 
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
 
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
 
.icon-close:before { content: '\e800'; } /* '' */
.icon-menu:before { content: '\e801'; } /* '' */
.icon-down:before { content: '\e802'; } /* '' */
.icon-youtube:before { content: '\f166'; } /* '' */
.icon-instagram:before { content: '\f16d'; } /* '' */
.icon-facebook:before { content: '\f230'; } /* '' */

html, body {
	width: 100%;
	height: 100%;
	min-height: 100%;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
body {
	color: #004b23;
	background: #fff url(../img/bg.jpg) no-repeat fixed 50% 50%;
	background-size: cover;
	font-family: 'helen2_bgcondensed', Verdana, Arial, sans-serif;
}
.temp-page #page {
	width: 100%;
	height: 100%;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	
	font-size: 1.750em; /* 28px */
}
.wrapper-center {
	box-sizing: border-box;
	padding: 0 5%;
	width: 100%;
	height: auto;
	position: absolute;
	top: 50%;
	left: 0;
	z-index: 1;
	text-align: center;
	
	-webkit-transform: translate(0, -50%);
	transform: translate(0, -50%);
}
.temp-page #site-title, 
.site-title {
	margin: 0 auto;
	padding: 0;
	width: 184px;
	height: 147px;
}
.allCaps {
	text-transform: uppercase;
}
#AG {
	width: 100%;
	height: 100%;
	background: #fff url(../img/bg.jpg) no-repeat fixed 50% 50%;
	background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	font-size: 1.750em; /* 28px */
}
#AG p {
	margin: 0.643em 0; /* 18px 0 */
	line-height: 1em;
}
input[type='number']::-webkit-inner-spin-button, 
input[type='number']::-webkit-outer-spin-button { 
	-webkit-appearance: none; 
	margin: 0; 
}
input[type='number'] {
	-moz-appearance:textfield;
}
#age_test {
	display: block;
	box-sizing: border-box;
	margin: 0 auto 0.171em; /* 0 auto 18px */
	padding: 0.095em; /* 10px */
	border: 0.076em solid #004b23; /* 8px */
	width: 4em;
	border-radius: 0.343em; /* 36px */
	color: #004b23;
	background: transparent;
	font-size: 3.750em; /* 105px */
	line-height: 1em;
	text-align: center;
}
#age_btn {
	display: block;
	box-sizing: border-box;
	margin: 0 auto;
	padding: .5em 2em;
	border: 0;
	border-radius: 1em;
	line-height: 1em;
	color: #fff;
	background: #004b23;
	text-align: center;
	text-transform: uppercase;
	
	-webkit-box-shadow: 0 9px 10px 0 rgba(0,0,0,0.26);
	box-shadow: 0 9px 10px 0 rgba(0,0,0,0.26);
}
.shake {
	-webkit-animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
	animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	-webkit-perspective: 1000px;
	perspective: 1000px;
}

@-webkit-keyframes shake {
	10%, 90% {
		-webkit-transform: translate3d(-1px, 0, 0);
	}
	
	20%, 80% {
		-webkit-transform: translate3d(2px, 0, 0);
	}
	
	30%, 50%, 70% {
		-webkit-transform: translate3d(-4px, 0, 0);
	}
	
	40%, 60% {
		-webkit-transform: translate3d(4px, 0, 0);
	}
}
@keyframes shake {
	10%, 90% {
		transform: translate3d(-1px, 0, 0);
	}
	
	20%, 80% {
		transform: translate3d(2px, 0, 0);
	}
	
	30%, 50%, 70% {
		transform: translate3d(-4px, 0, 0);
	}
	
	40%, 60% {
		transform: translate3d(4px, 0, 0);
	}
}

.counter {
	margin: 0.643em 0; /* 18px 0 */
	line-height: 1em;
}
#days-left {
	display: block;
	margin: 0.171em auto; /* 18px auto */
	padding: 0.095em 0; /* 10px */
	border: 0.076em solid #004b23; /* 8px */
	width: 1.5em;
	border-radius: 0.343em; /* 36px */
	font-size: 3.750em; /* 105px */
	line-height: 1em;
}

#legal {
	width: 235px;
	position: absolute;
	bottom: 7px;
	right: 10px;
	z-index: 2;
}
#legal img {
	max-width: 235px;
	height: auto;
}
#site-header {
	width: 180px;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	background: #fff url(../img/header.jpg) repeat-x fixed 0 0;
	background-size: auto 100%;
	
	-webkit-transform: translate(0, 0);
	-webkit-transition: -webkit-transform .5s ease-in;
	
	transform: translate(0, 0);
	transition: transform .5s ease-in;
}
#site-title {
	margin: 20px 15px 25px;
	padding: 0;
	font-size: 1em;
	line-height: 1em;
}
.offset #menu_btn:after {
	content: '\e800';
}
#menu_btn {
	margin: 0;
	padding: 0;
	display: block;
	border: 0;
	position: absolute;
	top: 10px;
	left: 190px;
	z-index: 1;
	background: transparent;
	font-size: 2em;
}
#menu_btn:after {
/* 	text-shadow: 1px 2px 5px #000000; */
	content: '\e801';
	
	font-family: "fontello";
	font-style: normal;
	font-weight: normal;
	speak: none;
	
	display: inline-block;
	text-decoration: inherit;
	width: 1em;
	text-align: center;
	/* opacity: .8; */
	
	/* For safety - reset parent styles, that can break glyph codes*/
	font-variant: normal;
	text-transform: none;
	
	/* fix buttons height, for twitter bootstrap */
	line-height: 1em;
	
	/* Animation center compensation - margins should be symmetric */
	/* remove if not needed */
	
	/* you can be more comfortable with increased icons size */
	/* font-size: 120%; */
	
	/* Font smoothing. That was taken from TWBS */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#menu, 
#menu li, 
#social, 
#social li {
	list-style: none;
}
#menu {
	margin: 0 15px 20px;
	padding: 30px 0;
	border-top: 2px solid #004b23;
	border-bottom: 2px solid #004b23;
	font-size: 1.875em; /* 30px */
	line-height: 1em;
	font-weight: 300;
	text-transform: uppercase;
	text-align: center;
}
#menu li {
	margin-top: 0.333em; /* 10px */
}
#menu li:first-child {
	margin-top: 0;
}
#menu a:link, 
#menu a:visited, 
#menu a:hover, 
#menu a:focus, 
#menu a:active {
	color: #063e04;
	text-decoration: none;
}
#menu .current-page {
	font-weight: 600;
}
#social {
	margin: 0;
	padding: 0;
	font-size: 2em;
	text-align: center;
}
#social li {
	margin: 0;
	padding: 0;
	display: inline-block;
}
#social a:link, 
#social a:visited, 
#social a:hover, 
#social a:focus, 
#social a:active {
	color: #063e04;
	text-decoration: none;
}
#content {
	margin-left: 180px;
	padding-left: 5%;
}
#page {
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
}
.page-map #page {
	width: 100%;
	height: 100%;
}
.page-map #content {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}
h2 {
	margin: 0 0 .5em;
	padding: 2em 0 0;
	font-size: 2.813em; /* 45px */
	font-size: 2.500em; /* 40px */
	line-height: 1em;
	font-weight: 300;
	letter-spacing: -.01em;
	text-transform: uppercase;
}
.page-contacts h2 {
	margin-left: 115px;
	text-align: center;
}
#contact_form {
	width: 455px;
}
#contact_form a:link, 
#contact_form a:visited, 
#contact_form a:hover, 
#contact_form a:focus, 
#contact_form a:active {
	color: #063e04;
	text-decoration: underline;
}
#contact_form p {
	margin: 0 0 0.800em; /* 16px */
	overflow: hidden;
	font-size: 1.250em; /* 20px */
}
#contact_form .controls {
	overflow: visible;
	font-size: 1.500em; /* 24px */
	text-align: right;
}
#contact_form label {
	display: block;
	width: 100px;
	float: left;
	text-align: left;
}
#contact_form input, 
#contact_form textarea {
	display: block;
	border: 2px solid rgba(0, 0, 0, .2);
	width: 340px;
	box-sizing: border-box;
	float: right;
	background: rgba(199, 170, 92, .2);
	outline: none;
}
#contact_form small {
	margin: 1em 0;
	display: block;
	clear: both;
	font-size: 1em;
	text-align: right;
}
#send_btn {
	display: inline-block;
	margin: 0;
	padding: .25em 1em;
	border: 0;
	border-radius: 1em;
	color: #fff;
	background: #004b23;
	text-transform: uppercase;
	-webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
	box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
}
#address {
	margin-left: 5%;
	position: absolute;
	bottom: 10px;
	left: 180px;
	z-index: 1;
	font-size: 1.250em; /* 20px */
	line-height: 1.100em; /* 22px */
}
#address b {
	font-weight: 600px
}

#info {
	margin: 0;
	position: absolute;
	bottom: 0;
	left: 80px;
	z-index: 101;
}
#rules {
	width: 48%;
	max-width: 529px;
	position: absolute;
	top: 0;
	left: 20%;
	z-index: 1;
}
#frame {
	
}
.wrapper-rules {
	width: 100%;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
}
.rules {
	padding: 0 5%;
	width: 70%;
	height: 54%;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	overflow: scroll;
	-webkit-overflow-scrolling: touch;
	
	-webkit-transform: translate(-50%, -40%);
	transform: translate(-50%, -40%);
	
	font-family: 'intro_rust_bookbase';
	text-transform: uppercase;
	text-align: center;
}
.rules {
/*
	margin: 160px 50px 0 0;
	padding: 0 30px 20px 80px;
	height: 320px;
	overflow: scroll;
	position: relative;
	top: 0;
	left: 0;
	z-index: 2;
*/
	
}
.rules a:link, 
.rules a:visited, 
.rules a:hover, 
.rules a:focus, 
.rules a:active {
	color: #004b23;
}

#map_container {
	position: relative;
	width: 100%;
	height: 100%;
}
#map_filter,
#map {
	position: absolute;
	width: 100%;
	height: 100%;
}
#map_filter {
	background-color: #b9d30d;
	mix-blend-mode: multiply;
	opacity: .5;
	pointer-events: none;
}
.locations-list {
	position: absolute;
	top: 1em;
	right: 30px;
	z-index: 1;
	font-size: 1.500em;
}
.locations-list p {
	margin: 0 0 .5em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 1px 2px 5px #000000;
}
#cities, 
#cities li {
	margin: 0;
	padding: 0;
	list-style: none;
}
#cities {
	padding: 1em 0;
	background: #fff;
	height: 10em;
	overflow: scroll;
	-webkit-overflow-scrolling: touch;
	position: relative;
	top: -1em;
	left: 0;
	z-index: 1;
	-webkit-border-radius: 0 0 1em 1em;
	border-radius: 0 0 1em 1em;
	text-align: right;
}
#cities li {
	padding: 0 1em;
	cursor: pointer;
}
#location_btn:link, 
#location_btn:visited, 
#location_btn:hover, 
#location_btn:focus, 
#location_btn:active {
	display: block;
	padding: .25em .5em .25em 1em;
	-webkit-border-radius: 1.25em;
	border-radius: 1.25em;
	position: relative;
	top: 0;
	left: 0;
	z-index: 2;
	color: #004b23;
	background: #fff;
	text-transform: uppercase;
	text-decoration: none;
	text-align: right;
}

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * 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;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * 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: 1024px) {
	.page-rules {
		background: #fff url(../img/rules-desktop.jpg) no-repeat fixed 70% 100%;
		background-size: cover;
	}
	.page-contacts {
		background: #fff url(../img/contacts-desktop.jpg) no-repeat fixed 100% 100%;
		background-size: cover;
	}
	.page-home {
		background: #fff url(../img/home-desktop.jpg) no-repeat fixed 70% 100%;
		background-size: cover;
	}
	#menu_btn {
		display: none;
	}
}
@media only screen and (max-width: 1023px) {
	#site-header {
		-webkit-transform: translate(-180px, 0);
		transform: translate(-180px, 0);
	}
	
	.offset #site-header {
		-webkit-transform: translate(0, 0);
		transform: translate(0, 0);
	}
	.page-rules {
		background: #fff url(../img/rules-mobile.jpg) no-repeat fixed 50% 100%;
		background-size: cover;
	}
	.page-home {
		background: #fff url(../img/home-mobile.jpg) no-repeat fixed 50% 100%;
		background-size: cover;
	}
	#content {
		margin-left: 0;
		padding: 0 5%;
	}
	#contact_form {
		margin: 0 auto;
		width: 100%;
		max-width: 455px;
	}
	#contact_form input, 
	#contact_form textarea {
		max-width: 340px;
		width: 100%;
	}
	#address {
		margin: 0 auto;
		max-width: 455px;
		padding: 1em 0 2em;
		position: static;
	}
	.locations-list {
		font-size: 1em;
	}
	#rules {
		margin: 0 auto;
		width: 100%;
		left: 50%;
		
		-webkit-transform: translate(-50%, 0);
		transform: translate(-50%, 0);
	}
	
	#legal {
		right: 0;
		width: 100%;
	}
	#legal img {
		margin: 0 auto;
	}
	#info {
		width: 100%;
		max-width: 469px;
		left: 50%;
		-webkit-transform: translate(-50%, 0);
		transform: translate(-50%, 0);
		-webkit-animation: fadeIn .5s 2s linear forwards;
		animation: fadeIn .5s 2s linear forwards;
		opacity: 0;
		z-index: 1;
	}
	@-webkit-keyframes fadeIn {
		0% {
			opacity: 0;
		}
		100% {
			opacity: 1;
		}
	} 
	@keyframes fadeIn {
		0% {
			opacity: 0;
		}
		100% {
			opacity: 1;
		}
	} 
}
@media only screen and (max-width: 736px) {
	.temp-page #app, 
	#AG {
		font-size: 1em;
	}
}
@media only screen and (max-width: 480px) {
	#contact_form h2 {
		margin-left: 0;
	}
	#contact_form label, 
	#contact_form input, 
	#contact_form textarea {
		float: none;
		max-width: 100%;
	}
}
@media only screen and (max-height: 720px) and (min-width: 1024px) {
	#info {
		left: 200px;
	}
}
@media only screen and (max-height: 736px) and (max-width: 736px) {
	.page-contacts #page {
		overflow: visible;
		height: auto;
	}
}

@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,
    *:first-letter,
    *:first-line {
        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,
    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;
    }

    img {
        max-width: 100% !important;
    }

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

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