

/*UI*/


#UI {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 1000;
}

#Basetext { z-index: 1; position: absolute; top:0; left:0; width:100%; height:auto; }
#Dalsi { z-index: 2; position: absolute; top: 43.6vw; left:85.9vw; width:13.1vw; height:auto; cursor: pointer; }

#Basetext {
  position: absolute;
  z-index: 1;
}

#DialogText {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}


#dialogContainer {
    position: absolute;
    top: 40.5vw;
    left: 3vw;
    width: 75%;
    z-index: 1000;
}


#speakerName {
    color: rgb(38, 88, 92);
    font-size: 2.5vw;
    font-family: "Pangolin", cursive;
    font-weight: 400;
    font-style: normal;
}



.dialog-text {
  position: absolute;
  top: 44vw;
  left: 2vw;
  width: 75%;
  font-size: 2vw;
  pointer-events: none;
  font-family: "Pangolin", cursive;
  font-weight: 400;
  font-style: normal;

}
#Dalsi {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
}


/*TEXT NAJDI 3 PŘÍČINY*/

#Najdi {
  font-size: 3vw;
  font-family: "Pangolin", cursive;
  font-weight: 400;
  font-style: normal;
  position: absolute;
  top: 44vw;
  left: 2vw;
  width: 80%;
  height: auto;
  color: #1a304c;
}

#devonNajdi {
  margin-top: 50px;
  font-size: 50px;
  position: absolute;
  top: 680px;
  left: 40px;
  width: 80%;
  height: auto;
  color: #100061;
}

#permNajdi {
  margin-top: 50px;
  font-size: 3vw;
  position: absolute;
  top: 44vw;
  left: 2vw;
  width: 80%;
  height: auto;
  color: #100061;
}


/*HOTOVO TEXTY*/

#ordovikHotovo {
  font-size: 3vw;
  font-family: "Pangolin", cursive;
  font-weight: 400;
  font-style: normal;
  position: absolute;
  top: 44vw;
  left: 2vw;
  width: 80%;
  height: auto;
  color: #1a304c;
}


#devonHotovo {
  font-size: 3vw;
  position: absolute;
  font-family: "Pangolin", cursive;
  font-weight: 400;
  font-style: normal;
  top: 44vw;
  left: 2vw;
  width: 80%;
  height: auto;
  color: #100061;
}

#permHotovo {
  font-size: 50px;
  position: absolute;
  font-family: "Pangolin", cursive;
  font-weight: 400;
  font-style: normal;
  top: 680px;
  left: 40px;
  width: 80%;
  height: auto;
  color: #100061;
}

#triasHotovo {
  font-size: 50px;
  position: absolute;
  font-family: "Pangolin", cursive;
  font-weight: 400;
  font-style: normal;
  top: 680px;
  left: 40px;
  width: 80%;
  height: auto;
  color: #100061;
}



/* EXPLENATIONS*/


#OrdovikExple {
  z-index: 19;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: auto;
}


#DevonExple {
  z-index: 10;
  position: absolute;
  object-fit: cover;
  top: 0px;
  left: 0px;
  width: 100%;
  height: auto;
}


#PermExple {
  z-index: 10;
  position: absolute;
  object-fit: cover;
  top: 0px;
  left: 0px;
  width: 100%;
  height: auto;
}


#TriasExple {
  z-index: 10;
  position: absolute;
  object-fit: cover;
  top: 0px;
  left: 0px;
  width: 100%;
  height: auto;
}


#DinoExple {
  z-index: 10;
  position: absolute;
  object-fit: cover;
  top: 0px;
  left: 0px;
  width: 100%;
  height: auto;
}




/*DALŠÍ ÉRA*/

#DalsiEra {
  z-index: 20;
  position: absolute;
  object-fit: cover;
  top: 5vw;
  left: 67vw;
  width: 20%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
}


#DalsiEra2 {
  position: absolute;
  object-fit: cover;
  top: 5vw;
  left: 67vw;
  width: 20%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
}


