@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
  margin: 0;
  background-color: #000;
  color: #00fff7;
  font-family: 'VT323', monospace;
  text-align: center;
}

a {
  color: #00fff7;
  text-decoration: none;
}

.social-buttons img {
  width: 50px;
  height: 50px;
  margin: 5px;
  border-radius: 10px;
  box-shadow: 0 0 8px #00fff7;
  transition: transform 0.2s;
}

.social-buttons img:hover {
  transform: scale(1.1);
}

.site-header {
  font-size: 2.5rem;
  text-shadow: 0 0 8px #00fff7;
  margin: 20px 0 10px;
}

#pointsDisplay {
  font-size: 1.5rem;
  margin: 20px 0;
  text-shadow: 0 0 6px #00fff7;
}

.game-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

#clickButton, #pullCard {
  width: 100px;
  height: auto;
  cursor: pointer;
  border: none;
  background: none;
  box-shadow: none;
}

h2 {
  font-size: 1.6rem;
  margin-top: 30px;
  text-shadow: 0 0 6px #00fff7;
}

#collection {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.collected-card {
  width: 100px;
  margin: 5px;
  border-radius: 8px;
  box-shadow: 0 0 8px #00fff7;
  object-fit: cover;
  transition: transform 0.2s;
}

.collected-card:hover {
  transform: scale(1.05);
}

.reset-text {
  font-size: 1.2rem;
  color: #00fff7;
  text-shadow: 0 0 6px #00fff7;
  margin: 20px auto;
  padding: 10px 20px;
  display: inline-block;
  border: 1px solid #00fff7;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.reset-text:hover {
  background-color: rgba(0, 255, 247, 0.1);
}

/* Popup general */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Popup content */
.popup-content {
  position: relative;
  border: 2px solid #00fff7;
  border-radius: 12px;
  background: #000;
  padding: 20px;
  color: #00fff7;
  box-shadow: 0 0 24px #00fff7;
}

.popup-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #00fff7;
  cursor: pointer;
}

/* Rare card animation */
.rare-flash {
  animation: pulse-glow 1s infinite alternate;
  box-shadow: 0 0 12px #ff00ff, 0 0 24px #00ffff;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: scale(1.05);
    filter: hue-rotate(90deg);
  }
}

/* Leaderboard Button Alignment */
#leaderboard button.reset-text {
  margin-top: 20px;
  color: #00fff7;
  background-color: transparent;
  border: 1px solid #00fff7;
  text-shadow: 0 0 6px #00fff7;
  box-shadow: 0 0 8px #00fff7;
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

#leaderboard button.reset-text:hover {
  background-color: rgba(0, 255, 247, 0.15);
}

/* Style leaderboard list */
#leaderList li {
  margin: 6px 0;
  font-size: 1.1rem;
  text-shadow: 0 0 4px #00fff7;
}

#submitScore {
  font-family: 'VT323', monospace;
  background: none;
  border: 1px solid #00fff7;
  color: #00fff7;
  text-shadow: 0 0 6px #00fff7;
  box-shadow: 0 0 10px #00fff7;
  padding: 10px 25px;
  font-size: 1.2rem;
  border-radius: 8px;
  margin-top: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
}

#submitScore:hover {
  background-color: rgba(0, 255, 247, 0.15);
  box-shadow: 0 0 16px #00fff7;
  transform: scale(1.02);
}