html {
    font-size: 16px;
    overflow-y: hidden;
    overflow-x: hidden;
    height: 100vh;
    font-family: 'Bitter', serif;
}

* {
    padding: 0;
    margin: 0;
}

p {
  font-weight: bold;
  color: transparent;
  background: #A62A00;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 3px 3px rgba(255,255,255,0.5);
}

/* footer */

footer {
  pointer-events: none;
}

.top-footer {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: space-between;
}

.bottom-footer {
  position: absolute;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: space-around;
}

.wood {
  background-color: #F3B96F;
  padding: 10px;
  margin: 15px;
  width: 150px;
  height: 20px;
  /* box-shadow: offset-x offset-y blur spread color position; */
  box-shadow: -2px 2px 6px 0 #A62A00;
}

/* countdown for game */
#countdown {
  position: absolute;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
}

.countdown-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(116, 245, 66, 0.5);
}


h2 {
  z-index: 2;
  animation-name: countdown;
  opacity: 0;
}

#c3 {
  animation-duration: 1.1s;
}

#c2 {
  animation-delay: 1.1s;
  animation-duration: 1s;
}

#c1 {
  animation-delay: 2.1s;
  animation-duration: 0.9s;
}

@keyframes countdown {
  0% {
    opacity: 1;
    transform: scale(0.5);
  }
  100% {
    opacity: 100%;
    transform: scale(10);
  }
}

/* sign on footer */
#highscore {
  background-image: url('img//layer-2/sign-head.svg');
  width: 500px;
  height: 250px;
  position: fixed;
  top: 5%;
  left: 22%;
  margin: auto;
  font-size: 1.5em;
  display: none;
  flex-direction: column;
  justify-content: center;
}

#highscore > button {
  margin: 5px;
}

#game-score {
  margin-left: 20%;
  margin-right: 20%;
}

#game-score .p {
	margin-bottom: 24px;
}
#TimerBox {
  justify-self: right;
}

.credits {
  pointer-events: all;
  align-self: flex-end;
}

span {
  pointer-events: all;
  color: rgb(235, 235, 235);
  font-family: monospace;
}

.overlay{
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5); /*dim the background*/
}


/*layer 1*/

/* #layer-1 {
} */

#harry-full {
    position: fixed;
    /* top: 75%; */
    top: 75vh;
    left: 10vw;
}

@media screen and (min-height: 750px) {
  #harry-full {
    top: 80vh;
  }
}

@media screen and (min-height: 1000px) {
  #harry-full {
    top: 85vh;
  }
}

#harry-face {
    width: 80px;
    position: absolute;
    bottom: 100px;
    left: -30px;
}

/* stickfigure  */

.box div {
  background: black;
  border-radius: 1rem;
  width: 1rem;
}

.box {
  background: none;
  border-radius: 0;
  height: 16rem;
  left: 12.5%;
  position: absolute;
  top: 63.3%;
  transform: translateX(-50%) translateY(-50%);
  width: 20rem;
  pointer-events: none;
}

.body {
  height: 7rem;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background-color: black;
}

.body .arm {
  height: 4.6rem;
  position: absolute;
  top: 0;
  transform-origin: .5rem .5rem;
  transform: rotate(180deg);
}

.body .arm:after {
  background: black;
  border-radius: 2rem;
  content: "";
  height: 4.6rem;
  position: absolute;
  top: 3.6rem;
  transform-origin: .5rem .5rem;
  width: 1rem;
}

.body .leg {
  height: 5.6rem;
  position: absolute;
  top: 6rem;
  transform-origin: .5rem .5rem;
}

.body .leg:after {
  background: black;
  border-radius: 2rem;
  content: "";
  height: 5.6rem;
  position: absolute;
  top: 4.6rem;
  transform-origin: .5rem .5rem;
  width: 1rem;
}


.body.walk {
  animation: walkBody .5s ease-in-out infinite alternate;
}

.body.stand {
  transform: translateY(-.3rem);
}


.body.walk .arm.left {
  animation: walkArmUpperLeft 1s linear infinite alternate;
}

.body.stand .arm.left {
  transform: rotate(-20deg);
}