#DalsiEra3 {
  z-index: 11;
  position: absolute;
  object-fit: cover;
  top: 5vw;
  left: 67vw;
  width: 20%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
}


#DalsiEra4 {
  z-index: 11;
  position: absolute;
  object-fit: cover;
  top: 5vw;
  left: 67vw;
  width: 20%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
}


#DalsiEra5 {
  z-index: 11;
  position: absolute;
  object-fit: cover;
  top: 5vw;
  left: 67vw;
  width: 20%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
}







/*HOTSPOTS*/

/*ORDOVIK*/

.hotspot {
  position: absolute;
  box-shadow: 0 0 20px rgb(117, 177, 177);
  cursor: pointer;
  animation: glow 1.4s infinite alternate;
  z-index: 25;
  border: 2px solid transparent;
  box-shadow: none;
  transition: all 0.3s ease;
  pointer-events: auto;
}
.hotspot:hover {
  border: 2px solid cyan;
  box-shadow: 0 0 15px cyan;
  opacity: 0.5;
}


@keyframes glow {
  from { box-shadow: 0 0 10px rgb(243, 243, 243); }
  to { box-shadow: 0 0 30px rgb(255, 255, 255); }
}

#hotspot-hladina { top: 5vw; left: 0; width: 100%; height: 2vw; }
#hotspot-saca { top: 15vw; left: 57vw; width: 20vw; height: 10vw; }
#hotspot-flower { top: 0; left: 0; width: 100%; height: 6vw; }

.hotspot.hidden {
  pointer-events: none;
}




/*DEVON*/

#hotspot-devon1 { top: 0; left: 0px; width: 100%; height: 6vw; }
#hotspot-devon2 { top: 5vw; left: 0px; width: 100%; height: 1vw; }
#hotspot-devon3 { top: 12vw; left: 53vw; width: 35vw; height: 15vw; }


.hotspot-devon {
  position: absolute;
  cursor: pointer;
  opacity: 0.1;
  transition: all 0.3s ease;
}
.hotspot-devon:hover {
  opacity: 0.5;
  border: 2px solid cyan;
  box-shadow: 0 0 15px cyan;
}





/*PERM*/

#hotspot-perm1 { top: 0; left: 0; width: 100%; height: 6vw; }
#hotspot-perm2 { top: 10vw; left: 43vw; width: 54vw; height: 33vw; }
#hotspot-perm3 { top: 5vw; left: 0; width: 100%; height: 1vw; }

.hotspot-perm {
  position: absolute;
  cursor: pointer;
  opacity: 0.1;
  transition: all 0.3s ease;
}
.hotspot-perm:hover {
  opacity: 0.5;
  border: 2px solid cyan;
  box-shadow: 0 0 15px cyan;
}

.hotspot-perm.hidden {
  display: none;
  pointer-events: none;
}





/*TRIAS*/

#hotspot-trias1 { top: 0; left: 0; width: 100%; height: 6vw; }
#hotspot-trias2 { top: 5vw; left: 0; width: 100%; height: 1vw; }
#hotspot-trias3 { top: 17vw; left: 50vw; width: 40vw; height: 20vw; }

.hotspot-trias {
  position: absolute;
  cursor: pointer;
  opacity: 0.1;
  transition: all 0.3s ease;
}
.hotspot-trias:hover {
  opacity: 0.5;
  border: 2px solid cyan;
  box-shadow: 0 0 15px cyan;
}

.hotspot-trias.hidden {
  display: none;
  pointer-events: none;
}





/*ZAČÍT CESTU */

.hidden {
  display: none;
}


#titleScreen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
     pointer-events: none;
}

#Nazev {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: auto;
  pointer-events: none;
}

#button1 {
  position: absolute;
  top: 30vw;
  left: 39.7vw;
  width: 20%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
}






/*HLADINA*/

.layerscene img#hladina {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: top 1s ease;
    z-index: 2; /* just above base, below characters */
}





/*SCÉNY*/


/*ORDOVIK*/

#sceneOrdovik {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 10;
}

