/*GOOGLE FONTS*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');


.cinzel-decorative-regular {
  font-family: "Cinzel Decorative", serif;
  font-weight: 400;
  font-style: normal;
}

.cinzel-decorative-bold {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-style: normal;
}

.cinzel-decorative-black {
  font-family: "Cinzel Decorative", serif;
  font-weight: 900;
  font-style: normal;
}

/*ZÁKLAD*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0f0b14;
  color: #eee;
  overflow-x: hidden;
  
}

/*LOADING*/

#loading-screen {
  position: fixed;
  inset: 0;
  background: #0f0b14;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1.2s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  font-family: 'Cinzel', serif;
  color: #e0aaff;
}

.loader-content p {
  margin-top: 20px;
  letter-spacing: 2px;
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-style: normal;
}

/*LOADING SRDÍČKO PT.1*/

.heart-loader {
  width: 90px;
  height: 90px;
}

.heart-outline {
  fill: none;
  stroke: #c77dff;
  stroke-width: 2;
}

.heart-fill {
  fill: #c77dff;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: fillHeart 2.2s ease forwards;
}

/*LOADING SRDÍČKO PT.2*/

@keyframes fillHeart {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}
/*HLAVNÍ SEKCE*/

.titulni {
  position: relative;
  height: auto;
  padding: 120px 0;
   min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-attachment: fixed;
}

.titulni-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 11, 20, 0.57),
    rgba(54, 22, 94, 0.492)
  );
}

.titulni-content {
  position: relative;
  width: min(800px, 90%);
  z-index: 2;
  max-width: 800px;
  padding: 1rem;
  animation: fadeIn 2s ease forwards;
  width: 100%;
}



.titulni h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #f5c6ff;
  text-shadow: 0 0 20px rgba(255, 100, 255, 0.6);
  margin-bottom: 1rem;
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-style: normal;
}

.titulni-content p {


  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: center;

  max-width: 42em;

  color: #eee;
}



.subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
  color: #ddd;
}

.portal-btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border: 2px solid #c77dff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  transition: 0.4s ease;
  position: relative;
}

.portal-btn:hover {
  background: #c77dff;
  box-shadow: 0 0 25px #c77dff;
  transform: scale(1.05);
}

/*MAGICKÝ GLOW*/

.magic-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(199,125,255,0.25), transparent 70%);
  filter: blur(80px);
  animation: pulse 6s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(0.9); opacity: 0.6; }
  to { transform: scale(1.1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/*PŘÍBĚHOVÁ SEKCE*/

.story-intro {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, #0f0b14, #1a1223);
  text-align: center;
 overflow: hidden;    
 scroll-behavior: smooth;

}

.container {
  max-width: 900px;
  margin: auto;
}

.story-intro h2 {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #e0aaff;
}

/*RESPONZIVITA*/

@media (max-width: 768px) {
  .titulni {
    background-position: 60% center;
  }

  .magic-glow {
    width: 350px;
    height: 350px;
  }
}

/*MENU*/
.main-nav {
position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 11, 20, 0.65);
  backdrop-filter: blur(2px);
}

.main-nav.hide {
  transform: translateY(-100%);
}


.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo { 
   display: flex; 
  align-items: center; 
  gap: 0.6rem; 
  font-family: "Cinzel Decorative", serif;
   font-weight: 700; 
   font-style: normal;
   font-size: 1.3rem;
    color: #fdfbff;
    letter-spacing: 2px;
   }

.nav-logo {
  height: 3.5rem;   
  width: auto;
  object-fit: contain;
}


.nav-links {
 list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
 text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #c77dff;
}

/*HAMBURGER MENU*/
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto; 
  position: relative;
  right: 0;

  
}


.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/*RESPONZIVITA*/
@media (max-width: 768px) {

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
  }

  .logo {
    flex: 1;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    
    flex-direction: column;
    align-items: center;

    background: rgba(15,11,20,0.98);
    padding: 1rem 0;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.3s ease;
  }

  .nav-links.active {
    max-height: 400px;
    opacity: 1;
  }

  .nav-links li {
    padding: 0.6rem 0;
  }
}

/* MAGIC SPARKLES */

.sparkle {
  position: absolute;
  pointer-events: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #e0aaff 0%, #c77dff 40%, transparent 70%);
  animation: sparkleFade 800ms ease-out forwards;
  z-index: 5;
}