.body.walk .arm.left:after {
  animation: walkArmLowerLeft 2s ease-in-out infinite;
}

.body.stand .arm.left:after {
  transform: rotate(2deg);
}


.body.walk .arm.right {
  animation: walkArmUpperRight 1s linear infinite alternate;
}

.body.stand .arm.right {
  transform: rotate(20deg);
}


.body.walk .arm.right:after {
  animation: walkArmLowerRight 2s ease-in-out infinite;
}

.body.stand .arm.right:after {
  transform: rotate(-2deg);
}


.body.walk .leg.left {
  animation: walkLegUpperLeft 1s linear infinite alternate;
}

.body.stand .leg.left {
  /* 5deg to 50deg */
  transform: rotate(5deg);
}

.body.walk .leg.left:after {
  animation: walkLegLowerLeft 2s ease-in-out infinite;
}

.body.stand .leg.left:after {
  /* 5deg to 50deg */
  transform: rotate(5deg);
}


.body.walk .leg.right {
  animation: walkLegUpperRight 1s linear infinite alternate;
}

.body.stand .leg.right {
  transform: rotate(-5deg);
}


.body.walk .leg.right:after {
  animation: walkLegLowerRight 2s ease-in-out infinite;
}

.body.stand .leg.right:after {
  transform: rotate(-5deg);
}

/* stick figure animation */

@keyframes walkBody {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-.3rem);
  }
}

@keyframes walkLegUpperLeft {
  from {
    transform: rotate(20deg);
  }
  to {
    transform: rotate(-30deg);
  }
}

@keyframes walkLegUpperRight {
  from {
    transform: rotate(-30deg);
  }
  to {
    transform: rotate(20deg);
  }
}

@keyframes walkLegLowerLeft {
  0% {
    transform: rotate(5deg);
  }
  25% {
    transform: rotate(50deg);
  }
  50% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(5deg);
  }
}

@keyframes walkLegLowerRight {
  0% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(50deg);
  }
  100% {
    transform: rotate(5deg);
  }
}

@keyframes walkArmUpperLeft {
  from {
    transform: rotate(-20deg);
  }
  to {
    transform: rotate(20deg);
  }
}

@keyframes walkArmUpperRight {
  from {
    transform: rotate(20deg);
  }
  to {
    transform: rotate(-20deg);
  }
}

@keyframes walkArmLowerLeft {
  0% {
    transform: rotate(-5deg);
  }
  25% {
    transform: rotate(-20deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}

@keyframes walkArmLowerRight {
  0% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(-20deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}
/* end stickfigure animation */
/* rosina body */
#rosina {
  position: absolute;
  width: 300px;
  min-height: 480px;
  bottom: 100px;
  right: -300px;
  animation-name: rosina-appear;
  animation-duration: 3s;
  background: url("img/layer-1/rosina2a.svg");
  background-repeat: no-repeat;
  animation-fill-mode: forwards;
  display: none;
}

@keyframes rosina-appear {
  0% {
    right: -800px; 
    transform: rotate(0deg);
    
  }

  50% {
    right: -30px;
    transform: rotate(-45deg);
    background: url("img/layer-1/rosina2a.svg")
  }
  51% {
    background: url("img/layer-1/rosina1.svg");
  }
  100% {
    right: -30px;
    transform: rotate(-45deg);
    background: url("img/layer-1/rosina1.svg");
  }
}

#speech-bubble {
  position: absolute;
  right: 25vw;
  bottom: 50vh;
  width: 400px;
  height: 300px;
  border-radius: 100%;
  background-color: rgb(209, 216, 218);
  opacity: 0;
  text-align: center; 
  animation-name: opacity-appear;
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-delay: 2s;
  display: none;
  box-shadow: -2px 2px 5px 1px rgba(59, 41, 29, 0.5);
}

#speech-bubble::before {
  content: "Du schuldisch mir immerno Schoki!";
  font-size: 2em;
  margin: auto;
}

#speech-bubble::after {
  content: "";
  width: 0; 
  height: 0; 
  /* triangle */
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 35px solid rgb(209, 216, 218);
  /* position */
  position: absolute;
  bottom: 35%;
  right: -5%;
  transform: rotate(50deg);
}

