
*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

body {
	background: #fff;
	color: #a7a0a2;
	font-weight: 400;
	font-size: 1em;
	font-family: 'Lato', Arial, sans-serif;
}

a {
	color: #8e888a;
	text-decoration: none;
	outline: none;
}

a:hover, a:focus {
	color: #a7a0a2;
}


/*
=======
SideBar
=======
*/

#side-bar {
  position: absolute;
  padding: 0;
  margin: 0;
  left: 0;
  width: 30vw;
  border-right: 2px solid #bed1df;
  border-top: 2px solid #bed1df;
  border-bottom: 2px solid #bed1df;
  background-color: #424242;
  transition: left 0.5s;
  height: 100vh;
  z-index: 100;
  overflow-y: scroll;
}

#side-bar.hidden {
  left: -80vw;
}

.level-one {
  position: relative;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  list-style: none;
  cursor: pointer;
}

.level-one:hover {
  background: #3f8eb9;
  -webkit-box-shadow: inset 1px 1px 10px 1px rgba(0,0,0,0.45);
  -moz-box-shadow: inset 1px 1px 10px 1px rgba(0,0,0,0.45);
  box-shadow: inset 1px 1px 10px 1px rgba(0,0,0,0.45);
}

.level-one a {
  display: block;
  text-decoration: none;
  width: 75%;
  margin: 0 12.5% 0 12.5%;
  border-bottom: 1px solid #bed1df;
}

.level-one a img {
  margin: 10% 12.5% 10% 12.5%;
  width: 66%;
}

.level-one a span {
  color: #bed1df;
  font-size: 0.5em;
  font-weight: bold;
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
}

#side-button {
  position: fixed;
  width: 10vw;
  height: 10vw;
  top: 50px;
  left:50px;
  text-align: center;
  border: 2px solid #424242;
  border-radius: 2vw;
  transition: left 0.5s;
  z-index: 100;
  cursor: pointer;
}

#side-button.open {
  left: 35vw;
  background-color: #DDD;
}

#side-button .line {
  position: absolute;
  display: block;
  height: 5%;
  background-color: #424242;
  left: 20%;
  right: 20%;
  transition: transform 0.5s,
              opacity 0.5s;
}

.line-one {
  top: 25%;
}

.line-two {
  top: 50%!important;
}

.line-three {
  top: 75%!important;
}

.line-one.open {
  transform: rotate(45deg) translate(27%, 360%);
}

.line-two.open {
  opacity: 0;
}

.line-three.open {
  transform: rotate(-45deg) translate(27%, -360%);
}

#side-bar-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transition: background-color 0.5s;
  z-index: 90;
}

#side-bar-overlay.hidden {
  background-color: rgba(0, 0, 0, 0);
}

@media screen and (min-width: 480px) {
  #side-bar {
    width: 20vw;
  }

  #side-button {
    width: 8vw;
    height: 8vw;
  }

  #side-button.open {
    left: 25vw;
  }
}

@media screen and (min-width: 1025px) {
  #side-button {
    display: none;
  }
}


/*
====
Dock
====
*/


/* dock - all */
.dock {
	position: relative;
	height: 50px;
	text-align: center;
	z-index: 100;
}
.dock img {
	border: none;
}

/* dock2 - bottom */
#dock2 {
	width: 100%;
	bottom: 0px;
	position: fixed;
	left: 0px;
}
.dock-container2 {
	position: absolute;
	height: 50px;
	width: 240px;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	background: url(../img/dock-bg.gif);
	/*padding-left: 20px;*/
}
a.dock-item2 {
	display: block;
	font: bold 12px Arial, Helvetica, sans-serif;
	width: 40px;
	color: #424242;
	position: absolute;
	bottom: 1px;
	margin: 5px 0px 0px;
	text-align: center;
	text-decoration: none;
}
.dock-item2 span {
	display: none;
	font-size: 1.5em;
}
.dock-item2 img {
	display: block;
	border: none;
	width: 100%;
}

@media screen and (max-width: 1024px) {
	.dock {
		display: none;
	}
}


/*
==========
Photostack
==========
*/

@font-face {
	font-family: 'icons';
	src:url('../fonts/icons/icons.eot');
	src:url('../fonts/icons/icons.eot?#iefix') format('embedded-opentype'),
		url('../fonts/icons/icons.woff') format('woff'),
		url('../fonts/icons/icons.ttf') format('truetype'),
		url('../fonts/icons/icons.svg#icons') format('svg');
	font-weight: normal;
	font-style: normal;
}

.photostack {
	background: #ddd;
	position: relative;
	text-align: center;
	overflow: hidden;
}

.js .photostack {
	height: 100vh;
}

.photostack-start {
	cursor: pointer;
}

/* Wrapper and figures */

/* The size of this wrapper can be smaller if the items should not be scattered across the whole container */
.photostack > div {
	width: 100%;
	height: 100%;
	margin: 0 auto;
}

.photostack figure {
	width: 320px;
	height: 360px;
	position: relative;
	display: inline-block;
	background: #fff;
	padding: 40px;
	text-align: center;
	margin: 5px;
}

