@font-face {
  font-family: 'Sense Egg';
  src: url('assets/sense-egg-display.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Eggs';
  src: url('assets/EGGS.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.num {
  font-family: 'Eggs', sans-serif;
  font-size: 2em;
  vertical-align: middle;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Sense Egg', "Courier New", monospace;
  background: #ffffff;
  color: #333;
}

/* ── Music Toggle ── */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover {
  transform: scale(1.1);
  background: #333;
}

.music-toggle.playing {
  animation: pulse-ring 2s ease infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(28,28,28,0.15), 0 4px 14px rgba(0,0,0,0.25); }
}

.page {
  width: 100%;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  color: #333;
  width: 520px;
  max-width: 92vw;
  padding: 22px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-img {
  width: 100%;
  max-width: 420px;
  margin: 16px auto;
  display: block;
}

.modal button {
  background: #e3dddd;
  border: 2px solid #333;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.modal-link {
  display: inline-block;
  margin: 10px 0;
  color: #1a73e8;
  text-decoration: underline;
}

.modal-ca {
  font-family: "Courier New", monospace;
  font-size: 12px;
  word-break: break-all;
  margin: 10px 0;
  color: #666;
}

.info-card {
  color: #333;
  width: 520px;
  max-width: 92vw;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.eggdog-img {
  width: 100%;
  max-width: 420px;
  margin-bottom: 16px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.social-btn {
  background: #000000;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.ca-box {
  background: #1c1c1c;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden; /* important */
}

.ca-text {
  font-family: "Courier New", monospace;
  color: #ffffff;          /* ← this is the fix */
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}


#copyBtn {
  flex-shrink: 0;               /* prevents button from shrinking */
  background: #e3d3a3;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.meme-section {
  max-width: 1200px;
  margin: -120px auto 100px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.meme-title,
.gif-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 22px;
  color: #333;
}

.gif-title {
  margin-top: 48px;
}

.meme-count {
  display: inline-block;
  background: #1c1c1c;
  color: #fff;
  font-size: 14px;
  padding: 2px 10px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
}

.meme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.meme-grid img {
  width: calc((100% - 4 * 16px) / 5);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.meme-grid img:hover {
  transform: scale(1.05);
}

/* ── GIF Masonry Grid ── */
.gif-masonry {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* ── Boundary Divider ── */
.gif-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 120px auto;
  width: 100%;
  overflow: visible;
}

.gif-divider img {
  width: 500px;
  border-radius: 12px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.gif-divider img:hover {
  transform: rotate(90deg) scale(1.05);
}

.gif-masonry-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.gif-masonry-col img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.gif-masonry-col img:hover {
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .meme-grid img {
    width: calc((100% - 3 * 16px) / 4);
  }
}

@media (max-width: 768px) {
  .meme-grid img {
    width: calc((100% - 2 * 16px) / 3);
  }
}

@media (max-width: 480px) {
  .meme-grid img {
    width: calc((100% - 1 * 16px) / 2);
  }

  .ca-box {
    flex-direction: column;
    gap: 10px;
  }
}

.site-footer {
  text-align: center;
  padding: 60px 20px 40px;
  font-size: 14px;
  color: #666;
}

