@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
@font-face {
  font-family: 'Supermolot';
  src: url('Supermolot-Regular.woff2') format('woff2'),
       url('Supermolot-Regular.woff') format('woff');
  font-weight: normal;
}
@font-face {
  font-family: 'Supermolot';
  src: url('Supermolot-Bold.woff2') format('woff2'),
       url('Supermolot-Bold.woff') format('woff');
  font-weight: bold;
}

/* Root variables for easy theme changes */
:root {
  --union-black: #000000;
  --union-blue: #A9ECFD;
  --union-white: #ffffff;
  --union-bg: #000000;
  --union-box: #111;
  --union-accent: #A9ECFD;
  --union-dark-accent: #222;
  --union-input-bg: #181b20;
  --union-font-mono: 'JetBrains Mono', monospace;
  --union-font-header: 'Supermolot', 'Arial Black', Arial, sans-serif;
}

/* RESET & BASE */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--union-bg);
  color: var(--union-blue);
  font-family: var(--union-font-mono);
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.5;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--union-bg);
}

/* HEADER */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--union-box);
  padding: 1.3rem 2rem 1.1rem 2rem;
  border-bottom: 2px solid var(--union-blue);
}
.site-header .left {
  display: flex;
  align-items: center;
}
.site-header .logo {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}
.site-header .union-text {
  font-family: var(--union-font-header);
  font-size: 1.5rem;
  color: var(--union-blue);
  font-weight: bold;
  letter-spacing: 0.1em;
}
.site-header .center {
  font-family: var(--union-font-header);
  color: var(--union-blue);
  font-size: 1.19rem;
  font-weight: 700;
}
.site-header .right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--union-blue);
  cursor: pointer;
  font-family: var(--union-font-header);
}
.wallet-box {
  border: 1.2px solid var(--union-blue);
  display: flex;
  align-items: center;
  padding: 0.23rem 0.8rem;
  font-size: 0.95rem;
  border-radius: 8px;
  background: none;
}
.wallet-box .mini-logo {
  width: 18px;
  margin-right: 5px;
}
.pfp {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  width: 100%;
}

.page-content {
  width: 100%;
  max-width: 510px;
  margin: 2.6rem auto 1.5rem auto;
  padding: 2.1rem 1.5rem 2.1rem 1.5rem;
  background: var(--union-box);
  border-radius: 13px;
  border: 2px solid var(--union-blue);
  box-sizing: border-box;
}

/* For main index hero: */
.hero-box {
  width: 100%;
  text-align: center;
  padding-bottom: 2.2rem;
}
.hero-box h1 {
  font-family: var(--union-font-header);
  font-size: 2.2rem;
  color: var(--union-blue);
  margin-bottom: 1.2rem;
}

/* Search Bar */
.search-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.1rem;
}
.search-section input {
  padding: 0.8rem;
  width: 240px;
  font-size: 1rem;
  border: 2px solid var(--union-blue);
  border-radius: 7px;
  background: var(--union-box);
  color: var(--union-blue);
}
.search-section button {
  background: var(--union-blue);
  border: none;
  color: #000;
  font-family: var(--union-font-header);
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 7px;
  cursor: pointer;
}
.search-section button:hover {
  background: #dbf6ff;
}

/* --- COLLECTIONS GRID --- */
.collections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  width: 100%;
}
.collection-box {
  background: var(--union-box);
  border: 2px solid var(--union-blue);
  padding: 2rem 1.5rem;
  border-radius: 13px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  margin-bottom: 2.1rem;
}
.collection-box img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}
.collection-box h2 {
  font-family: var(--union-font-header);
  color: var(--union-blue);
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}
.collection-box p {
  margin: 0.7rem 0 1.2rem 0;
  line-height: 1.5;
  color: var(--union-blue);
  font-size: 1.02rem;
}
.collection-box .price {
  font-weight: bold;
  margin: 1.1rem 0 0.4rem 0;
  font-size: 1.1rem;
  color: var(--union-blue);
}
.collection-box button {
  background: var(--union-blue);
  border: none;
  color: #000;
  font-family: var(--union-font-header);
  font-weight: bold;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border-radius: 7px;
  cursor: pointer;
}

