html, body {
  height: 100%; }

body {
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -ms-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -o-font-smoothing: antialiased;
  font-smoothing: antialiased; }

@media only screen and (-webkit-min-device-pixel-ratio: 1.25), only screen and (min-device-pixel-ratio: 1.25), only screen and (min-resolution: 200dpi), only screen and (min-resolution: 1.25dppx) {
  -webkit-font-smoothing: subpixel-antialiased;
  -ms-font-smoothing: subpixel-antialiased;
  -moz-font-smoothing: subpixel-antialiased;
  -o-font-smoothing: subpixel-antialiased;
  font-smoothing: subpixel-antialiased; }
.background {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: url("images/background_lowres.jpg") #597e5d bottom center;
  bottom: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  -webkit-background-size: cover;
  -ms-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover; }

.background.hires {
  background-color: transparent;
  -webkit-background-size: cover;
  -ms-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover; }

.foreground-left {
  position: absolute;
  bottom: 0;
  left: 0;
  max-height: 100%;
  max-width: 14%;
  pointer-events: none;
  z-index: 10; }

.foreground-right {
  position: absolute;
  top: 0;
  right: 0;
  max-height: 100%;
  max-width: 14%;
  pointer-events: none;
  z-index: 10; }

.fog {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: 0 center;
  opacity: 0.5;
  z-index: 7;
  -webkit-animation: animatedFog 130s linear infinite;
  -moz-animation: animatedFog 130s linear infinite;
  -ms-animation: animatedFog 130s linear infinite;
  animation: animatedFog 130s linear infinite;
  -ms-animation: none;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0); }

.fog.parallax {
  opacity: 0.8;
  z-index: 8;
  -webkit-animation: animatedFog 100s linear infinite;
  -moz-animation: animatedFog 100s linear infinite;
  -ms-animation: animatedFog 100s linear infinite;
  animation: animatedFog 100s linear infinite;
  background-position: 0 -740px;
  -ms-animation: none;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0); }

#treeImage {
  z-index: 3;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%); }

.container {
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
  height: 100%; }

.tree {
  max-height: 100%;
  max-width: 100%;
  margin: auto 0; }

.leaf {
  position: absolute;
  width: 1px;
  height: 1px;
  perspective: 200;
  font-size: 10px;
  opacity: 1;
  -webkit-transition: opacity 0.4s 0.4s;
  -ms-transition: opacity 0.4s 0.4s;
  -moz-transition: opacity 0.4s 0.4s;
  -o-transition: opacity 0.4s 0.4s;
  transition: opacity 0.4s 0.4s; }

.leaf-node .dark {
  width: 100%;
  height: 70%;
  display: block;
  -webkit-transition: all 10s;
  -ms-transition: all 10s;
  -moz-transition: all 10s;
  -o-transition: all 10s;
  transition: all 10s; }

.new.leaf-node .dark {
  z-index: 10000; }

.leaf.fallout {
  opacity: 0;
  left: 50% !important;
  top: 3000px !important;
  -webkit-transition: top 3s, opacity 0.5s 3s, left 3s;
  -ms-transition: top 3s, opacity 0.5s 3s, left 3s;
  -moz-transition: top 3s, opacity 0.5s 3s, left 3s;
  -o-transition: top 3s, opacity 0.5s 3s, left 3s;
  transition: top 3s, opacity 0.5s 3s, left 3s; }

.tribute-leaf {
  background: url(images/normal_leaf_rotated.png) no-repeat center center;
  height: 512px;
  width: 315px;
  position: absolute;
  bottom: -700px;
  z-index: 9999;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: bottom 0.6s;
  -ms-transition: bottom 0.6s;
  -moz-transition: bottom 0.6s;
  -o-transition: bottom 0.6s;
  transition: bottom 0.6s; }

.tribute-leaf.active {
  bottom: -20px;
  transition: bottom 0.4s 0.7s; }

.tribute-leaf .inner {
  padding: 120px 60px 120px 50px;
  max-height: 180px; }

#tributeText {
  color: #fff;
  text-shadow: 1px 1px #000;
  font-size: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  word-break: break-word;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%); }