#base { z-index: 1; position: absolute; top:0; left:0; width:100%; height:auto; }
#kamen-rosOrdovik { z-index: 3; position: absolute; top:0; left:0; width:100%; height:auto; }
#rybickyPozadi { z-index: 4; position: absolute; top:0; left:0; width:100%; height:auto; }
#IdleSaca { z-index: 5; position: absolute; top:0; left:0; width:100%; height:auto; }
#KrabIdle { z-index: 6; position: absolute; top: 15vw; left:8vw; width:50%; height:auto; }
#FreezeOrdovik { z-index: 7; position: absolute; top:0; left:0; width:100%; height:auto; opacity: 80%}
#prah { z-index: 8; position: absolute; top:0; left:0; width:100%; height:auto; }

#warmingOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 9;
    pointer-events: none;
    transition: opacity 1s ease;
}



/*DEVON*/

#sceneDevon {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 50;
}

#DevonBase { z-index: 1; position: absolute; top:0; left:0; width:100%; height:auto; }
#rybickyPozadi2 {z-index: 3; position: absolute; top:0; left:0; width:100%; height:auto; }
#KamenRosDevon { z-index: 4; position: absolute; top:0; left:0; width:100%; height:auto; }
#DevonRyba { z-index: 5; position: absolute; top:0; left: 14vw; width:80%; height:auto; }
#KrabIdle2 { z-index: 6; position: absolute; top: 15vw; left: 8vw; width:50%; height:auto; }
#FreezeDevon { z-index: 7; position: absolute; top:0; left:0; width:100%; height:auto; opacity: 80%; }
#prah2 { z-index: 8; position: absolute; top:0; left:0; width:80%; height:auto; }

#warmingOverlay2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
  transition: opacity 1s ease;
}







/*PERM*/

#scenePerm {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 100;
}

#PermBase { z-index: 1; position: absolute; top:0; left:0; width:100%; height:auto; }
#rybickyPozadi3 { z-index: 3; position: absolute; top:0; left:0; width:100%; height:auto; }
#KamenRosPerm { z-index: 4; position: absolute; top:0; left:0; width:100%; height:auto; }
#ZvadlyRos { z-index: 5; position: absolute; top:0; left:0; width:100%; height:auto; }
#PermRyba { z-index: 6; position: absolute; top:0; left:0; width:100%; height:auto; }
#KrabIdle3 { z-index: 7; position: absolute; top: 15vw; left:2vw; width:50%; height:auto; }
#prah3 { z-index: 8; position: absolute; top:0; left:0; width:80%; height:auto; }

#warmingOverlay3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
  transition: opacity 1s ease;
}







/*TRIAS*/


#sceneTrias {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 150;
}

#TriasBase { z-index: 1; position: absolute; top:0; left:0; width:100%; height:auto; }

#crack1 { z-index: 2; position: absolute; top:0; left:0; width:100%; height:auto; }
#crack2 { z-index: 3; position: absolute; top:0; left:0; width:100%; height:auto; }
#crack3 { z-index: 4; position: absolute; top:0; left:0; width:100%; height:auto; }
#crack4 { z-index: 5; position: absolute; top:0; left:0; width:100%; height:auto; }
#crack5 { z-index: 6; position: absolute; top:0; left:0; width:100%; height:auto; }
#crack6 { z-index: 7; position: absolute; top:0; left:0; width:100%; height:auto; }
#crack7 { z-index: 8; position: absolute; top:0; left:0; width:100%; height:auto; }
#crack8 { z-index: 9; position: absolute; top:0; left:0; width:100%; height:auto; }

#SUCK { z-index: 10; position: absolute; top:0; left:0; width:100%; height:auto; opacity: 10%; }
#rybickyPozadi4 { z-index: 11; position: absolute; top:0; left:0; width:100%; height:auto; }

#KamenLEVA { z-index: 12; position: absolute; top:0; left:0; width:100%; height:auto; }
#KamenPRAVA { z-index: 13; position: absolute; top:0; left:0; width:100%; height:auto; }

