/* ========== BASE STYLES ========== */
body {
  background: #f8e031; /* Poké Yellow */
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fffceb;
  border: 3px solid #3b4cca;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: fadeIn 0.6s ease-out;
}

.hidden {
  display: none;
}

input, select {
  padding: 0.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* ========== BUTTONS ========== */
button, .level-btn, .btn {
  background: #ffcb05;
  border: 2px solid #3b4cca;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

button:hover, .btn:hover, .level-btn:hover {
  background: #ffe763;
  transform: scale(1.05);
}

button:active, .btn:active, .level-btn:active {
  transform: scale(0.95);
}

/* ========== POKÉMON DISPLAY ========== */
#pokemon {
  font-size: 1.7rem;
  margin: 1.2rem 0;
  color: #3b4cca;
  font-weight: bold;
  animation: fadeIn 0.6s ease-out;
}

/* ========== NAVIGATION ========== */
nav {
  background: #3b4cca;
  padding: 0.75rem;
  border-bottom: 4px solid #ffcb05;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ========== BANNER ========== */
.banner {
  background: url('../images/banner.png') center/cover no-repeat;
  height: 180px;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease-out;
}

/* ========== LEVEL SELECT ========== */
.levels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.level-btn {
  background: #ffcb05;
  border: 2px solid #3b4cca;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.level-btn:hover {
  background: #ffe763;
  animation: wiggle 0.3s ease-in-out;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes sparkle {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.sparkle {
  animation: sparkle 1s ease-in-out infinite;
}

/* Optional Confetti Effect Placeholder */
@keyframes burst {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffcb05;
  animation: burst 1s ease-out forwards;
}