#tributeText.visible {
  opacity: 1; }

#leafContainer {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 8;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%); }

.leaf .leaf-node {
  position: absolute;
  top: .9em;
  left: -.9em;
  right: 0;
  bottom: 0;
  height: 3em;
  width: 2em;
  border-radius: 50%;
  cursor: pointer;
  -webkit-transition: transform 1s;
  -ms-transition: transform 1s;
  -moz-transition: transform 1s;
  -o-transition: transform 1s;
  transition: transform 1s;
  -webkit-transform-origin: 50% -30%;
  -ms-transform-origin: 50% -30%;
  -moz-transform-origin: 50% -30%;
  -o-transform-origin: 50% -30%;
  transform-origin: 50% -30%; }

.leaf .leaf-node:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1); }

/* visible leaf (image) */
.leaf .leaf-node:after, .leaf .leaf-node span:after {
  content: "";
  position: absolute;
  top: -.7em;
  left: -.3em;
  right: 0;
  bottom: 0;
  margin: auto;
  height: 4em;
  width: 2.5em;
  background: url(images/leaf-normal.png) no-repeat center center;
  background-size: cover;
  pointer-events: none;
  -webkit-animation: rustling  4s ease-in-out 0s  infinite;
  -moz-animation: rustling  4s ease-in-out 0s  infinite;
  -ms-animation: rustling  4s ease-in-out 0s  infinite;
  animation: rustling  4s ease-in-out 0s  infinite;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0); }

.leaf.type2 .leaf-node:after {
  background-image: url(images/leaf-light.png); }

.leaf.type3 .leaf-node:after {
  background-image: url(images/leaf-normal2.png); }

.leaf .leaf-node span:after,
.leaf.type2 .leaf-node span:after,
.leaf.type3 .leaf-node span:after {
  background-image: url(images/leaf-dark.png);
  opacity: 0;
  z-index: 100;
  -webkit-transition: opacity 0.5s ease-in-out;
  -ms-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  -o-transition: opacity 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out; }

.leaf .grow.leaf-node span:after,
.leaf.type2 .grow.leaf-node span:after,
.leaf.type3 .grow.leaf-node span:after {
  background-image: url(images/leaf-mine-dark.png);
  opacity: 0;
  z-index: 100;
  -webkit-transition: opacity 0.5s ease-in-out;
  -ms-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  -o-transition: opacity 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out; }

.leaf .leaf-node:hover span.dark:after {
  opacity: 1; }

.leaf.selected-leaf .leaf-node:after, .leaf.type2.selected-leaf .leaf-node:after, .leaf.type3.selected-leaf .leaf-node:after {
  background-image: url(images/leaf-selected.png); }

#tributeArea {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: url(images/normal_leaf.png) no-repeat;
  background-size: contain;
  z-index: 10;
  max-width: 460px;
  color: #222; }

.leaf.type1 .grow.leaf-node:after, .leaf.type2 .grow.leaf-node:after, .leaf.type3 .grow.leaf-node:after {
  background-image: url(images/leaf-mine.png); }

#tributeArea > div {
  height: 100%; }

#tributeArea .inner {
  padding: 28% 0 0 0;
  width: 100%;
  height: 100%;
  position: relative;
  max-width: 460px; }

#tributeArea .inner .btn:focus, #tributeArea .inner .btn:active {
  outline: 0;
  box-shadow: none; }

#tributeArea .inner .btn {
  background: none;
  border: none;
  background: url(images/normal_leaf_skicka.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  bottom: 35px;
  width: 70px;
  height: 24px;
  right: 60px;
  text-indent: -9999px; }

p.row {
  font-family: 'Nothing You Could Do', cursive;
  word-break: break-word; }

textarea#input {
  width: 100%;
  height: 29%;
  background: none;
  font-family: 'Nothing You Could Do', cursive;
  outline: none;
  position: absolute;
  top: 38%;
  border: 0;
  opacity: 1;
  z-index: 99;
  font-size: 1.2em;
  line-height: 1.2em;
  display: block !important;
  padding: 0 10%;
  font-weight: bold;
  word-break: break-word; }

