/* General Page Styling */
body {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Heading */
h1 {
  margin: 30px 0 10px;
  color: #222;
  font-size: 2.2rem;
  font-weight: 600;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Scratch Card */
#scratchCanvas {
  border: none;
  margin: 20px auto;
  display: block;
  box-shadow: 0 8px 20px rgba(201, 12, 12, 0.76);
  border-radius: 15px;
  cursor: crosshair;
  background: #eee;
  transition: transform 0.2s ease-in-out;
}

#scratchCanvas:hover {
  transform: scale(1.02);
}

/* Quiz Card */
#quiz {
  display: none;
  background: #fff;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  margin-top: 20px;
  animation: fadeIn 0.8s ease-in-out;
}

.question {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 500;
  color: #333;
}

.options {
  text-align: left;
  display: inline-block;
  margin-bottom: 15px;
}

.options label {
  display: block;
  font-size: 16px;
  margin: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.options input[type="radio"] {
  accent-color: #007bff;
  margin-right: 8px;
}

.options label:hover {
  color: #007bff;
}

/* Button */
button {
  padding: 10px 20px;
  border: none;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

button:hover {
  background: linear-gradient(135deg, #0056b3, #0099cc);
  transform: scale(1.05);
}

/* Result Image */
#resultImage {
  display: none;
  margin-top: 20px;
  max-width: 350px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: popIn 0.8s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
