
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowIn {
  0% {
    opacity: 0;
    text-shadow: none;
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 41ch; }
}

@keyframes typewriter-pribeh {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

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

@keyframes vintageFloat {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-2.5deg) translateY(-10px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}


.uvod {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px; /* přidá vnitřní odsazení */
  box-sizing: border-box;
}

.pozadi-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

.uvod-text {
  position: relative;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px; 
  max-width: 90%;
  word-wrap: break-word;
}
.uvod-text h1 {
  font-size: 5rem;
  margin: 0;
  white-space: nowrap;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8);
  animation: glowIn 2s ease forwards;
}

.psaci-stroj {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-family: 'Courier New', monospace;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typewriter 4s steps(41) 1s forwards, blink 0.75s step-end infinite;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  z-index: 2;
}


.postava {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.5rem;
  text-shadow: 2px 2px 6px black;
  z-index: 2;
}

.postava img {
  width: 240px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  cursor: pointer;
  animation: float 6s ease-in-out infinite;
}

.postava img:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.7);
}

.postava.pravahora {
  top: 40px;
  right: 40px;
  flex-direction: row-reverse;
}

.postava.levadolu {
  bottom: 40px;
  left: 40px;
}


.sekce.britanie {
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  animation: fadeInUp 1.5s ease forwards;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

.britanie-obsah {
  max-width: 900px;
  z-index: 1;
}

.britanie-obsah h2,
.britanie-obsah h3 {
  animation: glowIn 2s ease forwards;
}

.britanie-obsah h2 {
  font-size: 4rem;
  margin-bottom: 10px;
}

.britanie-obsah h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: normal;
  color: #ddd;
}

.pribeh {
  font-size: 1.5rem;
  line-height: 1.8;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.typewriter-text {
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typewriter-pribeh 8s steps(200) forwards, blink 0.75s step-end infinite;
  font-family: 'Courier New', monospace;
  text-align: left;
}


.sekce.navrat.retro-styl {
 background-color: #2e1d12; /* tmavé pozadí */
  color: #fdf1d6;
  display: flex;
  flex-wrap: wrap;              /* ✅ umožní zalomení na menších displejích */
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  gap: 40px;
  scroll-snap-align: start;
  box-sizing: border-box;
  position: relative;
  min-height: 100vh;  
}

.navrat-wrapper {
  flex: 1 1 400px;
  max-width: 600px; 
  border: 8px solid #d8b47a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  transform: rotate(-2.5deg);
  background: #fff8e1;
  z-index: 1;
  
}

.navrat-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.4) contrast(1.05) grayscale(60%);
  border-radius: 4px;
  display: inline-block;
}

.retro-box,
.navrat-obsah {
   flex: 1 1 400px;  
  max-width: 700px;
  background: rgba(255, 248, 220, 0.05); /* lehký průsvitný efekt */
  padding: 40px;
  border-left: 6px solid #d1a26e;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  line-height: 1.8;
  z-index: 2;
  color: #fdf1d6;
}

.retro-box h2 {
  font-size: 2.6rem;
  color: #ffe4b5;
  margin-bottom: 10px;
  font-family: 'Times New Roman', serif;
}

.retro-box h3 {
  font-size: 1.6rem;
  color: #cdb890;
  font-weight: normal;
  margin-bottom: 30px;
}

.sekce.konec-hero {
  position: relative;
  background: radial-gradient(ellipse at center, #111 0%, #000 100%);
  color: #dcdcdc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}

.pozadi-dest {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

.konec-obsah {
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.text-blok {
  flex: 1 1 500px;
}

.text-blok h2 {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.text-blok h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #8cbfff;
  font-weight: normal;
}

.text-blok p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #bbbbbb;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.video-blok {
  flex: 1 1 600px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.video-wrapper {
  width: 100%;
  height: 100%;
}

.pozadi-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(70%) brightness(0.7) contrast(1.2);
}


.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.arrow-down {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 9999;
  animation: bounce 2s infinite;
  fill: white;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.arrow-down:hover {
  opacity: 1;
}


.back-to-top-btn {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background-color: orange;
  color: #000;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s, transform 0.3s;
  z-index: 10;
}

.back-to-top-btn:hover {
  background-color: rgb(65, 43, 4);
  transform: translateY(-2px);
}


.sekce.nasledky {
  position: relative;
  color: white;
  padding: 60px;
  overflow: hidden;
}

.pozadi-plameny {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.obsah-nasledky {
  position: relative;
  z-index: 1;
}

.obal-nasledky {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
}

.sloupce-obrazky {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1 1 400px;
  align-items: center;
}

.sloupce-obrazky img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.sloupec-text {
  flex: 1 1 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.nadpisova-cast h2 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.nadpisova-cast h3 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: 400;
}

.blok-textu {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 12px;
  font-size: 1.6rem;
  line-height: 2.2;
  max-width: 700px;
}

.blok-textu p {
  text-align: justify;
  word-spacing: -1px;
}

.vylepseny-nadpis {
  color: #ff6600;
  font-size: 3.2rem;
  font-weight: 800;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-family: 'Special Elite', serif;
  text-align: right;
}


@media (max-width: 768px) {
  .uvod-text h1 {
    font-size: 2.5rem;
  }

  .psaci-stroj {
    font-size: 1rem;
  }

  .postava img {
    width: 160px;
  }

  .britanie-obsah h2 {
    font-size: 2.5rem;
  }

  .britanie-obsah h3 {
    font-size: 1.4rem;
  }

  .pribeh {
    font-size: 1.2rem;
    padding: 15px;
  }

  .retro-box {
    padding: 20px;
    font-size: 1.1rem;
  }

  .retro-box h2 {
    font-size: 2.2rem;
  }

  .retro-fotka {
    max-width: 100%;
    border-width: 4px;
  }

  .text-blok h2 {
    font-size: 2.2rem;
  }

  .text-blok h3 {
    font-size: 1.2rem;
  }

  .blok-textu {
    font-size: 1.2rem;
    padding: 15px;
  }

  .arrow-down {
    width: 30px;
    height: 30px;
  }

 .sekce.navrat.retro-styl {
    flex-direction: column;
    padding: 40px 20px;
  }

  .retro-fotka,
  .retro-box,
  .navrat-obsah {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 20px;
  }

  .retro-box {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .retro-box h2 {
    font-size: 2rem;
  }

  .retro-box h3 {
    font-size: 1.3rem;
  }
}





@media (max-width: 480px) {
  .uvod-text {
    gap: 30px;
  }

  .uvod-text h1 {
    font-size: 2rem;
  }

  .psaci-stroj {
    font-size: 0.95rem;
  }

  .retro-box h2, .retro-box h3 {
    text-align: center;
  }

  .sloupec-text {
    text-align: left;
    align-items: center;
  }

  .vylepseny-nadpis {
    text-align: center;
    font-size: 2.4rem;
  }
}