/* ===== CREATE PAGE ===== */
.create-main {
  width: 100%;
  max-width: 510px;
  margin: 2.6rem auto 1.5rem auto;
  background: var(--union-box);
  border-radius: 13px;
  border: 2px solid var(--union-blue);
  padding: 2.1rem 1.5rem 2.1rem 1.5rem;
  box-sizing: border-box;
}
.create-title {
  text-align: center;
  font-family: var(--union-font-header);
  font-size: 1.55rem;
  color: var(--union-blue);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}
.artwork-form label {
  font-weight: bold;
  font-size: 1.07rem;
  margin-top: 1.4rem;
  display: block;
  color: var(--union-blue);
}
.artwork-form input[type="text"],
.artwork-form input[type="number"] {
  width: 100%;
  padding: 0.7rem 1rem;
  margin: 0.5rem 0 0 0;
  border-radius: 7px;
  border: 1.5px solid var(--union-blue);
  font-size: 1.02rem;
  font-family: var(--union-font-mono);
  background: var(--union-input-bg);
  color: #fff;
}
.artwork-form input[type="file"] {
  margin-top: 0.22rem;
  color: var(--union-blue);
  border: none;
  background: none;
  font-family: var(--union-font-mono);
}
.artwork-form button, .final-upload-btn {
  width: 100%;
  background: var(--union-blue);
  color: #000;
  border: none;
  padding: 0.9rem 0;
  font-size: 1.05rem;
  font-family: var(--union-font-header);
  font-weight: bold;
  border-radius: 8px;
  margin-top: 1.3rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s;
}
.artwork-form button:hover, .final-upload-btn:hover {
  background: #dbf6ff;
}
.uploaded-artworks-list {
  margin-top: 1.1rem;
  min-height: 32px;
}
.uploaded-artwork-card {
  background: var(--union-dark-accent);
  border-radius: 7px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
  font-size: 1.01rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.uploaded-artwork-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--union-blue);
}
.uploaded-artwork-card .art-name {
  font-weight: bold;
  color: var(--union-blue);
}

/* ===== ARTWORK PAGE ===== */
.artwork-box {
  width: 100%;
  max-width: 510px;
  margin: 2.6rem auto 1.5rem auto;
  background: var(--union-box);
  border-radius: 13px;
  border: 2px solid var(--union-blue);
  padding: 2.1rem 1.5rem 2.1rem 1.5rem;
  box-sizing: border-box;
  text-align: center;
}
.artwork-box img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  border: 1.5px solid var(--union-blue);
  background: #222;
}
.artwork-box h2 {
  font-family: var(--union-font-header);
  color: var(--union-blue);
  font-size: 1.33rem;
  margin-bottom: 0.7rem;
}
.artwork-box p {
  color: var(--union-blue);
  font-size: 1.09rem;
  margin-bottom: 1.1rem;
}
#not-found {
  display: none;
  color: #fa4969;
  background: #1a1013;
  border: 1.5px solid #fa4969;
  border-radius: 10px;
  padding: 1.2rem 1.1rem;
  margin-top: 1.2rem;
  font-family: var(--union-font-mono);
  font-size: 1.04rem;
}
#not-found.visible {
  display: block;
}
.artwork-box .price {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--union-blue);
  margin-bottom: 1.3rem;
}

/* ===== BUTTONS, MODALS, ETC ===== */
button, .btn, input[type="submit"] {
  background: var(--union-blue);
  color: #000;
  font-family: var(--union-font-header);
  font-weight: bold;
  border: none;
  border-radius: 7px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover, .btn:hover, input[type="submit"]:hover {
  background: #dbf6ff;
}
input[type="file"]::-webkit-file-upload-button {
  background: var(--union-blue);
  color: #000;
  font-family: var(--union-font-header);
  font-weight: bold;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: none;
}
input[type="file"]:focus { outline: 1.5px solid var(--union-blue); }

/* ===== FOOTER ===== */
footer {
  background: var(--union-bg);
  color: #777;
  font-size: 0.94rem;
  text-align: center;
  padding: 2rem 1rem 2rem 1rem;
  margin-top: 3rem;
  font-family: var(--union-font-mono);
  width: 100%;
}

/* ===== ARTWORK PAGE STYLES ===== */
.artwork-box {
  background: #111;
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 350px;
  margin: 3rem auto 0 auto;
  text-align: center;
  box-shadow: 0 3px 30px 0 #0006;
}

.artwork-box img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  background: #222;
  margin-bottom: 1.5rem;
}

