body,
html {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#levelContainer {
  position: relative;
  height: 100%;
  overflow: hidden;
  will-change: transform;
}

@media (min-width: 600px) and (max-width: 1024px) {
  #levelContainer {
    position: relative;
    height: 100%;
    overflow-x: hidden;
    will-change: transform;
  }
}


/*--------------------------------------------------------------
# dungeon-Welt 
--------------------------------------------------------------*/
#dungeon {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  display: flex;

}

#dungeon img {
  position: absolute;
  height: 100%;
  width: auto;
  top: 0;
  left: 0;
}

/*--------------------------------------------------------------
#Preloader
--------------------------------------------------------------*/


#preloader {
  --hue: 210;
  --size: 100px;
  --border: 10px;
  --speed: 1.5s;
  --blur: var(--border);
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background-color: #1a1a1a;
  accent-color: #00aaff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s ease-out;
}

.loader {
  width: var(--border);
  aspect-ratio: 1;
  background: white;
  border-radius: 50%;
  position: absolute;
  --y: calc((var(--size) * -0.5) + (var(--border) * 0.5));
  transform: rotate(0deg) translateY(var(--y));
  animation: spin var(--speed) infinite linear;
}

.loader::before {
  content: "";
  position: absolute;
  inset: calc(var(--border) * -0.5);
  border-radius: 50%;
  background: white;
  filter: blur(var(--blur));
  z-index: -1;
}

.loader::after {
  content: "";
  width: var(--size);
  aspect-ratio: 1;
  position: absolute;
  top: 0%;
  left: 50%;
  translate: -50% 0;
  background: conic-gradient(white,
      hsl(var(--hue), 100%, 70%),
      hsl(var(--hue), 100%, 10%),
      transparent 65%);
  border-radius: 50%;
  mask: radial-gradient(transparent calc(((var(--size) * 0.5) - var(--border)) - 1px),
      white calc((var(--size) * 0.5) - var(--border)));
}

@keyframes spin {
  to {
    transform: rotate(-360deg) translateY(var(--y));
  }
}


/*--------------------------------------------------------------
  #Plattform
  --------------------------------------------------------------*/
#platform {
  position: absolute;
  top: 10vh;
  left: 61.5vh;
  z-index: 10;
}

#platform img {
  width: 24vh;
}


/*--------------------------------------------------------------
 # Modal - Dungeon
--------------------------------------------------------------*/

.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_dungeon.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 {
  flex-grow: 1;
  font-size: 16px;
  margin-top: -10px;
  color: #fff;
  font-family: var(--default-font);
  line-height: 1.8;
  margin-bottom: 70px;
  align-items: center;
  text-align: center;
  justify-content: center;
}

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: 75%;
  left: 80%;
  transform: translateX(-50%);
}

#continue-button {
  top: 75%;
  left: 80%;
  transform: translateX(-50%);
}

#follow-up-modal .intro-modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#follow-up-modal .intro-modal-content p {
  font-size: 20px;
  line-height: 1.8;
  margin: 20px 0;
  color: #fff;
  font-family: var(--default-font);
}


/*--------------------------------------------------------------
 # Modal für Codefeld
--------------------------------------------------------------*/

.image-modal-dungeon {
  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-dungeon {
  background-image: url("../img/Button/modal_dungeon.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-dungeon p {
  font-size: 20px;
  margin-top: 40px;
  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: 87%;
  left: 78%;
  transform: translateX(-50%);
}


.close-button:hover {
  filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.906));

}


/*--------------------------------------------------------------
# Charakter
--------------------------------------------------------------*/

#idle,
#rennen {
  top: 48vh;
  left: 48vh;
  position: absolute;
  z-index: 10;
  width: 12.4vh;
  overflow: hidden;
}

#idle img,
#rennen img {
  height: 15vh;
}

#spucken img {
  height: 23vh;
}


#spucken {
  z-index: 12;
  position: absolute;
  width: 38vh;
  top: 43vh;
  left: 48vh;
  overflow: hidden;
}



/*--------------------------------------------------------------
 # Portal
--------------------------------------------------------------*/

#portalContainer {
  z-index: 1;
  position: absolute;
  top: 26vh;
  left: 100vh;
}

img#portal {
  width: 36vh;
}

/*--------------------------------------------------------------
 # Diamant Lila
--------------------------------------------------------------*/
.glitzer-funken {
  position: absolute;
  width: 10vw;
  height: 10vh;
  top: 5vh;
  left: -0.5vh;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
}

#diamantLila-container {
  position: absolute;
  top: 48vh;
  left: 80vh;
}

.diamantLila-template {
  width: 8vh;

}

.lilanachricht {
  width: auto;
  max-width: 90vw;
  white-space: nowrap;
  position: absolute;
  top: -45vh;
  left: 15vh;
  transform: translateX(-50%);
  padding: 1.5vh 3.0vh;
  background-color: rgba(80, 0, 120, 0.9);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 1vh;
  box-shadow: 0 0 15px rgba(180, 0, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  text-align: center;
}


/*--------------------------------------------------------------
 # Diamant Orange
--------------------------------------------------------------*/
.glitzer-funken {
  position: absolute;
  width: 10px;
  height: 10px;
  top: 1%;
  left: -0.5%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
}

#diamantOrange-container {
  position: absolute;
  top: 0vh;
  left: 10vh;

}

.diamantOrange-template {
  width: 8vh;

}