.js .photostack figure {
	position: absolute;
	display: block;
	margin: 0;
}

.photostack figcaption h2 {
	margin: 20px 0 0 0;
	color: #a7a0a2;
	font-size: 16px;
}

.photostack-img {
	outline: none;
	display: block;
	width: 240px;
	height: 240px;
	background: #f9f9f9;
}

.photostack-back {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #fff;
	font-family: "Give You Glory", cursive;
	color: #a7a0a2;
	padding: 50px 40px;
	text-align: left;
	font-size: 22px;
	line-height: 1.25;
	z-index: 1;
}

.photostack-back p {
	margin: 0;
}

.photostack-back p span {
	text-decoration: line-through;
}

/* Navigation dots */
.photostack nav {
	display: none;
	position: absolute;
	width: 100%;
	bottom: 30px;
	z-index: 90;
	text-align: center;
	left: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.photostack nav span {
	position: relative;
	display: inline-block;
	margin: 0 5px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	background: #aaa;
	border-radius: 50%;
	text-align: center;
	-webkit-transition: -webkit-transform 0.6s ease-in-out, background 0.3s;
	transition: transform 0.6s ease-in-out, background 0.3s;
	-webkit-transform: scale(0.48);
	transform: scale(0.48);
}

.photostack nav span:last-child {
	margin-right: 0;
}

.photostack nav span::after {
	content: "\e600";
	font-family: 'icons';
	font-size: 80%;
	speak: none;
	display: inline-block;
	vertical-align: top;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 30px;
	color: #fff;
	opacity: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.photostack nav span.current {
	background: #888;
	-webkit-transform: scale(1);
	transform: scale(1);
}

.photostack nav span.current.flip {
	-webkit-transform: scale(1) rotateY(-180deg) translateZ(-1px);
	transform: scale(1) rotateY(-180deg) translateZ(-1px);
	background: #555;
}

.photostack nav span.flippable::after {
	opacity: 1;
	-webkit-transition-delay: 0.4s;
	transition-delay: 0.4s;
}

/* Overlays */

/* Initial overlay on photostack container */
.js .photostack::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	top: 0;
	left: 0;
	z-index: 100;
	-webkit-transition: opacity 0.3s, visibility 0s 0.3s;
	transition: opacity 0.3s, visibility 0s 0.3s;
}

.js .photostack-start::before {
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

/* Button on photostack container */
.js .photostack::after {
	content: 'View Gallery';
	font-weight: 400;
	position: absolute;
	border: 3px solid #fff;
	text-align: center;
	white-space: nowrap;
	left: 50%;
	top: 50%;
	-webkit-transform: translateY(-50%) translateX(-50%);
	transform: translateY(-50%) translateX(-50%);
	padding: 10px 20px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	z-index: 101;
}

.js .photostack::before,
.js .photostack::after {
	opacity: 0;
	visibility: hidden;
}

.js .photostack-start::before,
.js .photostack-start:hover::after,
.touch .photostack-start::after  {
	opacity: 1;
	visibility: visible;
}

/* Overlay on figure */
.photostack figure::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	visibility: visible;
	opacity: 1;
	background: rgba(0,0,0,0.05);
	-webkit-transition: opacity 0.6s;
	transition: opacity 0.6s;
}

/* Hide figure overlay when it becomes current */
figure.photostack-current::after {
	-webkit-transition: opacity 0.6s, visibility 0s 0.6s;
	transition: opacity 0.6s, visibility 0s 0.6s;
	opacity: 0;
	visibility: hidden;
}

/* Special classes for transitions and perspective */
.photostack-transition figure {
	-webkit-transition: -webkit-transform 0.6s ease-in-out;
	transition: transform 0.6s ease-in-out;
}

.photostack-perspective {
	-webkit-perspective: 1800px;
	perspective: 1800px;
}

.photostack-perspective > div,
.photostack-perspective figure {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.photostack-perspective figure,
.photostack-perspective figure div {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.photostack-perspective figure.photostack-flip {
	-webkit-transform-origin: 0% 50%;
	transform-origin: 0% 50%;
}

.csstransformspreserve3d figure.photostack-flip .photostack-back {
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
	display: block;
}

.no-csstransformspreserve3d figure.photostack-showback .photostack-back {
	display: block;
}

/* The no-JS fallback look does not need to be boring ;) */
.no-js .photostack figure {
	box-shadow: -2px 2px 0 rgba(0,0,0,0.05);
}

.no-js .photostack figure::after {
	display: none;
}

.no-js .photostack figure:nth-child(3n) {
	-webkit-transform: translateX(-10%) rotate(5deg);
	transform: translateX(-10%) rotate(5deg);
}

.no-js .photostack figure:nth-child(3n-2) {
	-webkit-transform: translateY(10%) rotate(-3deg);
	transform: translateY(10%) rotate(-3deg);
}


@media screen and (max-width: 767px) {
	.photostack nav {
		display: block;
	}
}

@media screen and (orientation: landscape) and (max-width: 767px) {
	.photostack nav {
		bottom: 0px;
	}
}
