

/* Import a "Manga/Game" style font */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Orbitron:wght@400;700&display=swap');

body {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif; /* Sci-fi font */
  /* A dark anime-style night sky background */
  background: radial-gradient(circle at center, #2b1055 0%, #7597de 100%);
  color: #fff;
  overflow: hidden; /* Prevents scrollbars during animations */
}

/* Moving background particle effect (optional visual flair) */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
}

.card {
  position: relative;
  /* Glassmorphism: Semi-transparent dark card */
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px); 
  width: 500px;
  padding: 2rem;
  border-radius: 20px;
  /* Neon Glow Border */
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 20px #ff00de, 
    0 0 40px rgba(255, 0, 222, 0.4);
  text-align: center;
  /* The Floating Animation */
  animation: floatCard 6s ease-in-out infinite;
  margin-top: 100px; /* Space for the character to sit on top */
}

/* --- THE ANIME CHARACTER --- */
.card::after {
  content: '';
  position: absolute;
  /* Adjust size of your character */
  width: 250px; 
  height: 250px;
  /* Position him/her peeking from the top left of the card */
  top: -210px; 
  left: 50%;
  transform: translateX(-50%);
  /* REPLACE THIS URL WITH YOUR ANIME CHARACTER IMAGE (Transparent PNG works best) */
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/Goku_render.png/640px-Goku_render.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  filter: drop-shadow(0 0 10px #ff00de); /* Glow around character */
}

h1 {
  font-family: 'Bangers', cursive; /* Comic book header font */
  font-size: 3.5rem;
  margin-top: 0;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ff00cc, #3333ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 0px 10px rgba(255, 0, 204, 0.5);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #00f2ff; /* Cyan border */
  color: #00f2ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  padding: 15px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
  text-transform: uppercase;
  letter-spacing: 2px;
}

button:hover {
  background: #00f2ff;
  color: #000;
  box-shadow: 0 0 25px #00f2ff;
  transform: translateY(-5px) scale(1.1);
}

button:active {
  transform: scale(0.95);
}

#result {
  font-size: 2rem;
  min-height: 40px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  animation: pulseText 2s infinite;
}

#computer-choice {
  font-size: 1.2rem;
  color: #aaa;
  font-style: italic;
  margin-bottom: 30px;
}

h3 {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  margin-top: 10px;
  color: #ff00de;
  text-transform: uppercase;
  letter-spacing: 3px;
}

p {
  font-size: 1.5rem;
  margin: 5px 0;
}

span {
  font-weight: bold;
  color: #ffd700; /* Gold color for scores */
  font-size: 1.8rem;
}

/* --- ANIMATIONS --- */

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseText {
  0% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 20px white; }
  100% { opacity: 0.8; }
}