@keyframes opacity-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* end stickfigure */

#ground {
  position: absolute;
  width: 100vw;
  height: 100px;
  bottom: 0;
  background-color: #fff;
}
#ground::after {
  content: "";
  height: 20px;
  width: 100vw;
  background-color: rgb(68, 68, 68);
  position: absolute;
  bottom: 0;
}


#layer-2 {
  position: absolute;
  pointer-events: none;
}

button {
  pointer-events: all;
  cursor: pointer;
  border: none;
  color: #A62A00;
  font-size: 20px; 
  background: none;
  padding: 5px;
  /* inset offset-x | offset-y | blur-radius | spread-radius | color */
  box-shadow: inset -2px 3px 0 rgba(166, 42, 0, 0.5),
  -2px 3px 0 rgba(255,255,255,0.5) ;
  background: rgb(243,185,111);
}

.button-1 {
  margin-top: 40%;
}

button:hover {
  /* background-color: #fff3; */
  animation-name: button-hover;
  animation-duration: 0.1s;
  animation-fill-mode: forwards;
  animation-delay: 0;
}

@keyframes button-shine {
  0% {
    background: #F3B96F;
    background: linear-gradient(135deg, #f3b96f 35%, #fff5df 35%, rgba(255,245,223,1) 44%, rgba(243,185,111,1) 44%);
  }
  50% {
    background: linear-gradient(135deg, rgba(243,185,111,1) 8%, rgba(255,245,223,1) 8%, rgba(255,245,223,1) 83%, rgba(243,185,111,1) 83%);
  }
  100% {
    background: linear-gradient(135deg, rgba(255,245,223,1) 0%, rgba(255,245,223,1) 100%);
  }
}

@keyframes button-hover {
  0% {
    background: #F3B96F;
    background: linear-gradient(135deg, #f3b96f 35%, #fff5df 35%, rgba(255,245,223,1) 44%, rgba(243,185,111,1) 44%);
  }
  50% {
    background: linear-gradient(135deg, rgba(243,185,111,1) 8%, rgba(255,245,223,1) 8%, rgba(255,245,223,1) 83%, rgba(243,185,111,1) 83%);
  }
  100% {
    background: linear-gradient(135deg, rgba(255,245,223,1) 0%, rgba(255,245,223,1) 100%);
  }
}

#romanshorn {
  height: 100vh;
  width: 2500px;
  opacity: 1;
  bottom: 100px;
  animation-fill-mode: forwards;
  margin-top: auto;
  padding-bottom: 100px;
  /* items */
  display: flex;
  align-items: flex-end;
}

.tree {
  height: 350px;
  max-height: 500px;
}

.sbw-house {
  min-height: 450px;
  max-height: 90vh;
}

#romanshorn > div, #romanshorn > img {
  margin: 20px;
  margin-bottom: 50px;
  margin-top: 5vh;
}

#romanshorn > img.sbw-house {
  margin-bottom: 50px;
}


.moving {
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-name: moving;
}

@keyframes moving {
    0% {
        margin-left: 0;
    }
    100% {
        margin-left: calc(-2500px + 100vw);
}}

	.text-sign{
	font-size: 12px;
	padding: 21px;
	position: absolute;
	top: 18px;
	left: 39px;
	}

.sign {
    position: fixed;
    width: 100px;
	    height: 176px;
    padding: 70px;
    bottom: 100px;
    /* animation */
    animation-duration: 20s;
     animation-timing-function: linear;    
    /* image */
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('img/layer-2/sign-full.svg');
    background-clip: border-box;
    background-size: contain;
    /* content */
    align-items: center;
}

.sign img {
    max-width: 50px;
    max-height: 50px;
}

#sign1 {
    animation-duration: 2s;
    animation-fill-mode: forwards;
    left: 20vw;
}

#sign2 {
    animation-duration: 2s;
    animation-fill-mode: forwards;
    display: none;
}


#layer-3 {
    position: absolute;
    top: 20%;
}

