body { 
  font-family: Arial, sans-serif; 
  margin: 0;
  background: linear-gradient(135deg, #000, #0a3d0a); 
  color: white; 
}

/* 🔹 Popup Animation Base */
.popup-base {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.popup-base.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.popup-content-base {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.popup-base.active .popup-content-base {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Apply to specific popups */
.quiz-popup,
.og-popup,
.memory-popup,
.zk-stories-popup,
.game2048-popup,
.post-jobs-popup,
.mention-popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.quiz-popup.active,
.og-popup.active,
.memory-popup.active,
.zk-stories-popup.active,
.game2048-popup.active,
.post-jobs-popup.active,
.mention-popup.active {
  display: flex;
}

.quiz-content,
.og-content,
.memory-content,
.zk-stories-content,
.game2048-content,
.post-jobs-content,
.mention-content {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 12px rgba(0,172,238,0.7);
}

/* Specific widths */
.quiz-content { width: 90%; max-width: 400px; }
.og-content { width: 90%; max-width: 620px; max-height: 90vh; overflow: auto; }
.memory-content { width: 90%; max-width: 400px; }
.zk-stories-content { width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; }
.game2048-content { width: 90%; max-width: 450px; }
.post-jobs-content { width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto; }
.mention-content { width: 90%; max-width: 400px; }

/* 🔹 Navbar */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 10px;
}

.navbar img {
  height: 40px;
}

.navbar-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.join-btn {
  background: #00acee;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 8px rgba(0, 172, 238, 0.7);
  font-size: 14px;
}

.join-btn:hover {
  background: #0084b4;
  box-shadow: 0 0 12px rgba(0, 172, 238, 1);
}

.menu-container {
  position: relative;
}

.menu-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
}

.menu-icon:hover {
  background: rgba(0, 172, 238, 0.2);
  border-radius: 8px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,172,238,0.7);
  z-index: 101;
  min-width: 180px;
}

.menu-item {
  padding: 10px 15px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  border-bottom: 1px solid rgba(0, 172, 238, 0.3);
  font-size: 14px;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #00acee;
  color: white;
}

/* 🔹 Main content */
.main {
  text-align: center;
  margin: 30px auto;
  padding: 20px;
  max-width: 90%;
}

.main h1 {
  font-size: 2rem;
  margin: 10px 0;
}

.main h2 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.main p {
  font-size: 1rem;
  margin: 15px 0;
}

.input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

input, button { 
  padding: 8px; 
  font-size: 14px; 
  border-radius: 8px;
  border: none;
}

input {
  width: 200px;
  max-width: 100%;
  text-align: center;
  background: rgba(255,255,255,0.1);
  color: white;
}

input::placeholder {
  color: #aaa;
}

button {
  background: #00acee;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 0 8px rgba(0, 172, 238, 0.7);
}

button:hover {
  background: #0084b4;
  box-shadow: 0 0 12px rgba(0, 172, 238, 1);
}

.result { 
  margin-top: 15px; 
  font-size: 18px; 
  font-weight: bold; 
}

/* 🔹 Sections */
.section {
  padding: 30px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin: 20px 5%;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.section-header {
  position: relative;
  margin-bottom: 20px;
}

.header-center {
  display: flex;
  justify-content: center;
}

.section h2 {
  margin: 0;
  color: #00acee;
  text-shadow: 0 0 8px rgba(0, 172, 238, 0.7);
  font-size: 1.5rem;
}

.og-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: 0.3s;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.og-icon:hover {
  box-shadow: 0 0 12px rgba(0, 172, 238, 1);
  border-radius: 50%;
}

.og-icon:hover::after {
  content: "Wanna be an OG?";
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 102;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.card {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 12px rgba(0,172,238,0.7);
}

.card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 8px;
  border: 2px solid #00acee;
}

.card h3 {
  font-size: 1rem;
  margin: 5px 0;
}

.card p {
  font-size: 0.9rem;
  margin: 5px 0;
}

.card a {
  color: #00acee;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.show-btn {
  margin-top: 15px;
  background: #111;
  padding: 8px 15px;
  border-radius: 6px;
  color: #00acee;
  box-shadow: 0 0 8px rgba(0,172,238,0.5);
  font-size: 14px;
}

/* 🔹 Footer */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.85);
}

.footer p {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer a {
  color: #00acee;
  text-decoration: none;
  font-size: 0.9rem;
}

/* 🔹 Quiz Popup Specifics */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: red;
}

.timer {
  font-size: 16px;
  margin: 8px 0;
  color: #00acee;
}

.quiz-option {
  display: block;
  background: #222;
  margin: 8px 0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}

.quiz-option:hover {
  background: #00acee;
  color: white;
}

.quiz-option.correct {
  background: green;
  color: white;
}

.quiz-option.wrong {
  background: red;
  color: white;
}

.quiz-end-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
  gap: 10px;
  flex-wrap: wrap;
}

.restart-btn, .share-btn, .exit-btn {
  background: #00acee;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 8px rgba(0, 172, 238, 0.7);
  font-size: 14px;
}

.restart-btn:hover, .share-btn:hover, .exit-btn:hover {
  background: #0084b4;
  box-shadow: 0 0 12px rgba(0, 172, 238, 1);
}

.result-img {
  width: 80px;
  height: 80px;
  margin-top: 8px;
}

.question-number {
  font-size: 16px;
  font-weight: bold;
  color: #00acee;
  margin-bottom: 8px;
}