#RostLEVA { z-index: 14; position: absolute; top:0; left:0; width:100%; height:auto; }
#RostPRAVA { z-index: 15; position: absolute; top:0; left:0; width:100%; height:auto; }


#TriasRyba { z-index: 16; position: absolute; top: 16vw; left: 55vw; width: 28vw; height:auto; }
#TriasRybaSuck { z-index: 17; position: absolute; top:0; left:0; width:100%; height:auto; }
#KrabIdle4 { z-index: 18; position: absolute; top: 15vw; left:2vw; width:50%; height:auto; }
#prah4  {z-index: 19; position: absolute; top:0; left:0; width:80%; height:auto; }





/*DINO*/

#sceneDino {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 200;
}


#DinoBase { z-index: 1; position: absolute; top:0; left:0; width:100%; height:auto; }

#asteroid1 { z-index: 2; position: absolute; top:0; left:0; width:100%; height:auto; }
#asteroid2 { z-index: 3; position: absolute; top:0; left:0; width:100%; height:auto; }
#asteroid3 { z-index: 4; position: absolute; top:0; left:0; width:100%; height:auto; }
#asteroid4 { z-index: 5; position: absolute; top:0; left:0; width:100%; height:auto; }
#asteroid5 { z-index: 6; position: absolute; top:0; left:0; width:100%; height:auto; }





#rybickyPozadi5 { z-index: 7; position: absolute; top:0; left:0; width:100%; height:auto; }
#DinoKamenRost { z-index: 8; position: absolute; top:0; left:0; width:100%; height:auto; }
#DinoRyba { z-index: 9; position: absolute; top:0; left:0; width:100%; height:auto; }

#DinoOdpal { z-index: 10; position: absolute; top:0; left:0; width:100%; height:auto; }
#KrabIdle5 { z-index: 11; position: absolute; top: 15vw; left:2vw; width:50%; height:auto; }
#prah5 { z-index: 12; position: absolute; top:0; left:0; width:100%; height:auto; }


#WhiteLayer {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 13;
  transition: opacity 1.5s ease;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

#WhiteLayer.show {
  opacity: 1;
}


/*LIDI*/

#sceneLidi {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 250;
}


#KrabIdle6 { z-index: 2; position: absolute; top: 15vw; left:2vw ; width:50%; height:auto; }
#prah6 { z-index: 3; position: absolute; top:0; left:0; width:100%; height:auto; }


#imageWindow {
  position: relative;
  width: 100%;     
  height: 55.5vw;   
  overflow: hidden;
}

#longImage {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;     
  width: auto;
  transition: left 0.5s ease; 
}

#longImageContainer {
    position: absolute;
}



.floatingBag {
    position: absolute;
    width: 13vw;      
    height: auto;
    transition: left 0.5s ease;
    animation: float 4s ease-in-out infinite;
}



@keyframes float {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform: translate(5px, -5px) rotate(2deg);
    }
    50% {
        transform: translate(0px, -10px) rotate(-2deg);
    }
    75% {
        transform: translate(-5px, -5px) rotate(1deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}








/*FADE TO BLACK*/

#DalsiEra6 {
  z-index: 2501;
  position: absolute;
  object-fit: cover;
  top: 5vw;
  left: 67vw;
  width: 20%;
  height: auto;
  cursor: pointer;
  pointer-events: auto;
}


#LidiExple {
  top: 0px;
  left: 0px;
  width: 100%;
  height: auto;
  position: absolute;
  z-index: 2500;
  display: none;
}


#fadeOverlay {
    position: fixed;
    inset: 0; 
    background-color: black;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 1.5s ease;
    z-index: 2000; 
}

#EndTitle {
  position: absolute;  
  z-index: 9998; 
  top: 0;
  left: 0;
  width: 100%;
}

#ZacitZnova {
    position: absolute;  
    z-index: 9999; 
    top: 30vw;
    left: 39.7vw;
    width: 20%;
    cursor: pointer;
}