@font-face {
  font-family: 'nexa';
  src: url('assets/fonts/nexa.ttf');
}

* {
  text-decoration-color: white;
}

body {
  font-family: 'nexa', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "nexa", sans-serif;
  color: white;
  background-image: url("/agos/assets/bg_tile_static_credit.webp");
  background-repeat: repeat;
  background-size: 192px 192px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* Edge/IE */
}

.logo-container {
  width: 100%;
  text-align: center;
  margin: 2rem 0;
}

.logo {
  height: 40vh;
  animation: woosh 2s ease-in-out infinite alternate;
}

.hidden-logo {
  display: none;
}

.logo-only p {
  display: none;
}

@keyframes woosh {
  from {
    scale: 1;
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  to {
    scale: 0.95;
    transform: rotate(3deg);
  }
}

.credits-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credits-text {
  display: flex;
  flex-direction: column;
  font-size: 1.8rem;
  text-align: center;
  line-height: 2.2rem;
  transform: translateY(45%); /* ✅ adjust this to your desired first frame */
}

a {
  color: white;
  font-size: 2rem;
  text-decoration: underline;
}

a:visited {
  color: white;
  text-decoration: none;
}

.credits-text.scrolling {
  animation: scrollCredits 110s linear forwards;
}

@keyframes scrollCredits {
  from {
    transform: translateY(45%); /* ⬅️ make it match initial position */
  }
  to {
    transform: translateY(-40%);
  }
}

.credits-text p {
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4); /* Optional: subtle edge definition */
}

.start-overlay {
  position: fixed;
  inset: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.start-button {
  background-color: #F08C50;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 1em 2em;
  font-size: 1.5rem;
  font-family: "nexa", sans-serif;
  cursor: pointer;
  box-shadow: none;
}

.start-button:hover {
  background-color: #e67b40;
}

.fade-cover {
  position: fixed;
  inset: 0;
  background-color: black;
  z-index: 9998; /* justo debajo del overlay del botón */
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none; /* evita que bloquee el botón */
}