#schokobaum {
    width: 50px;
    height: 50px;
    position: absolute;
    cursor: pointer;
    display: none;
    overflow: hidden;
    /* animation name: point-add; is added on click */
    animation-timing-function: ease-in-out;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    z-index: 2;
}


@keyframes appear {
    0% {
        left: 50vw;
        opacity: 0;
    }
    100% {
        left: 20vw;
        opacity: 1;
    }
}

@keyframes disappear {
    0% {
        left: 20vw;
        opacity: 1;
    }
    100% {
        left: 0;
        opacity: 0;
    }
}


@keyframes point-add {
  0% {
    transform: rotate(-10deg);
  }
  5% {
    transform: rotate(10deg);
  }
  10% {
    transform: rotate(-10deg);
  }
  15% {
    transform: rotate(10deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  100% {
    opacity: 0;
  }
}

/* #layer-4 {
} */

/* snowflakes */
  .snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 1px #000;
  }



  @keyframes snowflakes-fall {
    0% {
      top: -10%
    }
    100% {
      top: 100%
    }
  }

  @keyframes snowflakes-shake {
    0% {
      transform: translateX(0px)
    }
    50% {
      transform: translateX(80px)
    }
    100% {
      transform: translateX(0px)
    }
  }

  .snowflake {
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running
  }

  .snowflake:nth-of-type(0) {
    left: 1%;
    animation-delay: 0s, 0s
  }

  .snowflake:nth-of-type(1) {
    left: 10%;
    animation-delay: 1s, 1s
  }

  .snowflake:nth-of-type(2) {
    left: 20%;
    animation-delay: 6s, .5s
  }

  .snowflake:nth-of-type(3) {
    left: 30%;
    animation-delay: 4s, 2s
  }

  .snowflake:nth-of-type(4) {
    left: 40%;
    animation-delay: 2s, 2s
  }

  .snowflake:nth-of-type(5) {
    left: 50%;
    animation-delay: 8s, 3s
  }

  .snowflake:nth-of-type(6) {
    left: 60%;
    animation-delay: 6s, 2s
  }

  .snowflake:nth-of-type(7) {
    left: 70%;
    animation-delay: 2.5s, 1s
  }

  .snowflake:nth-of-type(8) {
    left: 80%;
    animation-delay: 1s, 0s
  }

  .snowflake:nth-of-type(9) {
    left: 90%;
    animation-delay: 3s, 1.5s
  }

/* snowflakes end */

/* clouds */

.sky {
  position: absolute;
  height: 100vh;
  width: 100vw;
  top: 0;
  background: rgb(255,255,255);
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(95,97,119,1) 83%, rgba(76,78,103,1) 93%); 
  animation-fill-mode: forwards;
  animation-duration: 1800s;
  animation-name: sunrise;
  animation-timing-function: linear;
}

.trees-background {
  position: absolute;
  height: 100vh;
  width: 100vw;
  top: 0;
  background-image: url("img/layer-4/trees-backgroung.svg");
  background-size: cover;
  background-position: center;
}

@keyframes sunrise {
  0% {
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(76,78,103,1) 93%); 
  }
  100% {
    background: linear-gradient(0deg, rgba(251,244,187,1) 0%, rgba(85,76,103,1) 93%);
  }
}

.clouds-background {
  position: absolute;
  width: 100%;
  height: 90%;
}

.cloud {
  height: 200px;
  width: 300px;
  margin: 150px;
  margin-top: 0;
  left: 200vw;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  position: absolute;
  animation-name: cloud, cloud-y;
  transform: scale(0.3);
  animation-duration: 80s, 30s;
}

.cloud-2 {
  animation-delay: 18s;
  animation-duration: 82s, 50s;
}

.cloud-3 {
  animation-delay: 50s;
  animation-duration: 95s, 41s;
}

.cloud-2 {
  animation-delay: 34s;
}

@keyframes cloud {
  from {
    left: 85vw;
  }
  to {
    left: -600px;
  }
}

@keyframes cloud-y {
  0% {
    top: 10px;
  }
  50% {
    top: 100px;
  }
  100% {
    top: 10px;
  }
}
