/* General layout */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* Main container for image and button */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

img {
  max-width: 90vw;
  max-height: 80vh;
  border: 8px solid white;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
  background: black;
}

img:hover {
  transform: scale(1.02);
}

button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 18px;
  background-color: #ff6bcb;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 10px #ff6bcb;
  transition: background 0.3s;
}

button:hover {
  background-color: #ff42b4;
}

/* Background where emojis animate */
.background {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Emoji style + trail effect */
.emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 28px;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  filter: drop-shadow(0 0 4px white);
  pointer-events: none;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Trail using pseudo-element */
.emoji::after {
  content: "✨";
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 0.5em;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  animation: sparkleTrail 0.5s ease-out infinite;
}

@keyframes sparkleTrail {
  0% { opacity: 0.6; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* 12 fly paths from center outward */
@keyframes flyPath1   { to { transform: translate(-100vw, -100vh); opacity: 0; } }
@keyframes flyPath2   { to { transform: translate(0vw, -120vh); opacity: 0; } }
@keyframes flyPath3   { to { transform: translate(100vw, -100vh); opacity: 0; } }
@keyframes flyPath4   { to { transform: translate(120vw, 0vh); opacity: 0; } }
@keyframes flyPath5   { to { transform: translate(100vw, 100vh); opacity: 0; } }
@keyframes flyPath6   { to { transform: translate(0vw, 120vh); opacity: 0; } }
@keyframes flyPath7   { to { transform: translate(-100vw, 100vh); opacity: 0; } }
@keyframes flyPath8   { to { transform: translate(-120vw, 0vh); opacity: 0; } }
@keyframes flyPath9   { to { transform: translate(-60vw, -120vh); opacity: 0; } }
@keyframes flyPath10  { to { transform: translate(120vw, -60vh); opacity: 0; } }
@keyframes flyPath11  { to { transform: translate(120vw, 90vh); opacity: 0; } }
@keyframes flyPath12  { to { transform: translate(-120vw, 90vh); opacity: 0; } }
