/* Base styles */
body {
  background: #111;
  color: white;
  font-family: "Press Start 2P", monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.title {
  text-align: center;
  margin: 20px;
  font-size: 24px;
}

/* Gallery styling */
.gallery {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-snap-type: x mandatory;
}

.site-card {
  flex: 0 0 auto;
  width: 300px;
  border: 4px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: center;
  position: relative;
  cursor: pointer;
}

.site-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hidden {
  display: none;
}

/* Site title above each card */
.site-title {
  font-size: 14px;
  text-align: center;
  margin: 5px 0;
  font-weight: bold;
  text-transform: uppercase;
}

/* Button container below each card */
.button-container {
  margin-top: 8px;
  text-align: center;
  position: relative;
  z-index: 10; /* make sure buttons appear above images */
}

.enter-btn {
  background: #222;
  border: 2px solid white;
  color: white;
  font-family: monospace;
  padding: 8px 12px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 5px;
}

.enter-btn:hover {
  background: #444;
}

/* Mini Me Popup */
.popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: transparent;
  z-index: 20; /* popup above everything */
}

.popup img {
  width: 100px;
  image-rendering: pixelated;
}

/* Dialogue box inside popup */
.dialogue-box {
  background: black;
  border: 4px solid white;
  padding: 10px;
  width: 400px;
  font-size: 14px;
}

.hint {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 10px;
}

/* Head bobbing animations for Mini Me */
@keyframes bobSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes bobFast {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.bob-slow {
  animation: bobSlow 1s infinite;
}

.bob-fast {
  animation: bobFast 0.3s infinite;
}
