* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: #f0f0f0;
  background-color: #111;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
} 
p{
  font-size: 25px;
}
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}
nav a.active {
  text-decoration: none;
  color: grey;
}
section {
  min-height: 100vh;
  padding: 6rem 15rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
  position: relative;
}
section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
section > * {
  position: relative;
  z-index: 1;
}
h1 {
  margin-bottom: 1rem;
  font-size: 6rem;
}
h2 {
  margin-bottom: 1rem;
  font-size: 4rem;
}
.intro {
  background-image: url('Heydrich.jpg');
}
.atentat {
  background-image: url('Atentát.png');
}
.nasledky {
  background-image: url('následky.webp');
}
.ukryt {
  background-image: url('Kostel.jpeg');
}
.pamatka {
  background-image: url('Lidice.jpg');
}
.zdroje {
  background-image: url("Pozadí\ AI.png");
}
.btn-scroll {
  margin-top: 2rem;
  background: none;
  border: 2px solid white;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-scroll:hover {
  background: white;
  color: black;
}
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }
  nav a {
    margin: 0.5rem;
  }
  section {
    padding: 5rem 1rem 1rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  p {
    font-size: 1rem;
  }
}
section {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}
@keyframes typewriter {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  50% { border-color: transparent; }
}
.typewriter {
  overflow: hidden;
  border-right: 3px solid #f0f0f0;
  white-space: nowrap;
  animation: typewriter 2s steps(40, end) 1s 1 normal both, blink .55s step-end infinite;
  display: inline-block;
  max-width: 100%;
}
#music-control {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: sans-serif;
  cursor: pointer;
  z-index: 1000;
  user-select: none;
  transition: background 0.3s;
}
#music-control:hover {
  background: rgba(0,0,0,0.8);
}