body, html {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: black;
}

#background {
  background-image: url(images/insidecave.png);
  height: 100%;
  background-size: 100% 130%;
  background-position: center;
  background-repeat: no-repeat;
}

.invis {
  display: none;
}

#kayako {
  position:absolute;
  left: 30%;
  bottom:-1%;
  width: 780px;
  height: 700px;
  opacity: 0;
}

#textblock {
  position: absolute;
 left: 47%;
 top: 20%;
 margin: 0;
 width: 215px;
 height: 50px;
 cursor: pointer;
}

h1 {
 Color: white;
 margin: 0;
 display: none;
 overflow: hidden;
 white-space: nowrap;
 width: 170px;
 text-align: center;
}

#hand {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}

@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes type { 
  from { width: 0; } 
} 

@keyframes flash {
  0% {
    opacity: 0
  }
  100% {
    opacity: 1
  }
}

@keyframes fadein {
 0% {
   opacity: 0
 }
 100% {
   opacity: 1
 }
}

@keyframes fadeout {
 0% {
   opacity: 1
 }
 100% {
   opacity: 0
 }
}


@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform:translateX(-20px);
  }
  75% {
    transform:translateX(20px);
  }
  100% {
    transform: translateX(0);
  }
}

.snacksdefault {
  width: 150px;
  height: 150px;
  position: absolute;
  opacity: 0;
  animation: wave 3s ease-in-out infinite, fadein 4s ease-in-out forwards;
  cursor:pointer;
}

#yoghurt {
 bottom: 50%;
 left: 15%;
}

#mushroom {
bottom: 20%;
left: 10%
}

#mango {
bottom: 50%;
right: 15%
}

#meat {
bottom: 20%;
right: 10%;
}

.snacksfadeout {
  animation: wave 3s ease-in-out infinite, fadeout 4s ease-in-out forwards;
  pointer-events: none;
}

.snackskill {
  display: none;
}

#balloon {
 position: absolute;
  height: 450px;
  width: 350px;
  bottom: 0;
  right: 25%;
  cursor: pointer;
}

.fadein {
  animation: fadein 4s ease-in-out forwards;
}

.fadeout {
  animation: fadeout 4s ease-in-out forwards;
  pointer-events: none;
}