@keyframes sparkleFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.story-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.2rem;
  border: 2px solid #c77dff;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  background: transparent;
  transition: all 0.4s ease;
  position: relative;
}

.story-btn:hover {
  background: #c77dff;
  box-shadow: 0 0 20px #c77dff;
  transform: translateY(-2px);
}



#page-transition{
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.95)
  );

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 9999;
}

#page-transition.active{
  opacity: 1;
}

body.loaded {
  animation: pageFade 1.2s ease forwards;
  
}

@keyframes pageFade{

  from{
    opacity:0;
    transform: translateY(10px);
  }

  to{
    opacity:1;
    transform: translateY(0);
  }

}

/*MICROSITE PROLOG*/



.prologue-page{
background: url(backgrounds/bg_textured.jpg);
background-repeat: no-repeat;
background-size: cover;


}

.corner{
  position: fixed;
  width: 420px;
  opacity: 50%;
  pointer-events: none;
  z-index: 1;
}

/* OZDOBA1*/
.corner-left{
  top: 0;
  left: 0;
  transform: rotate(180deg);
}

/*OZDOBA2*/
.corner-right{
  top: 0;
  right: 0;
  transform: rotate(270deg);

}

.prologue-header{
  text-align: center;
  padding-top: 80px;
  position: relative;
  z-index: 2;
}

.prologue-title{
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 6px;
  color: #ffffff;

  text-shadow:
    0 0 10px rgba(255, 125, 244, 0.8),
    0 0 25px rgba(255, 125, 188, 0.6),
    0 0 45px rgba(199,125,255,0.4);

  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow{

  0%{
    text-shadow:
      0 0 10px rgba(255, 125, 203, 0.6),
      0 0 20px rgba(199,125,255,0.4);
  }

  100%{
    text-shadow:
      0 0 20px rgba(199,125,255,0.9),
      0 0 40px rgba(199,125,255,0.6),
      0 0 70px rgba(199,125,255,0.4);
  }

}


/*PŘÍBĚHOVÁ SEKCE*/

.story-block {
  border-bottom: 1px solid rgba(199,125,255,0.15);
  padding: 120px 40px;
}

.story-container{
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

.story-text{
  font-size: 1.15rem;
  line-height: 2.1;
  color: #ddd;
  max-width: 55ch;
  flex: 1;
  font-weight: 500;
}

.dropcap{

  float:left;

  font-family:'Cinzel', serif;
  font-size:4.5rem;
  line-height:0.8;

  margin-right:10px;
  margin-top:6px;

  color:#e0aaff;

  text-shadow:
  0 0 10px rgba(199,125,255,0.7);
}

.story-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.story-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
}
/*RESPONZIVITA*/

@media (max-width: 768px) {

  .story-container {
    flex-direction: column;
    text-align: left;
    gap: 30px;
  }

  .reverse .story-container {
    flex-direction: column;
  }

  .story-text {
    max-width: 100%;
    font-size: 1.05rem;
  }

  .story-image {
    width: 100%;
  }

  .story-image img {
    max-width: 100%;
  }
}

.reverse .story-container{
  flex-direction: row-reverse;
}

.reverse .story-text{
  direction: ltr;
}

.story-divider{
  text-align:center;
  font-size:2rem;
  color:#c77dff;
  margin:80px 0;
}

.pilot3-section{

margin-top:120px;
text-align:center;

padding:0 40px 120px 40px;

}



.pilot3-image img{

width:100%;
max-width:1200px;

display:block;
margin:auto;

border-radius:10px;

box-shadow:
0 0 60px rgba(199,125,255,0.25);

}

.pilot3-text{

max-width:800px;
margin:60px auto 40px auto;

font-size:1.2rem;
line-height:1.9;
color:#ddd;

}

.legend-btn{

display:inline-block;

padding:16px 42px;

font-size:1rem;
letter-spacing:1px;

text-decoration:none;

border:2px solid #c77dff;

color:white;

transition:0.4s;

box-shadow:
0 0 10px rgba(199,125,255,0.4);

}

.legend-btn:hover{

background:#c77dff;

box-shadow:
0 0 25px #c77dff,
0 0 45px #c77dff;

transform:scale(1.05);

}

.story-text p {
  text-align: justify;
}

/*MICROSITE ZAČÁTKU CESTY*/

.pocatek-page{


margin:0;
font-family:'Montserrat', sans-serif;
background: url(backgrounds/bg_fantasy.jpg);
color:white;

}

.dropcap{

float:left;
font-family:'Cinzel', serif;
font-size:4rem;
line-height:0.8;
margin-right:10px;
margin-top:6px;
color:#e0aaff;
text-shadow:0 0 10px rgba(199,125,255,0.7);

}



.obsah-start{

height:100vh;
width:100%;
background:url("ilustrace/pocatek_scena_obr.png") center/cover no-repeat;
display:flex;
align-items:center;
justify-content:center;

}



.story-section{

padding:120px 40px;

}


/*TEXT K ILUSTRACÍM*/
.story-text{

font-size:1.2rem;
line-height:1.8;
color: #f5c6ff;


}

.reveal{

opacity:0;
transform:translateY(80px);
transition:1.5s ease;
will-change: transform, opacity;

}

.reveal.active{
opacity:1;
transform:translateY(0);

}

.quote-section{

padding:120px 40px;
text-align:center;

}

.story-quote{

font-family:'Cinzel',serif;
font-size:2.2rem;
color:#e0aaff;
max-width:800px;
margin:auto;
line-height:1.6;
text-shadow:
0 0 20px rgba(199,125,255,0.4);

}

/*KARTIČKA BYTOSTI*/

.tarot-card{

width:220px;
height:360px;
perspective:1200px;

}

.card-inner{

position:relative;
width:100%;
height:100%;
transform-style:preserve-3d;
transition:transform 0.9s ease;

}

.tarot-card:hover .card-inner{

transform:rotateY(180deg);

}

/*RESPONZIVITA*/

@media (max-width: 768px) {
  .tarot-card {
    width: 180px;
    height: 300px;
  }
}

.card-front,
.card-back{

position:absolute;
width:100%;
height:100%;
backface-visibility:hidden;
border-radius:12px;
overflow:hidden;

}

.card-front img,
.card-back img{

width:100%;
height:100%;
object-fit:cover;

}

.card-back{

transform:rotateY(180deg);

}

.cards{

display:grid;
grid-template-columns: repeat(3, 220px);
gap:16px;
padding:80px 20px;
justify-content: center;


}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 160px);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 160px;
    gap: 12px;
  }
}

