* {
  box-sizing: border-box;
}

html {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  html {
    font-size: 10px;
  }
}

.countdown-timer {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  color: #ffb209;
  text-align: center;
  margin-top: 10px;
  text-shadow: 1px 1px 0 #000;
}


html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh; /* better support for mobile browsers */
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Warning bar */
.warning-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffb209;
  color: #000;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  z-index: 2000;
  user-select: none;
  font-size: 1rem;
}

.warning-text-full {
  display: inline;
}

.warning-text-short {
  display: none;
}

@media (max-width: 500px) {
  .warning-text-full {
    display: none;
  }

  .warning-text-short {
    display: inline;
  }
}

.warning-bar a {
  margin-left: 6px;
  color: #000;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.warning-bar a:hover {
  opacity: 0.8;
}

header {
  padding: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

header img {
  width: 100%;
  height: auto;
  display: block;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1000px;
}

.card {
  width: 120px;
  text-align: center;
  position: relative;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  image-rendering: pixelated;
  margin-bottom: 10px;
  display: block;
}

.card .name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #ffb209;
  text-shadow: none;
}

.card .price,
.card .mint-date {
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 600px) {
  .card {
    width: calc((100% - 40px) / 3);
  }
}

/* Fixed horizontal button row */
.button-row {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.button-row img {
  width: 120px;
  max-width: 30vw;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.button-row img:hover {
  transform: scale(1.05);
}

/* Larger buttons for desktop */
@media (min-width: 768px) {
  .button-row img {
    width: 160px;
    max-width: none;
  }
}


/* Loader overlay */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}

#loader img {
  width: 350px; /* 70% of 500px */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
  animation-delay: 0.3s;
}

#loader-message {
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Your other existing CSS below ... */
.site-footer {
  text-align: center;
  padding: 28px 20px;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  background: transparent;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.footer-intro {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #ccc;
  text-align: center;
  max-width: 640px;
}

.footer-intro a {
  text-decoration: none;
}

.footer-intro a:hover {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #ffb209;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.footer-sep {
  color: #555;
  user-select: none;
}

.copyright {
  font-size: 0.75rem;
  color: #777;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 22px 14px;
  }
  .footer-intro {
    font-size: 0.7rem;
    line-height: 1.7;
  }
  .footer-links {
    font-size: 0.75rem;
    gap: 8px 10px;
  }
  .copyright {
    font-size: 0.65rem;
  }
}

@media (max-width: 380px) {
  .footer-intro {
    font-size: 0.62rem;
  }
  .footer-links {
    font-size: 0.68rem;
  }
  /* On the smallest screens, hide separators and let links wrap as a column */
  .footer-sep {
    display: none;
  }
  .footer-links {
    flex-direction: column;
    gap: 6px;
  }
}

.whitepaper-link {
  margin-top: 10px;
}

.whitepaper-link a {
  color: #ffb209;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.whitepaper-link a:hover {
  opacity: 0.8;
}

.highlight {
  color: #ffb209;
}