#artwork-name {
  font-family: var(--font-header);
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

#artwork-desc {
  margin-bottom: 2rem;
  font-size: 1.06rem;
  color: #eee;
}

/* Responsive for artwork */
@media (max-width: 600px) {
  .artwork-box {
    padding: 1.2rem 0.6rem;
    max-width: 98vw;
  }
  .artwork-box img {
    max-width: 97vw;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .site-header { padding: 1.1rem 0.6rem; }
  .page-content,
  .create-main,
  .artwork-box { padding: 1.1rem 0.7rem; }
  .collections { gap: 1.1rem; }
}
@media (max-width: 500px) {
  .site-header .union-text { font-size: 1.1rem; }
  .site-header .center { font-size: 1rem; }
  .page-content,
  .create-main,
  .artwork-box { max-width: 99vw; }
}

/* ========== LANDING MAIN BOX (for index) ========== */
.landing-main-box {
  background: #181b20;
  border: 2px solid var(--union-blue);
  border-radius: 18px;
  max-width: 560px;
  margin: 3.2rem auto 2.5rem auto;
  padding: 2.7rem 2.1rem 2.1rem 2.1rem;
  box-shadow: 0 2px 24px 0 #0006;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 700px) {
  .landing-main-box {
    max-width: 99vw;
    padding: 1.1rem 0.5rem;
  }
}

#mint-btn {
  background: grey; /* Grey background for Mint */
  color: white;
  border: none;
  font-family: var(--union-font-header);
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 7px;
  font-weight: bold;
  margin-bottom: 1.1rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
}
#mint-btn:hover {
  background: #888;
}

#share-x-btn {
  background: var(--union-blue); /* Cyan background for Share */
  color: black;
  font-weight: bold;
  border: none;
  font-family: var(--union-font-header);
  font-size: 1rem;
  padding: 0.75rem 1.2rem;
  border-radius: 7px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
}
#share-x-btn:hover {
  background: #dbf6ff;
}

/* ========== WIDE BUTTON (for faucet, create, etc) ========== */
.btn-wide {
  width: 100%;
  display: block;
  background: var(--union-blue);
  color: #181b20;
  font-family: var(--union-font-header);
  font-size: 1.15rem;
  font-weight: bold;
  border: none;
  border-radius: 22px;
  padding: 1.1rem 0;
  margin: 0.9rem 0 0 0;
  box-shadow: 0 2px 18px #1113;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
  cursor: pointer;
}
.btn-wide:hover,
.btn-wide:focus {
  background: #d6f6ff;
  color: #181b20;
  box-shadow: 0 4px 32px #1115;
}

/* ================= FAUCET SCREEN CENTERING ================= */
.center-screen {
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--union-bg);
  flex-direction: column;
}

/* ================= FAUCET BOX ================= */
.faucet-dynamic-box {
  background: #181b20;
  border: 4px solid var(--union-blue);
  border-radius: 16px;
  box-shadow: 0 6px 40px #0007;
  max-width: 430px;
  margin: 0 auto;
  padding: 2.4rem 2rem 2.1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.faucet-dynamic-box h2 {
  font-family: var(--union-font-header);
  font-size: 1.25rem;
  color: var(--union-blue);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: bold;
}
.faucet-label {
  color: var(--union-blue);
  font-family: var(--union-font-mono);
  font-size: 1.04rem;
  margin-bottom: 0.6rem;
}
.faucet-input {
  padding: 0.85rem 1.1rem;
  font-size: 1.08
