* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #eef2f7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 420px;
}

.card {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  animation: fadeIn 0.3s ease;
}

.hidden {
  display: none;
}

h2, h3 {
  margin-bottom: 12px;
}

p {
  margin-bottom: 10px;
  color: #555;
}

.top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

#timer {
  color: #d97706;
  font-weight: bold;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #eef2ff;
  transform: translateY(-1px);
}

button:active {
  transform: scale(0.97);
}

button.correct {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

button.wrong {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

#start-btn {
  background: #4f46e5;
  color: white;
  border: none;
}

#start-btn:hover {
  background: #4338ca;
}

.card.shake {
  animation: shake 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

#results p {
  font-size: 14px;
  margin-bottom: 6px;
}
