/* NEW: allow body to fill the viewport */
html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #000;

  /* background stays the same */
  background-image: url("../assets/Edelgard_speech_HR.d8704261f417.png");
  background-size: cover;
  background-position: center center;
  background-repeat: repeat-y;

  /* NEW: make the page a vertical flex layout for sticky footer */
  display: flex;
  flex-direction: column;

  /* optional but helpful: ensure at least full viewport height */
  min-height: 100vh;
}

header, footer {
  background-color: #ef0606;
  padding: 1rem;
  text-align: center;
}

/* NEW: let main grow to push the footer to the bottom when content is short */
main {
  padding: 2rem;
  flex: 1;
}

div {
  background-color: grey;
}



/* your scrolling box styles (unchanged) */
.scroll-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: .75rem 0;
  background: #fafafa;
  white-space: nowrap;
  height: 2rem;             /* one line tall */
  box-sizing: border-box;
  /* tuning vars */
  --dur: 12s;              /* total time for one message to cross */
  --count: 4;              /* number of <p> messages */
  margin-bottom: 1rem;
}

.scroll-box p {
  position: absolute;
  inset: 0 auto auto 0;    /* top:0; left:0 */
  margin: 0;
  width: max-content;
  font: 600 1rem/1.5 system-ui, sans-serif;

  /* start completely off the right side */
  padding-left: 100%;
  transform: translateX(0);

  /* Slide fully across to off-screen left */
  animation: slide-left var(--dur) linear infinite;

  /* Stagger messages automatically based on index and count */
  animation-delay: calc( (var(--i, 0)) * (var(--dur) / var(--count)) );
}

@keyframes slide-left {
  0%   { transform: translateX(0); }         /* starts off-screen right due to padding-left */
  10%  { transform: translateX(0); }         /* brief fully-visible dwell */
  90%  { transform: translateX(-100%); }     /* off-screen left by its own width */
  100% { transform: translateX(-100%); }
}

/* optional: pause on hover + reduced motion */
.scroll-box:hover p { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .scroll-box p { animation-duration: 0.001s; }
}
/* Navigation */
.site-nav {
  background: #7c8085;          /* optional bg */
  padding: 0.75rem 1rem;
  justify-content: center;
}

/* horizontal, evenly spaced, wraps on small screens */
.nav-list {
  --gap-x: 1rem;                 /* tweak spacing here */
  --gap-y: 0.5rem;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-y) var(--gap-x);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* link styling */
.nav-list a {
  display: block;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border-radius: 0.5rem;
  color: #000;
}

/* hover / focus */
.nav-list a:hover,
.nav-list a:focus-visible {
  background: #e5e7eb;
  outline: none;
}

/* optional active state */
.nav-list a.active {
  font-weight: 600;
  border-bottom: 2px solid currentColor;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #7c8085;
  padding: 2rem;
  text-align: center;
}
.embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}