@font-face {
  font-family: 'RetroFuture';
  src: url('/font/80s-retro-future.ttf') format('truetype');
}

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'RetroFuture', sans-serif;
  background-color: #f8f8f8;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f8f8f8;
  overflow: hidden;
}

/* Header: 25% fixed */
#header {
  position: relative;
  height: 25vh;
  min-height: 200px;
  background-image: url('/img/space.png');
  background-repeat: repeat-x;
  background-size: auto 200% ;
  background-position: center bottom;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

#header-planet {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;       /* prevents it from getting too tall */
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  pointer-events: none;   /* avoids interfering with the logo or menu */
}

#header-artifact {
  position: absolute;
  right: 230px;
  top: 20%;
  height: 20%;       /* prevents it from getting too tall */
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  pointer-events: none;   /* avoids interfering with the logo or menu */
}

#header img {
  max-height: 90%;
  max-width: 90%;
  z-index: 1;
}

#menu {
  position: absolute;
  bottom: 0.5rem;
  left: 1rem;
  z-index: 2;
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

#menu li a {
  color: #00E7F7;
  font-size: 1rem;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 3px #000;
  transition: color 0.3s ease;
}

#menu li a:hover {
  color: #ffffff;
}


#scroll-wrapper {
  position: relative;
  height: 75vh;
}

/* Update this: */
#scroll-container {
  position: relative;
  height: 75vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  background-image: url('/img/landscape.webp');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position-y: bottom;
  background-position-x: 0;
  transition: background-position 0.2s ease-out;
}

/* Fix arrow positioning: */
#scroll-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 50;
  transform: translateY(-50%);
}

.scroll-arrow {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s;
  opacity: 0.6;
}

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

#arrow-left {
  left: 0.5rem;
}

#arrow-right {
  right: 0.5rem;
}

section {
  flex: 0 0 100vw;
  overflow-y: scroll;
  scroll-snap-align: start;
  scroll-margin-top: 100vh;
  flex-shrink: 0; /* important to keep horizontal snap working */
  padding: 0 2rem 0.5rem 2rem;
  box-sizing: border-box;
  color: #111;
  background-color: rgba(255, 255, 255, 0.55);
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  backdrop-filter: blur(2px);
}

section h1 {
  margin-top: 3rem;
  text-align: center;
}

section img {
  max-width: 100%;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

section .screenshot img {
  width: 90%;
  max-width: 1440px;
}

h1 {font-size: 2rem;margin: 1rem auto 2rem auto;}

h1, h2 {
  color: #00E7F7;
  text-align: center;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px  1px 0 #000,
    1px  1px 0 #000,
    0 0 8px rgba(0, 231, 247, 1);
}

p, li {
  font-size: 1.4rem;
  max-width: 1024px;
  text-align: center;
}

p > strong, li > strong {
  color: #00E7F7;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px  1px 0 #000,
    1px  1px 0 #000,
    0 0 8px rgba(0, 231, 247, 1);
}

ul {
  list-style: square;
  padding-left: 2rem;
}

li::marker {
  color: #FF0080FF;
}

.crowdfunding-links h2 {
  margin-bottom: 0;
  color: #FF0080FF;
  font-weight: bold;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px  1px 0 #000,
    1px  1px 0 #000,
    0 0 8px rgba(255, 0, 128, 1);
}
.crowdfunding-links a {display: block}


a:hover {
  text-decoration: underline;
}

.left > p, .left > ul li {
  text-align: left;
}

.right > p, .right > ul li {
  text-align: right;
}

.center > p {
  text-align: center;
}


#video {
  height: 100%;
}

.video-wrapper {
  /* let aspect‐ratio drive the “other” dimension */
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80%;     /* of #video’s height */
  margin: 0 auto;
}
.video-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

blockquote {
  border-left: 4px solid #FF0080FF;
  padding-left: 1rem;
  padding-top: 1rem;
  background: rgba(0,0,0,0.6);
  color: #FF0080FF;
  text-shadow:
    0 0 8px rgb(0, 0, 0);
  max-width: 1024px;
  padding-right: 10px;
  margin: 20px auto;
}

blockquote p {
  font-size: 22px;
}

footer {
  font-size: 0.8rem;
  color: #00E7F7;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px  1px 0 #000,
    1px  1px 0 #000,
    0 0 8px rgba(0, 231, 247, 1);
  text-align: center;
  margin-top: 2rem;
}

footer p {
  font-size: 2.8rem;
}

.dialog-audio-wrapper {
  position: relative;
  display: inline-block;
}

.dialog-audio-wrapper .audio-play {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}

.audio-play {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-style: normal;
}

.audio-play button {
  all: unset;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #01cddc;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  font-family: 'RetroFuture', sans-serif;
  image-rendering: pixelated;
}

.audio-play button:hover {
  color: #ffffff;
}

.flex {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 1rem;
}

.flex > .flex-60 {
  flex: 0 0 60%;
  max-width: 60%;
}

.flex > .flex-50 {
  flex: 0 0 50%;
  max-width: 50%;
}

.flex > .flex-40 {
  flex: 0 0 40%;
  max-width: 40%;
}

/* On small screens: stack vertically */
@media (max-width: 768px) {

  #header-artifact {
    right: 120px;
    top: 5%;
    height: 16%;       /* prevents it from getting too tall */
  }

  #menu ul {
    gap: 0.5rem;
  }

  #menu li a {
    font-size: 0.7rem;
  }

  h1 {font-size: 1.7rem;margin: 1.5rem auto 1rem auto;}


  .flex {
    flex-direction: column;
    align-items: center; /* center content when vertical */
    gap: 2rem;
  }

  .flex-column-reverse-mobile {
    flex-direction: column-reverse !important;
  }

  .flex > .flex-60,
  .flex > .flex-50,
  .flex > .flex-40 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  section {
    padding-bottom: 7rem; /* odhad, podľa výšky mobilnej lišty */
  }

  section .screenshot img {
    width: 90%;
  }
}