/* 🔹 OG Popup Specifics */
.og-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* 🔹 Memory Game Popup Specifics */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  gap: 8px;
  margin: 15px auto;
  justify-content: center;
}

.memory-card {
  width: 70px;
  height: 70px;
  background: #222;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
  transform-style: preserve-3d;
}

.memory-card.flipped {
  transform: rotateY(180deg);
}

.memory-card .front,
.memory-card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.memory-card .front {
  background: #00acee;
  color: white;
  transform: rotateY(180deg);
}

.memory-card .back {
  background: #222;
  color: #222;
}

.memory-card.matched .front {
  background: green;
}

#win-message {
  margin-top: 15px;
}

#move-count {
  color: #00acee;
  font-weight: bold;
}

#final-move-count {
  color: #00acee;
  font-weight: bold;
}

.generate-proof-btn {
  background: #00acee;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 8px rgba(0, 172, 238, 0.7);
}

.generate-proof-btn:hover {
  background: #0084b4;
  box-shadow: 0 0 12px rgba(0, 172, 238, 1);
}

.restart-btn {
  background: #00acee;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 8px rgba(0, 172, 238, 0.7);
}

.restart-btn:hover {
  background: #0084b4;
  box-shadow: 0 0 12px rgba(0, 172, 238, 1);
}

.win-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

#proof-status {
  margin-top: 10px;
}

#proof-message {
  font-size: 14px;
  font-weight: bold;
  color: #00acee;
}

#tx-hash {
  font-size: 12px;
  color: #fff;
  word-break: break-all;
}

/* 🔹 ZK Stories Popup Specifics */
.stories-list {
  margin-top: 10px;
}

.story-item {
  margin-bottom: 15px;
  padding: 10px;
  background: #222;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,172,238,0.5);
}

.story-item h3 {
  margin: 0 0 8px;
  color: #00acee;
  font-size: 1rem;
}

.story-item p {
  font-size: 0.9rem;
}

/* 🔹 2048 Game Popup Specifics */
.scores {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #00acee;
}

.game-container {
  position: relative;
  margin: 0 auto;
  touch-action: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  grid-template-rows: repeat(4, 80px);
  gap: 8px;
  background: #222;
  padding: 8px;
  border-radius: 10px;
  touch-action: none;
}

.tile {
  background: #333;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
}

.tile-2 { background: #ff6b6b; }
.tile-4 { background: #4ecdc4; }
.tile-8 { background: #45b7d1; }
.tile-16 { background: #96ce79; }
.tile-32 { background: #ffcc5c; }
.tile-64 { background: #ff6f61; }
.tile-128 { background: #6b7280; color: #ffffff; }
.tile-256 { background: #d97706; color: #ffffff; }
.tile-512 { background: #10b981; color: #ffffff; }
.tile-1024 { background: #3b82f6; color: #ffffff; font-size: 28px; }
.tile-2048 { background: #a855f7; color: #ffffff; font-size: 28px; }

.game-over-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #00acee;
  font-size: 20px;
  font-weight: bold;
}

.game-over-overlay p {
  margin-bottom: 10px;
  color: red;
}

/* 🔹 Post Jobs Popup Specifics */
#post-jobs-instructions {
  margin-top: 10px;
  text-align: left;
  font-size: 0.9rem;
}

#post-jobs-instructions h3 {
  color: #00acee;
  font-size: 1rem;
}

#post-jobs-coming-soon {
  margin-top: 10px;
}

#post-jobs-coming-soon h3 {
  color: #00acee;
  font-size: 1rem;
}

#post-jobs-coming-soon p {
  font-size: 0.9rem;
  font-weight: bold;
}

/* 🔹 Mention Popup Specifics */
.mention-message {
  margin: 15px 0;
  font-size: 16px;
  font-weight: bold;
  white-space: pre-line;
  color: #00acee;
  text-shadow: 0 0 8px rgba(0, 172, 238, 0.7);
}

.status-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 0 12px rgba(0,172,238,0.5);
}

.mention-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
  gap: 10px;
}

.mention-buttons .share-btn,
.mention-buttons .exit-btn {
  background: #00acee;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 8px rgba(0, 172, 238, 0.7);
  flex: 1;
  font-size: 14px;
}

.mention-buttons .share-btn:hover,
.mention-buttons .exit-btn:hover {
  background: #0084b4;
  box-shadow: 0 0 12px rgba(0, 172, 238, 1);
}

/* 🔹 Mobile Responsiveness */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .navbar-center, .navbar-right {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .join-btn {
    width: 100%;
    text-align: center;
  }

  .main {
    margin: 20px auto;
  }

  .main h1 {
    font-size: 1.8rem;
  }

  .main h2 {
    font-size: 1.2rem;
  }

  .section {
    margin: 15px 3%;
    padding: 20px 15px;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  .card {
    padding: 10px;
  }

  .card img {
    width: 50px;
    height: 50px;
  }

  .card h3 {
    font-size: 0.9rem;
  }

  .card p {
    font-size: 0.8rem;
  }

  .footer {
    padding: 15px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .quiz-content,
  .memory-content,
  .game2048-content,
  .post-jobs-content,
  .mention-content {
    width: 95%;
    padding: 15px;
  }

  .grid-container {
    grid-template-columns: repeat(4, 60px);
    grid-template-rows: repeat(4, 60px);
    gap: 5px;
    padding: 5px;
  }

  .tile {
    font-size: 24px;
  }

  .tile-1024, .tile-2048 {
    font-size: 20px;
  }
}
