body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to br, #e0f7ff, #f3e8ff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

p {
  color: #4a5568;
}

.btn {
  padding: 12px 20px;
  margin: 6px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn:hover {
  transform: scale(1.03);
}

.btn-blue { background-color: #3182ce; color: white; }
.btn-green { background-color: #48bb78; color: white; }
.btn-purple { background-color: #805ad5; color: white; }
.btn-orange { background-color: #ed8936; color: white; }

.card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease-out forwards;
}

.badge-blue {
  background-color: #ebf4ff;
  color: #2b6cb0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
}

.badge-purple {
  background-color: #f5f3ff;
  color: #667eea;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
}

.score {
  background-color: #c6f6d5;
  color: #2f855a;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.time {
  background-color: #bee3f8;
  color: #2a4f84;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.feedback.correct {
  background-color: #48bb78;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
}

.feedback.incorrect {
  background-color: #f56565;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #718096;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 16px;
}

.subject {
  font-size: 1.1rem;
  font-weight: bold;
  color: #4f46e5;
  margin: 12px 0;
}

.verb {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4f46e5;
  margin-bottom: 16px;
}

.meaning {
  font-size: 1.1rem;
  color: #718096;
  margin-bottom: 16px;
}

.menu-buttons button {
  width: 100%;
}

.return-link {
  color: #e53e3e;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 10px;
  display: inline-block;
}

.audio-btn {
  color: #4f46e5;
  font-size: 0.85rem;
  margin-top: 8px;
  display: block;
  text-align: right;
  cursor: pointer;
}

.input-group label {
  display: block;
  text-align: left;
  font-weight: bold;
  margin-top: 10px;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.btn-outline-red {
  background: none;
  color: #e53e3e;
  border: 1px solid #e53e3e;
  padding: 12px 20px;
  margin: 6px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-outline-red:hover {
  background-color: #ffe5e5;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  cursor: pointer;
}

.toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #764ba2;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-slider.round {
  border-radius: 34px;
}

.toggle-slider.round:before {
  border-radius: 50%;
}

#visitor-count {
  font-size: 0.8rem;
  margin-top: 20px;
  color: #718096;
}
