body, html {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#levelContainer{
  position: relative;
  height: 100%;
  overflow: hidden;
  will-change: transform;
  z-index: 10;
}

/*--------------------------------------------------------------
# Charakter
--------------------------------------------------------------*/

#idle,#rennen{
  top: 46vh;
  left: 26vh;
  position: absolute;
  z-index: 9;
  width: 12.4vh;
  overflow: hidden;
}
  
#idle img {
  height: 15vh;
}

#rennen img {
  height: 15vh;
}

#spucken img {
  height: 21vh;
}


#spucken {
  z-index: 11;
  transform: translate(-50%, -50%);
  position: absolute;
  width: 123vh;
  top: 56vh;
  left: 41vh;
  overflow: hidden;
}




#spucken {
  z-index: 11;
  transform: translate(-50%, -50%);
  position: absolute;
  width: 123vh;
  top: 56vh;
  left: 41vh;
  overflow: hidden;
}

/*--------------------------------------------------------------
# lava-slider
--------------------------------------------------------------*/
#lava {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
}

#lava img {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  margin-left: -2px;
}

/*--------------------------------------------------------------
# Nebel
-------------------------------------------------------------*/

svg.rauch {
  position: relative;
  width: 124%;
  height: 100%;
  bottom: 26%;
  left: 0%;

}

div.nebel img {
  width: 100%;
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

div.nebel img:nth-child(2) {
  top: -50%;
  right: -40%;
}

div.nebel img:nth-child(1) {
  top: -60%;
  right: 40%;
}




/*--------------------------------------------------------------
# Modal - Lavastra
--------------------------------------------------------------*/

.intro-modal {
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 500px;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.intro-modal-content {
  background-image: url("../img/Button/Modal.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  justify-content: space-between;
  padding: 100px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 600px;
  height: 400px;
  max-height: 90%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.intro-modal-content p {
  font-size: 18px;
  margin-top: 30px;
  color: #fff;
  font-family: var(--default-font);
  line-height: 1.8;
  margin-bottom: 70px;
}

button {
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  border: none;
  letter-spacing: 0.05em;
  font-family: var(--heading-font);
  pointer-events: auto;
}

.intro-modal-content button {
  justify-content: right;
  align-items: center;
  padding: 25px 10px;
  margin-top: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  text-align: center;
  overflow: visible;
  align-self: center;
  width: auto;
}


.intro-modal-content button:hover {
  filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.906));
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#intro-modal.show {
  animation: fadeIn 0.1s ease-in-out;
  transform: translateZ(0);
}


#start-button {
  top: 78%;
  left: 80%;
  transform: translateX(-50%);
}

#continue-button {
  top: 78%;
  left: 80%;
  transform: translateX(-50%);
}







/*--------------------------------------------------------------
# Modal für Codefeld
--------------------------------------------------------------*/

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.image-modal-content {
  background-image: url("../img/Button/Modal.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: space-between;
  padding: 100px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 600px;
  height: 400px;
  max-height: 90%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.image-modal-content p {
  font-size: 20px;
  margin-top: 10px;
  color: #fff;
  font-family: var(--default-font);
  line-height: 1.8;
  margin-bottom: 20px;
}

.close-button {
  background: none;
  position: fixed;
  border: none;
  color: #ffff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 90%;
  left: 78%;
  transform: translateX(-50%);
}


.close-button:hover {
  filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.906));

}



/*--------------------------------------------------------------
# Feuerbaelle
--------------------------------------------------------------*/


img.fireball-template {
  position: absolute;
  width: 7vh;
}

.spielflaeche {
  position: absolute;
  top: 50vh;
  left: 60vh;
  z-index: 10;
}

/*--------------------------------------------------------------
# Feuerbaelle Counter
--------------------------------------------------------------*/

#counter {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

#counter-fireball {
  width: 50px;
  height: 50px;
  position: relative;
  top: -45%;
}

#counter-text {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  font-family: Impact, sans-serif;
  color: white;
  text-shadow:
    0px 0px 3px black;
  top: -43.5%;
  right: 1.7%;
}

/*--------------------------------------------------------------
# Hindernisse
--------------------------------------------------------------*/

img.felsen-template {
  position: absolute;
  width: 9vw;
  height: 15vh;
}

#felsenDiv{
  top: 47vh;
  left: 65vh;
}


@media (max-width: 1024px) and (min-width: 768px) {
  img.felsen-template {
    position: absolute;
    width: 19vw;
    height: 15vh;
  }
  
  #felsenDiv{
    top: 47vh;
    left: 65vh;
  }
}

/*--------------------------------------------------------------
# Felsen Counter
--------------------------------------------------------------*/

#counter-container {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  top: 70px;
  left: 5px;
}
#counter-felsen {
  width: 50px;
  height: 50px;
  position: relative;
  top: -35%;
}

#counter-display {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  font-family: Impact, sans-serif;
  color: white;
  text-shadow:
    0px 0px 3px black;
  top: -40.5%;
  right: 1.7%;
}


/*--------------------------------------------------------------
# Schild
--------------------------------------------------------------*/

div#weiter-schild {
  position: absolute;
  top: 30%;
  left: 35%;
}

svg#svgSchild {
  overflow: visible;
  width: 30%;
  height: 30%;
  transform-origin: center;
}

@media (max-width: 1024px) and (min-width: 768px) {
  div#weiter-schild {
    position: absolute;
    top: 30%;
    left: 50%;
  }
  
  svg#svgSchild {
    overflow: visible;
    width: 30%;
    height: 30%;
    transform-origin: center;
  }
  

}