/* Core page */
html, body {
  margin: 0;
  padding: 0;
  font-family: monospace;
  background: #000;
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: auto;
  scroll-behavior: smooth;
}

/* Binary rain canvas behind everything; never capture pointer events */
#binaryCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
  pointer-events: none;
}

/* Page container */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Logo (restored look) */
.logo-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -104px;
}

.project-logo {
  width: 576px;
  height: auto;
  filter: drop-shadow(0 0 20px #00ff88);
}

/* Neon content box (restored placement) */
.content-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-top: -132px;
  padding-bottom: 80px;
  width: 100%;
  pointer-events: auto;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 40px;
  background: rgba(0, 0, 0, 0.88);
  border-radius: 14px;
  box-shadow:
    0 0 12px rgba(0, 255, 140, 0.6),
    0 0 24px rgba(0, 255, 140, 0.4),
    inset 0 0 16px rgba(0, 255, 140, 0.3);
  outline: 1px solid rgba(0, 255, 140, 0.3);
}

/* Top row of buttons */
.top-row {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
}

/* Header text above YouTube */
.header-text {
  color: white;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-top: 6px;
}

/* Buttons base */
.btn {
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 10px rgba(0, 255, 140, 0.4);
}

/* GitHub, Discord, YouTube same size */
.github {
  background-color: #fff;
  color: #000;
  font-size: 20px;
  padding: 16px 32px;
}

.discord {
  background-color: #5865F2;
  color: #fff;
  font-size: 20px;
  padding: 16px 32px;
}

.youtube {
  background-color: #FF0000;
  color: #fff;
  font-size: 20px;
  padding: 16px 32px;
}

/* Download button — larger CTA */
.download {
  background-color: #00ff00;
  color: #000;
  font-size: 22px;
  font-weight: bold;
  padding: 24px 44px;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 255, 140, 0.6);
}

/* Credits Section */
.credits-section {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 96px;
  text-align: center;
  color: white;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: auto;
}

.credits-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.credits-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
}

.credits-subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  color: #bfbfbf;
}

.credit-block {
  margin: 20px;
}

.credit-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 6px;
  color: white;
}

.credit-role {
  font-size: 16px;
  margin-bottom: 12px;
  color: #ccc;
}

/* qx9z description single-line on desktop, wraps on mobile */
.credit-role.single-line {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  display: block;
  max-width: 100%;
  font-size: 15px;
}

/* Profile images */
.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 140, 0.6);
}

/* Credit row layout giving blocks more room */
.credit-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 80px;
  margin-top: 40px;
}

.credit-row .credit-block {
  flex: 0 1 360px;
  max-width: 360px;
}

/* Footer spacer prevents abrupt scroll stop */
.footer-spacer {
  height: 48px;
  width: 100%;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .project-logo { width: 440px; }
  .content-wrapper { margin-top: -100px; }
}

/* Mobile-specific adjustments */
@media (max-width: 600px) {
  /* Logo reduced further for better mobile fit */
  .project-logo { width: 260px; } /* reduced from 320px to 260px */

  .top-row { flex-direction: column; gap: 16px; }
  .button-container { gap: 16px; padding: 18px 24px; border-radius: 12px; }

  .btn { font-size: 16px; padding: 12px 20px; }
  .github, .discord, .youtube { font-size: 18px; padding: 14px 28px; }
  .download { font-size: 22px; font-weight: bold; padding: 20px 36px; border-radius: 10px; }

  /* allow qx9z description to wrap on small screens */
  .credit-role.single-line {
    white-space: normal;
    font-size: 16px;
  }

  .credit-row { gap: 24px; }
  .credit-row .credit-block { flex: 1 1 100%; max-width: 420px; }
}