.tarot-card:hover{

filter:drop-shadow(0 0 15px #c77dff);

}

.interactive-map{

padding:120px 0;
display:flex;
justify-content:center;

}

.map-container{

position:relative;
max-width: 1100px;
width: 100%;
overflow: visible;

}

.map-image{

width:100%;
border-radius:20px;
filter:brightness(0.7);

}

/* CHECKPOINTS */

.map-marker{

position:absolute;
width:26px;
height:26px;
text-decoration: none;

background:#8b5cf6;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;

box-shadow:
0 0 10px #a855f7,
0 0 25px #9333ea,
0 0 45px #7c3aed;

transition:0.3s;

}

.map-marker:hover{

transform:scale(1.3);

}

/* IKONKY LEBKY */

.map-marker::before{

content:"☠";
font-size:12px;
color:white;

}


.marker-tooltip{

position:absolute;

bottom:35px;
left:50%;

transform:translateX(-50%) scale(0.8);

background:#0f0b14;
padding:12px 16px;

border-radius:8px;

opacity:0;
pointer-events:none;

white-space:nowrap;

box-shadow:0 0 20px rgba(139,92,246,0.4);

transition:0.3s;

}

.marker-tooltip h4{

margin:0;
font-size:14px;
color:#c084fc;

}

.marker-tooltip p{

margin:2px 0 0 0;
font-size:12px;
color:#ddd;

}

.map-marker:hover .marker-tooltip{

opacity:1;
transform:translateX(-50%) scale(1);

}

.map-marker.final-boss {
  background: #ff0000;
  box-shadow: 
    0 0 10px #ff4d4d,
    0 0 25px #ff1a1a,
    0 0 45px #b30000;
}

.map-marker.final-boss h4 {

color: #b30000;

}

.hint-section {
  padding: 10px;
  text-align: center;
}

.hint-container {
  max-width: 900px;
  margin: auto;
}

.hint-image {
  width: 100%;
  max-width: 700px;
  opacity: 0.95;

  filter: drop-shadow(0 0 20px rgba(199,125,255,0.25));
  transition: 0.5s ease;
}

.hint-image:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 35px rgba(199,125,255,0.5));
}