/* ============================================
   GLOBAL STYLES
============================================ */
body {
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  color: white;
  text-align: center;
  overflow-x: hidden;
}

h1 {
  font-family: "Baloo 2", cursive;
  font-size: 3rem;
  margin-top: 2rem;
}

p {
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.2rem;
}

/* Smooth fade animation */
.page-fade {
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}


/* ============================================
   HUB PAGE
============================================ */
.hub {
  background: linear-gradient(135deg, #ffb7e9, #ffa7cf, #ff90c8);
  min-height: 100vh;
  padding: 3rem 1rem;
}

.subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.era-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem auto;
}

.era-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.era-btn:hover {
  transform: scale(1.1);
}

/* BUTTON COLORS */
.y2k { background: #ff66d6; }
.retro90 { background: #34d86a; }
.neon80 { background: #a85cff; }
.future { background: #4fb4ff; }
.medieval { background: #e8b5ff; }


/* ============================================
   SECRET STAR (EASTER EGG)
============================================ */
.secret-star {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 2rem;
  text-decoration: none;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}


/* ============================================
   ERA PAGE BACKGROUNDS
============================================ */
.era-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Y2K — pink glossy */
.y2k-era {
  background: linear-gradient(135deg, #ff8fdc, #ff44c8, #ffb5ef);
}

/* 90s — bright green retro */
.retro90-era {
  background: linear-gradient(135deg, #00ff7b, #1ecb5f, #57ffb8);
}

/* 80s — neon purple */
.neon80-era {
  background: linear-gradient(135deg, #b06bff, #8e33ff, #d7a1ff);
}

/* Future — neon blue */
.future-era {
  background: linear-gradient(135deg, #5ecbff, #2f95ff, #91e5ff);
}

/* Medieval — fairycore pink/lilac */
.medieval-era {
  background: linear-gradient(135deg, #f8caff, #e09cff, #ffc7fa);
}

/* Rift — cosmic space */
.rift-era {
  background: radial-gradient(circle, #2f1d47, #0e021d, #000000);
}


/* ============================================
   ERA TEXT + NAV
============================================ */
.era-text {
  font-size: 1.4rem;
  margin: 1.5rem auto;
  max-width: 700px;
}

.era-nav a {
  color: white;
  font-weight: bold;
  display: inline-block;
  margin: 0.5rem;
  text-decoration: underline;
  font-size: 1.2rem;
}


/* ============================================
   CURSOR RIPPLE EFFECT
============================================ */
.ripple {
  position: fixed;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,0.6);
  animation: rippleAnim 0.6s ease-out forwards;
}

@keyframes rippleAnim {
  to {
    opacity: 0;
    transform: scale(5);
  }
}


/* ============================================
   FLOATING EMOJI PARTICLES
============================================ */
.emoji {
  position: absolute;
  font-size: 2rem;
  animation: floatUp linear infinite;
  user-select: none;
  pointer-events: auto;
}

@keyframes floatUp {
  from { transform: translateY(40px) rotate(0deg); opacity: 0; }
  50% { opacity: 1; }
  to { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

.emoji:hover {
  transform: scale(1.4) rotate(20deg);
}


/* ============================================
   ERA-SPECIFIC PARTICLE COLORS
============================================ */
.y2k-era .emoji { color: #ffe6fb; }
.retro90-era .emoji { color: #d6ffe6; }
.neon80-era .emoji { color: #f0e1ff; }
.future-era .emoji { color: #d4f1ff; }
.medieval-era .emoji { color: #ffe5fb; }
.rift-era .emoji { color: #cfaaff; }


/* ============================================
   GLITCH EFFECT (FUTURE ERA)
============================================ */
.future-era h1 {
  animation: glitch 0.8s infinite;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 #00f7ff, -2px 0 #ff00e1; }
  50% { text-shadow: -2px 0 #00f7ff, 2px 0 #ff00e1; }
  100% { text-shadow: 2px 0 #00f7ff, -2px 0 #ff00e1; }
}


/* ============================================
   FAIRY SPARKLE (MEDIEVAL ERA)
============================================ */
.medieval-era::after {
  content: "✨";
  position: absolute;
  font-size: 4rem;
  top: 10%;
  right: 10%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