.orangenachricht {
  width: auto;
  max-width: 90vw;
  white-space: nowrap;
  position: absolute;
  top: -45vh;
  left: 15vh;
  transform: translateX(-50%);
  padding: 15px 30px;
  background-color: rgba(255, 140, 0, 0.9);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  text-align: center;
}



/*--------------------------------------------------------------
 # Diamant Blau
--------------------------------------------------------------*/
.glitzer-funken {
  position: absolute;
  width: 10px;
  height: 10px;
  top: 1%;
  left: -0.5%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
}

#diamantBlau-container {
  position: absolute;
  top: 0vh;
  left: 50vh;
}

.diamantBlau-template {
  width: 8vh;
}

.blaunachricht {
  width: auto;
  max-width: 90vw;
  white-space: nowrap;
  position: absolute;
  top: -45vh;
  left: 15vh;
  transform: translateX(-50%);
  padding: 15px 30px;
  background-color: rgba(30, 144, 255, 0.9);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  text-align: center;
}


/*--------------------------------------------------------------
   # Diamant Anzeige
  --------------------------------------------------------------*/

#diamantenAnzeige {
  position: absolute;
  top: -47vh;
  left: -72vh;
  width: 8vh;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 2000;
}

.stempelDiamant {
  width: 8vh;
  height: 8vh;
  opacity: 0;
  transform: scale(0);
}

@keyframes stempelAnimation {
  0% {
    transform: scale(3);
    opacity: 0;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  70% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/*--------------------------------------------------------------
# Knochen
--------------------------------------------------------------*/

/* Knochen-Container */
#knochenContainer {
  position: fixed;
  top: 2vh;
  left: 2vh;
  display: flex;
  align-items: center;
  z-index: 1000;
}

/* Knochen-Icon */
#knochenIcon {
  width: 5vh;
  height: 5vh;
}

/* Knochen-Counter */
#knochenCounter {
  font-size: 3vh;
  font-weight: bold;
  font-family: Impact, sans-serif;
  color: white;
  text-shadow:
    0px 0px 3px black;
  margin-left: -2vh;
  margin-top: 2vh;
}




/*--------------------------------------------------------------
# Schild
--------------------------------------------------------------*/
div#weiter-schild {
  position: absolute;
  top: 34vh;
  left: 100vh;

}

svg#svgSchild {
  overflow: visible;
  height: 27vh;
  width: 27vh;
}



/*--------------------------------------------------------------
# Monster - Insekt
--------------------------------------------------------------*/

#monster {
  z-index: 10;
  position: absolute;
  top: 53vh;
  left: 114vh;
  width: 12vh;
  overflow: hidden;

}

#monster img {
  height: 10vh;
}

#monsterSterben img {
  height: 10vh;
}


#monsterSterben {
  z-index: 1;
  position: absolute;
  top: 60vh;
  left: 113vh;
  transform: translate(-50%, -50%);
  width: 16.8vh;
  overflow: hidden;
}


#monsterFliegen img {
  position: relative;

}

#monsterFliegen {
  z-index: 1;
  position: absolute;
  top: 20vh;
  left: 100vh;
  width: 149px;
  height: 100px;
  overflow: hidden;
}


@media (min-width: 600px) and (max-width: 1024px) {
    
  #monsterFliegen {
    z-index: 1;
    position: absolute;
    top: 20vh;
    left: 70vh;
    width: 149px;
    height: 100px;
    overflow: hidden;
  }
}



/*--------------------------------------------------------------
# Fledermaus
--------------------------------------------------------------*/


#fledermaus {
  z-index: 1;
  position: absolute;
  top: 10vh;
  left: -100vh;
  width: 128px;
  height: 100px;
  overflow: hidden;
}


@media (min-width: 600px) and (max-width: 1024px) {
    
  #fledermaus {
    z-index: 1;
    position: absolute;
    top: 10vh;
    left: -70vh;
    width: 128px;
    height: 100px;
    overflow: hidden;
  }
}




/*--------------------------------------------------------------
# Monster - Rüsseltier
--------------------------------------------------------------*/

#ruesselTier img {
  position: relative;

}

#ruesselTier {
  z-index: 10;
  position: absolute;
  top: 50vh;
  left: 111vh;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 100px;
  overflow: hidden;

}

#ruesselTierSterben {
  z-index: 10;
  position: absolute;
  top: 57vh;
  left: 95vh;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 100px;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Monster - ein Auge Monster
--------------------------------------------------------------*/

#augeMonster img {
  position: relative;

}

#augeMonster {
  z-index: 10;
  position: absolute;
  top: 50vh;
  left: 111vh;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 100px;
  overflow: hidden;

}

#augeMonsterSterben {
  z-index: 10;
  position: absolute;
  top: 56vh;
  left: 102vh;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 100px;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Monster - ein Auge Monster
--------------------------------------------------------------*/

#neonMonster img {
  position: relative;

}

#neonMonster {
  z-index: 10;
  position: absolute;
  top: 50vh;
  left: 111vh;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 100px;
  overflow: hidden;

}

#neonMonsterSterben {
  z-index: 10;
  position: absolute;
  top: 63vh;
  left: 111vh;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 100px;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Insekt
--------------------------------------------------------------*/

#insekt {
  z-index: 10;
  position: absolute;
  top: 50vh;
  left: 106vh;
  width: 115px;
  height: 100px;
  overflow: hidden;

}



#insektSterben img {
  position: relative;

}


#insektSterben {
  z-index: 10;
  position: absolute;
  top: 61vh;
  left: 112vh;
  transform: translate(-50%, -50%);
  width: 168px;
  height: 100px;
  overflow: hidden;
}