/* ===== Animated Gradient Background ===== */
body {
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  margin: 0;
  background: linear-gradient(270deg, #a8edea, #fed6e3, #fbc2eb, #a6c1ee);
  background-size: 800% 800%;
  animation: gradientMove 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== App Box ===== */
.app {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.2);
  padding: 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.hidden { display: none; }

/* ===== Headings & Titles ===== */
.title {
  font-size: 30px;
  color: #3f51b5;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(63,81,181,0.4);
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from { text-shadow: 0 0 5px #3f51b5; }
  to { text-shadow: 0 0 25px #7986cb; }
}

/* ===== Inputs & Buttons ===== */
input, select {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #4caf50, #43a047);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== Option & Subject Buttons ===== */
#subjects button, #options button {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #2196f3, #1976d2);
}
#subjects button:hover, #options button:hover {
  transform: scale(1.03);
}

/* ===== Correct & Wrong Answers ===== */
.correct { background: #4caf50 !important; }
.wrong { background: #f44336 !important; }

/* ===== Demo text ===== */
.demo {
  color: gray;
  font-size: 13px;
  margin-top: 10px;
}