#tribute {
  font-family: 'Nothing You Could Do', cursive;
  z-index: 1;
  font-size: 1.2em;
  line-height: 1.2em;
  word-break: break-word;
  text-align: center;
  font-weight: bold; }

/* Extra small devices (phones, less than 768px) */
@media (max-width: 767px) and (orientation: portrait) {
  #tributeArea {
    position: absolute;
    top: 60px;
    left: 50%;
    width: 70%;
    height: 200px;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%); }

  #tributeArea .inner {
    padding-top: 33%;
    padding-left: 5%; }

  textarea#input {
    width: 100%;
    height: 60px;
    top: 29%;
    font-size: 0.8em;
    line-height: 1.2em;
    font-size: 4vw;
    line-height: 4.5vw; }

  #tributeArea .inner .btn {
    top: 50%;
    right: 50px;
    width: 36px;
    height: 12px; }

  #tribute {
    font-size: 0.8em;
    line-height: 1.2em;
    font-size: 4vw;
    line-height: 4.5vw; }

  #tributeArea p {
    font-size: 0.8em;
    line-height: 1.2em;
    font-size: 4vw;
    line-height: 4.5vw; } }
@media (max-width: 767px) and (orientation: landscape) {
  #tributeArea {
    width: 260px;
    height: 150px; }

  #tributeArea .inner {
    padding-top: 33%;
    padding-left: 8%;
    padding-right: 4%; }

  #tribute {
    font-size: 0.9em;
    line-height: 1.2em; }

  #tributeArea p {
    font-size: 0.9em;
    line-height: 1.2em; } }
/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
  #tributeArea {
    width: 310px;
    height: 170px; }

  #tributeArea p {
    font-size: 1em;
    line-height: 1.2em; } }
/* Medium devices (desktops / tablet landscape, 992px and up) */
@media (min-width: 992px) {
  #tributeArea {
    width: 430px;
    height: 230px; }

  #tributeArea p {
    font-size: 1.2em;
    line-height: 1.4em; } }
@media (min-width: 1024px) {
  p.row2, p.row3, p.row4, p.row5 {
    font-size: 1.2em;
    line-height: 1.4em; } }
textarea::-ms-clear {
  display: none; }

#remembrance {
  background: none;
  border: 0;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
  -ms-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -o-font-smoothing: antialiased;
  font-smoothing: antialiased; }

textarea::-webkit-input-placeholder {
  color: #fff;
  opacity: 1; }

textarea::-moz-placeholder {
  color: #fff;
  opacity: 1; }

textarea::-ms-input-placeholder {
  color: #fff;
  opacity: 1; }

::-ms-clear {
  display: none; }

#remembrance.hidden, #tribute.hidden {
  opacity: 0; }

.leaf-hidden a {
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  -moz-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0); }

#sound {
  cursor: pointer;
  position: absolute;
  bottom: 60px;
  left: 20px;
  background: url(images/sound.png) no-repeat -36px 0;
  height: 36px;
  width: 36px;
  z-index: 9999;
  background-size: 72px 36px; }

#sound.on {
  background-position: 0 0; }

#info {
  cursor: pointer;
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: url(images/info.png) no-repeat;
  height: 36px;
  width: 36px;
  z-index: 9999; }

#logos {
  position: absolute;
  bottom: 60px;
  height: 285px;
  display: none;
  transition: opacity 0.3s;
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  min-width: 210px; }

#logos p {
  font-style: italic; }

#logos a {
  color: #000; }

#logos.visible {
  display: block; }

#logos .logo {
  width: 100%;
  height: 50px;
  margin: 15px 0; }

#logos .logo.logo1 {
  background: url(images/loggastiftelse.jpg) no-repeat center center;
  background-size: contain; }

#logos .logo.logo2 {
  background: url(images/stod.png) no-repeat;
  background-size: contain;
  margin-bottom: 8px; }

#logos .logo.logo3 {
  background: url(images/eu_ung.png) no-repeat;
  background-size: contain;
  margin-bottom: 0px;
  width: 130px; }
