/* styles.css */

/* GLOBAL LAYOUT AND TYPOGRAPHY */
html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  background-color: black;
  color: white;
  font-family: 'Courier New', monospace;
}

body {
  display: flex;
  flex-direction: column;
}

/* TYPEWRITER CONTAINER */
.typing-container {
  width: 100%;
  height: 50vh;
  overflow-y: auto;             /* Always allow vertical scroll */
  overflow-x: hidden;           /* Prevent horizontal scroll */
  scroll-behavior: smooth;
  box-sizing: border-box;
  padding: 1em;
  margin-bottom: 2em;
  position: relative;
  -webkit-overflow-scrolling: touch;
  display: block;              /* Important: removes flex height bugs */
}

/* Hide scrollbars (optional aesthetic) */
.typing-container::-webkit-scrollbar {
  display: none;
}

/* This wrapper restores bottom anchoring */
.text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  width: 100%;
}

/* The text itself */
.text {
  display: block;
  width: 100%;
  white-space: pre-wrap;        /* Respect \n line breaks and wrap text */
  word-wrap: break-word;        /* Break long words if needed */
  font-size: 1.5em;
  text-align: center;
  box-sizing: border-box;
}


.cursor {
  display: inline-block;
  border-left: .1em solid currentColor;
  margin-left: .05ch;
  height: 1em;
  animation: blink 1s step-end infinite;
  vertical-align: bottom;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* INTERACTION CONTAINER */
.interaction-container {
  width: 100%;
  height: 50vh;
  display: flex;
  gap: 2em;
  align-items: flex-start;
  justify-content: center;
  visibility: visible; /* Hidden interactions handled per-page */
}


/* Animation definition: 'fadeIn' smoothly fades in and slides upward */
@keyframes fadeIn {
  from {
    opacity: 0;                  /* Start fully transparent */
    transform: translateY(6px);  /* Slightly lower than final position */
  }
  to {
    opacity: 1;                  /* End fully opaque */
    transform: translateY(0);    /* Back to original position */
  }
}

/* Apply the animation to all seed-style buttons */
.seed-button {
  opacity: 0;                                /* Start hidden by default */
  animation: fadeIn 1.5s ease forwards;      /* Run fadeIn over 1.5s, smooth ease, and keep final state */
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-bottom: 2em;
  margin-top: 3em;
}

.glyph-label {
  font-style: italic;
  text-transform: none;
  margin-bottom: 0;
  font-size: 0.90rem;
  letter-spacing: 0.4px;
}

.seed-input {
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1);
  color: #ddd;
  padding: 0.75rem 1rem;
  width: 300px;
  font-size: 1rem;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}




/* LEGACY INTERACTIONS CSS */

@keyframes glyph-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(200, 255, 200, 0.15);
  }
  50% {
    box-shadow: 0 0 24px rgba(200, 255, 200, 0.35);
  }
}

@keyframes reveal-seed {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.interaction-container button {
  margin-top: 3em;
}

button:focus {
  outline: none;
}

button:hover {
  background-color: white;
  color: black;
}

.glyph-interaction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 1.8em;
  text-align: center;
  opacity: 0;
}




.seed-input:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(200, 255, 200, 0.2);
  background-color: #121212;
  position: relative;
  z-index: 1;
  animation: glyph-pulse 2.5s ease-in-out infinite;
}



.upload-invite {
  font-style: italic;
  text-transform: none;
  margin: 0;
  margin-top: 0.5em;
  font-size: 0.90rem;
  margin-bottom: 0.4em;
}

.custom-upload {
  background-color: #111;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #aaa;
  padding: 0.75rem 1rem;
  cursor: pointer;
  width: 300px;
  text-align: center;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: normal;
  font-style: italic;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.custom-upload:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
  background-color: #121212;
}
